// NewMockClipboard creates a new instance of MockClipboard. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
175
+
// The first argument is typically a *testing.T value.
176
+
func NewMockClipboard(t interface {
177
+
mock.TestingT
178
+
Cleanup(func())
179
+
}) *MockClipboard {
180
+
mock := &MockClipboard{}
181
+
mock.Mock.Test(t)
182
+
183
+
t.Cleanup(func() { mock.AssertExpectations(t) })
184
+
185
+
return mock
186
+
}
187
+
188
+
// MockClipboard is an autogenerated mock type for the Clipboard type
// NewMockColorSchemeDetector creates a new instance of MockColorSchemeDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
174
430
// The first argument is typically a *testing.T value.
// NewMockToolkitAvailabilityNotifier creates a new instance of MockToolkitAvailabilityNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
642
+
// The first argument is typically a *testing.T value.
// MockToolkitAvailabilityNotifier_MarkAvailable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAvailable'
675
+
type MockToolkitAvailabilityNotifier_MarkAvailable_Call struct {
676
+
*mock.Call
677
+
}
678
+
679
+
// MarkAvailable is a helper method to define mock.On call
// NewMockColorSchemeResolver creates a new instance of MockColorSchemeResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
386
702
// The first argument is typically a *testing.T value.
// MockContentInjector_InjectThemeCSS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InjectThemeCSS'
1152
-
type MockContentInjector_InjectThemeCSS_Call struct {
1467
+
// MockContentInjector_InjectFindHighlightCSS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InjectFindHighlightCSS'
1468
+
type MockContentInjector_InjectFindHighlightCSS_Call struct {
1153
1469
*mock.Call
1154
1470
}
1155
1471
1156
-
// InjectThemeCSS is a helper method to define mock.On call
1472
+
// InjectFindHighlightCSS is a helper method to define mock.On call
// NewMockDownloadResponse creates a new instance of MockDownloadResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1798
+
// NewMockDesktopIntegration creates a new instance of MockDesktopIntegration. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1426
1799
// The first argument is typically a *testing.T value.
panic("no return value specified for GetSuggestedFilename")
1892
+
panic("no return value specified for InstallDesktopFile")
1502
1893
}
1503
1894
1504
1895
var r0 string
1505
-
if returnFunc, ok := ret.Get(0).(func() string); ok {
1506
-
r0 = returnFunc()
1896
+
var r1 error
1897
+
if returnFunc, ok := ret.Get(0).(func(context.Context) (string, error)); ok {
1898
+
return returnFunc(ctx)
1899
+
}
1900
+
if returnFunc, ok := ret.Get(0).(func(context.Context) string); ok {
1901
+
r0 = returnFunc(ctx)
1507
1902
} else {
1508
1903
r0 = ret.Get(0).(string)
1509
1904
}
1510
-
return r0
1905
+
if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
1906
+
r1 = returnFunc(ctx)
1907
+
} else {
1908
+
r1 = ret.Error(1)
1909
+
}
1910
+
return r0, r1
1511
1911
}
1512
1912
1513
-
// MockDownloadResponse_GetSuggestedFilename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSuggestedFilename'
1514
-
type MockDownloadResponse_GetSuggestedFilename_Call struct {
1913
+
// MockDesktopIntegration_InstallDesktopFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallDesktopFile'
1914
+
type MockDesktopIntegration_InstallDesktopFile_Call struct {
1515
1915
*mock.Call
1516
1916
}
1517
1917
1518
-
// GetSuggestedFilename is a helper method to define mock.On call
// NewMockMemoryPressureApplier creates a new instance of MockMemoryPressureApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1585
-
// The first argument is typically a *testing.T value.
1586
-
func NewMockMemoryPressureApplier(t interface {
1587
-
mock.TestingT
1588
-
Cleanup(func())
1589
-
}) *MockMemoryPressureApplier {
1590
-
mock := &MockMemoryPressureApplier{}
1591
-
mock.Mock.Test(t)
2013
+
// RemoveDesktopFile provides a mock function for the type MockDesktopIntegration
panic("no return value specified for RemoveDesktopFile")
2019
+
}
1594
2020
1595
-
return mock
2021
+
var r0 error
2022
+
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
2023
+
r0 = returnFunc(ctx)
2024
+
} else {
2025
+
r0 = ret.Error(0)
2026
+
}
2027
+
return r0
1596
2028
}
1597
2029
1598
-
// MockMemoryPressureApplier is an autogenerated mock type for the MemoryPressureApplier type
1599
-
type MockMemoryPressureApplier struct {
1600
-
mock.Mock
2030
+
// MockDesktopIntegration_RemoveDesktopFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveDesktopFile'
2031
+
type MockDesktopIntegration_RemoveDesktopFile_Call struct {
2032
+
*mock.Call
1601
2033
}
1602
2034
1603
-
type MockMemoryPressureApplier_Expecter struct {
1604
-
mock *mock.Mock
2035
+
// RemoveDesktopFile is a helper method to define mock.On call
panic("no return value specified for ApplyNetworkProcessSettings")
2069
+
panic("no return value specified for RemoveIcon")
1617
2070
}
1618
2071
1619
2072
var r0 error
1620
-
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) error); ok {
1621
-
r0 = returnFunc(ctx, cfg)
2073
+
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
2074
+
r0 = returnFunc(ctx)
1622
2075
} else {
1623
2076
r0 = ret.Error(0)
1624
2077
}
1625
2078
return r0
1626
2079
}
1627
2080
1628
-
// MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyNetworkProcessSettings'
1629
-
type MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call struct {
2081
+
// MockDesktopIntegration_RemoveIcon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveIcon'
2082
+
type MockDesktopIntegration_RemoveIcon_Call struct {
1630
2083
*mock.Call
1631
2084
}
1632
2085
1633
-
// ApplyNetworkProcessSettings is a helper method to define mock.On call
2086
+
// RemoveIcon is a helper method to define mock.On call
panic("no return value specified for ApplyWebProcessSettings")
2120
+
panic("no return value specified for SetAsDefaultBrowser")
1674
2121
}
1675
2122
1676
-
var r0 any
1677
-
var r1 error
1678
-
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) (any, error)); ok {
1679
-
return returnFunc(ctx, cfg)
1680
-
}
1681
-
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) any); ok {
1682
-
r0 = returnFunc(ctx, cfg)
2123
+
var r0 error
2124
+
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
2125
+
r0 = returnFunc(ctx)
1683
2126
} else {
1684
-
if ret.Get(0) != nil {
1685
-
r0 = ret.Get(0).(any)
2127
+
r0 = ret.Error(0)
2128
+
}
2129
+
return r0
2130
+
}
2131
+
2132
+
// MockDesktopIntegration_SetAsDefaultBrowser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAsDefaultBrowser'
2133
+
type MockDesktopIntegration_SetAsDefaultBrowser_Call struct {
2134
+
*mock.Call
2135
+
}
2136
+
2137
+
// SetAsDefaultBrowser is a helper method to define mock.On call
panic("no return value specified for UnsetAsDefaultBrowser")
1687
2172
}
1688
-
if returnFunc, ok := ret.Get(1).(func(context.Context, *port.MemoryPressureConfig) error); ok {
1689
-
r1 = returnFunc(ctx, cfg)
2173
+
2174
+
var r0 error
2175
+
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
2176
+
r0 = returnFunc(ctx)
1690
2177
} else {
1691
-
r1 = ret.Error(1)
2178
+
r0 = ret.Error(0)
1692
2179
}
1693
-
return r0, r1
2180
+
return r0
1694
2181
}
1695
2182
1696
-
// MockMemoryPressureApplier_ApplyWebProcessSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyWebProcessSettings'
1697
-
type MockMemoryPressureApplier_ApplyWebProcessSettings_Call struct {
2183
+
// MockDesktopIntegration_UnsetAsDefaultBrowser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnsetAsDefaultBrowser'
2184
+
type MockDesktopIntegration_UnsetAsDefaultBrowser_Call struct {
1698
2185
*mock.Call
1699
2186
}
1700
2187
1701
-
// ApplyWebProcessSettings is a helper method to define mock.On call
2188
+
// UnsetAsDefaultBrowser is a helper method to define mock.On call
// NewMockEngine creates a new instance of MockEngine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2217
+
// NewMockDownloadEventHandler creates a new instance of MockDownloadEventHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1737
2218
// The first argument is typically a *testing.T value.
// MockEngine_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
1781
-
type MockEngine_Close_Call struct {
2250
+
// MockDownloadEventHandler_OnDownloadEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDownloadEvent'
2251
+
type MockDownloadEventHandler_OnDownloadEvent_Call struct {
1782
2252
*mock.Call
1783
2253
}
1784
2254
1785
-
// Close is a helper method to define mock.On call
// NewMockDownloadResponse creates a new instance of MockDownloadResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2291
+
// The first argument is typically a *testing.T value.
2292
+
func NewMockDownloadResponse(t interface {
2293
+
mock.TestingT
2294
+
Cleanup(func())
2295
+
}) *MockDownloadResponse {
2296
+
mock := &MockDownloadResponse{}
2297
+
mock.Mock.Test(t)
2298
+
2299
+
t.Cleanup(func() { mock.AssertExpectations(t) })
2300
+
2301
+
return mock
2302
+
}
2303
+
2304
+
// MockDownloadResponse is an autogenerated mock type for the DownloadResponse type
panic("no return value specified for GetSuggestedFilename")
1859
2367
}
1860
2368
1861
-
var r0 port.WebViewFactory
1862
-
if returnFunc, ok := ret.Get(0).(func() port.WebViewFactory); ok {
2369
+
var r0 string
2370
+
if returnFunc, ok := ret.Get(0).(func() string); ok {
1863
2371
r0 = returnFunc()
1864
2372
} else {
1865
-
if ret.Get(0) != nil {
1866
-
r0 = ret.Get(0).(port.WebViewFactory)
1867
-
}
2373
+
r0 = ret.Get(0).(string)
1868
2374
}
1869
2375
return r0
1870
2376
}
1871
2377
1872
-
// MockEngine_Factory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Factory'
1873
-
type MockEngine_Factory_Call struct {
2378
+
// MockDownloadResponse_GetSuggestedFilename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSuggestedFilename'
2379
+
type MockDownloadResponse_GetSuggestedFilename_Call struct {
1874
2380
*mock.Call
1875
2381
}
1876
2382
1877
-
// Factory is a helper method to define mock.On call
// NewMockMemoryPressureApplier creates a new instance of MockMemoryPressureApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2450
+
// The first argument is typically a *testing.T value.
2451
+
func NewMockMemoryPressureApplier(t interface {
2452
+
mock.TestingT
2453
+
Cleanup(func())
2454
+
}) *MockMemoryPressureApplier {
2455
+
mock := &MockMemoryPressureApplier{}
2456
+
mock.Mock.Test(t)
1948
2457
1949
-
if len(ret) == 0 {
1950
-
panic("no return value specified for FilterApplier")
1951
-
}
2458
+
t.Cleanup(func() { mock.AssertExpectations(t) })
1952
2459
1953
-
var r0 port.FilterApplier
1954
-
if returnFunc, ok := ret.Get(0).(func() port.FilterApplier); ok {
1955
-
r0 = returnFunc()
2460
+
return mock
2461
+
}
2462
+
2463
+
// MockMemoryPressureApplier is an autogenerated mock type for the MemoryPressureApplier type
panic("no return value specified for ApplyNetworkProcessSettings")
2482
+
}
2483
+
2484
+
var r0 error
2485
+
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) error); ok {
2486
+
r0 = returnFunc(ctx, cfg)
1956
2487
} else {
1957
-
if ret.Get(0) != nil {
1958
-
r0 = ret.Get(0).(port.FilterApplier)
1959
-
}
2488
+
r0 = ret.Error(0)
1960
2489
}
1961
2490
return r0
1962
2491
}
1963
2492
1964
-
// MockEngine_FilterApplier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterApplier'
1965
-
type MockEngine_FilterApplier_Call struct {
2493
+
// MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyNetworkProcessSettings'
2494
+
type MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call struct {
1966
2495
*mock.Call
1967
2496
}
1968
2497
1969
-
// FilterApplier is a helper method to define mock.On call
panic("no return value specified for InternalSchemePath")
2538
+
panic("no return value specified for ApplyWebProcessSettings")
1997
2539
}
1998
2540
1999
-
var r0 string
2000
-
if returnFunc, ok := ret.Get(0).(func() string); ok {
2001
-
r0 = returnFunc()
2541
+
var r0 any
2542
+
var r1 error
2543
+
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) (any, error)); ok {
2544
+
return returnFunc(ctx, cfg)
2545
+
}
2546
+
if returnFunc, ok := ret.Get(0).(func(context.Context, *port.MemoryPressureConfig) any); ok {
2547
+
r0 = returnFunc(ctx, cfg)
2002
2548
} else {
2003
-
r0 = ret.Get(0).(string)
2549
+
if ret.Get(0) != nil {
2550
+
r0 = ret.Get(0).(any)
2551
+
}
2004
2552
}
2005
-
return r0
2553
+
if returnFunc, ok := ret.Get(1).(func(context.Context, *port.MemoryPressureConfig) error); ok {
2554
+
r1 = returnFunc(ctx, cfg)
2555
+
} else {
2556
+
r1 = ret.Error(1)
2557
+
}
2558
+
return r0, r1
2006
2559
}
2007
2560
2008
-
// MockEngine_InternalSchemePath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InternalSchemePath'
2009
-
type MockEngine_InternalSchemePath_Call struct {
2561
+
// MockMemoryPressureApplier_ApplyWebProcessSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyWebProcessSettings'
2562
+
type MockMemoryPressureApplier_ApplyWebProcessSettings_Call struct {
2010
2563
*mock.Call
2011
2564
}
2012
2565
2013
-
// InternalSchemePath is a helper method to define mock.On call
// NewMockEngine creates a new instance of MockEngine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2602
+
// The first argument is typically a *testing.T value.
2603
+
func NewMockEngine(t interface {
2604
+
mock.TestingT
2605
+
Cleanup(func())
2606
+
}) *MockEngine {
2607
+
mock := &MockEngine{}
2608
+
mock.Mock.Test(t)
2609
+
2610
+
t.Cleanup(func() { mock.AssertExpectations(t) })
2611
+
2612
+
return mock
2613
+
}
2614
+
2615
+
// MockEngine is an autogenerated mock type for the Engine type
// NewMockSchemeHandler creates a new instance of MockSchemeHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2220
-
// The first argument is typically a *testing.T value.
2221
-
func NewMockSchemeHandler(t interface {
2222
-
mock.TestingT
2223
-
Cleanup(func())
2224
-
}) *MockSchemeHandler {
2225
-
mock := &MockSchemeHandler{}
2226
-
mock.Mock.Test(t)
2227
-
2228
-
t.Cleanup(func() { mock.AssertExpectations(t) })
2229
-
2230
-
return mock
2231
-
}
2232
-
2233
-
// MockSchemeHandler is an autogenerated mock type for the SchemeHandler type
2234
-
type MockSchemeHandler struct {
2235
-
mock.Mock
2236
-
}
2237
-
2238
-
type MockSchemeHandler_Expecter struct {
2239
-
mock *mock.Mock
2240
-
}
2833
+
// FaviconDatabase provides a mock function for the type MockEngine
// NewMockMessageRouter creates a new instance of MockMessageRouter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2293
-
// The first argument is typically a *testing.T value.
2294
-
func NewMockMessageRouter(t interface {
2295
-
mock.TestingT
2296
-
Cleanup(func())
2297
-
}) *MockMessageRouter {
2298
-
mock := &MockMessageRouter{}
2299
-
mock.Mock.Test(t)
2879
+
// FilterApplier provides a mock function for the type MockEngine
// NewMockSettingsApplier creates a new instance of MockSettingsApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2423
-
// The first argument is typically a *testing.T value.
2424
-
func NewMockSettingsApplier(t interface {
2425
-
mock.TestingT
2426
-
Cleanup(func())
2427
-
}) *MockSettingsApplier {
2428
-
mock := &MockSettingsApplier{}
2429
-
mock.Mock.Test(t)
3015
+
// MessageRouter provides a mock function for the type MockEngine
// NewMockFilterApplier creates a new instance of MockFilterApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2496
-
// The first argument is typically a *testing.T value.
2497
-
func NewMockFilterApplier(t interface {
2498
-
mock.TestingT
2499
-
Cleanup(func())
2500
-
}) *MockFilterApplier {
2501
-
mock := &MockFilterApplier{}
2502
-
mock.Mock.Test(t)
3112
+
// Pool provides a mock function for the type MockEngine
panic("no return value specified for RegisterAccentHandlers")
3164
+
}
3165
+
3166
+
var r0 error
3167
+
if returnFunc, ok := ret.Get(0).(func(context.Context, port.AccentKeyHandler) error); ok {
3168
+
r0 = returnFunc(ctx, handler)
3169
+
} else {
3170
+
r0 = ret.Error(0)
3171
+
}
3172
+
return r0
3173
+
}
3174
+
3175
+
// MockEngine_RegisterAccentHandlers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterAccentHandlers'
3176
+
type MockEngine_RegisterAccentHandlers_Call struct {
2530
3177
*mock.Call
2531
3178
}
2532
3179
2533
-
// ApplyToAll is a helper method to define mock.On call
3180
+
// RegisterAccentHandlers is a helper method to define mock.On call
// NewMockFaviconDatabase creates a new instance of MockFaviconDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2569
-
// The first argument is typically a *testing.T value.
2570
-
func NewMockFaviconDatabase(t interface {
2571
-
mock.TestingT
2572
-
Cleanup(func())
2573
-
}) *MockFaviconDatabase {
2574
-
mock := &MockFaviconDatabase{}
2575
-
mock.Mock.Test(t)
2576
-
2577
-
t.Cleanup(func() { mock.AssertExpectations(t) })
2578
-
2579
-
return mock
2580
-
}
2581
-
2582
-
// MockFaviconDatabase is an autogenerated mock type for the FaviconDatabase type
2583
-
type MockFaviconDatabase struct {
2584
-
mock.Mock
2585
-
}
2586
-
2587
-
type MockFaviconDatabase_Expecter struct {
2588
-
mock *mock.Mock
2589
-
}
3215
+
// RegisterHandlers provides a mock function for the type MockEngine
// NewMockFontDetector creates a new instance of MockFontDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2642
-
// The first argument is typically a *testing.T value.
2643
-
func NewMockFontDetector(t interface {
2644
-
mock.TestingT
2645
-
Cleanup(func())
2646
-
}) *MockFontDetector {
2647
-
mock := &MockFontDetector{}
2648
-
mock.Mock.Test(t)
3272
+
// SchemeHandler provides a mock function for the type MockEngine
func (_e *MockEngine_Expecter) UpdateAppearance(ctx interface{}, r interface{}, g interface{}, b interface{}, alpha interface{}) *MockEngine_UpdateAppearance_Call {
// NewMockHardwareSurveyor creates a new instance of MockHardwareSurveyor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3536
+
// NewMockSchemeHandler creates a new instance of MockSchemeHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2845
3537
// The first argument is typically a *testing.T value.
// NewMockIdleInhibitor creates a new instance of MockIdleInhibitor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3609
+
// NewMockMessageRouter creates a new instance of MockMessageRouter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2923
3610
// The first argument is typically a *testing.T value.
panic("no return value specified for IsInhibited")
3056
-
}
3057
-
3058
-
var r0 bool
3059
-
if returnFunc, ok := ret.Get(0).(func() bool); ok {
3060
-
r0 = returnFunc()
3061
-
} else {
3062
-
r0 = ret.Get(0).(bool)
3063
-
}
3064
-
return r0
3065
-
}
3739
+
// NewMockSettingsApplier creates a new instance of MockSettingsApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3740
+
// The first argument is typically a *testing.T value.
3741
+
func NewMockSettingsApplier(t interface {
3742
+
mock.TestingT
3743
+
Cleanup(func())
3744
+
}) *MockSettingsApplier {
3745
+
mock := &MockSettingsApplier{}
3746
+
mock.Mock.Test(t)
3066
3747
3067
-
// MockIdleInhibitor_IsInhibited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsInhibited'
3068
-
type MockIdleInhibitor_IsInhibited_Call struct {
3069
-
*mock.Call
3070
-
}
3748
+
t.Cleanup(func() { mock.AssertExpectations(t) })
3071
3749
3072
-
// IsInhibited is a helper method to define mock.On call
// NewMockKeybindingsProvider creates a new instance of MockKeybindingsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3812
+
// NewMockFilterApplier creates a new instance of MockFilterApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3146
3813
// The first argument is typically a *testing.T value.
// NewMockFaviconDatabase creates a new instance of MockFaviconDatabase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3886
+
// The first argument is typically a *testing.T value.
3887
+
func NewMockFaviconDatabase(t interface {
3888
+
mock.TestingT
3889
+
Cleanup(func())
3890
+
}) *MockFaviconDatabase {
3891
+
mock := &MockFaviconDatabase{}
3892
+
mock.Mock.Test(t)
3255
3893
3256
-
if len(ret) == 0 {
3257
-
panic("no return value specified for GetDefaultKeybindings")
3258
-
}
3894
+
t.Cleanup(func() { mock.AssertExpectations(t) })
3259
3895
3260
-
var r0 port.KeybindingsConfig
3261
-
var r1 error
3262
-
if returnFunc, ok := ret.Get(0).(func(context.Context) (port.KeybindingsConfig, error)); ok {
3263
-
return returnFunc(ctx)
3264
-
}
3265
-
if returnFunc, ok := ret.Get(0).(func(context.Context) port.KeybindingsConfig); ok {
3266
-
r0 = returnFunc(ctx)
3267
-
} else {
3268
-
r0 = ret.Get(0).(port.KeybindingsConfig)
3269
-
}
3270
-
if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
3271
-
r1 = returnFunc(ctx)
3272
-
} else {
3273
-
r1 = ret.Error(1)
3274
-
}
3275
-
return r0, r1
3896
+
return mock
3276
3897
}
3277
3898
3278
-
// MockKeybindingsProvider_GetDefaultKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultKeybindings'
3279
-
type MockKeybindingsProvider_GetDefaultKeybindings_Call struct {
3899
+
// MockFaviconDatabase is an autogenerated mock type for the FaviconDatabase type
// NewMockScriptRefresher creates a new instance of MockScriptRefresher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3959
+
// The first argument is typically a *testing.T value.
3960
+
func NewMockScriptRefresher(t interface {
3961
+
mock.TestingT
3962
+
Cleanup(func())
3963
+
}) *MockScriptRefresher {
3964
+
mock := &MockScriptRefresher{}
3965
+
mock.Mock.Test(t)
3315
3966
3316
-
if len(ret) == 0 {
3317
-
panic("no return value specified for GetKeybindings")
3318
-
}
3967
+
t.Cleanup(func() { mock.AssertExpectations(t) })
3319
3968
3320
-
var r0 port.KeybindingsConfig
3321
-
var r1 error
3322
-
if returnFunc, ok := ret.Get(0).(func(context.Context) (port.KeybindingsConfig, error)); ok {
3323
-
return returnFunc(ctx)
3324
-
}
3325
-
if returnFunc, ok := ret.Get(0).(func(context.Context) port.KeybindingsConfig); ok {
3326
-
r0 = returnFunc(ctx)
3327
-
} else {
3328
-
r0 = ret.Get(0).(port.KeybindingsConfig)
3329
-
}
3330
-
if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
3331
-
r1 = returnFunc(ctx)
3332
-
} else {
3333
-
r1 = ret.Error(1)
3334
-
}
3335
-
return r0, r1
3969
+
return mock
3336
3970
}
3337
3971
3338
-
// MockKeybindingsProvider_GetKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeybindings'
3339
-
type MockKeybindingsProvider_GetKeybindings_Call struct {
3972
+
// MockScriptRefresher is an autogenerated mock type for the ScriptRefresher type
// NewMockKeybindingsSaver creates a new instance of MockKeybindingsSaver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4031
+
// NewMockNativeWidgetProvider creates a new instance of MockNativeWidgetProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3373
4032
// The first argument is typically a *testing.T value.
panic("no return value specified for ResetAllKeybindings")
4063
+
panic("no return value specified for NativeWidget")
3405
4064
}
3406
4065
3407
-
var r0 error
3408
-
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
3409
-
r0 = returnFunc(ctx)
4066
+
var r0 uintptr
4067
+
if returnFunc, ok := ret.Get(0).(func() uintptr); ok {
4068
+
r0 = returnFunc()
3410
4069
} else {
3411
-
r0 = ret.Error(0)
4070
+
r0 = ret.Get(0).(uintptr)
3412
4071
}
3413
4072
return r0
3414
4073
}
3415
4074
3416
-
// MockKeybindingsSaver_ResetAllKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetAllKeybindings'
3417
-
type MockKeybindingsSaver_ResetAllKeybindings_Call struct {
4075
+
// MockNativeWidgetProvider_NativeWidget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NativeWidget'
4076
+
type MockNativeWidgetProvider_NativeWidget_Call struct {
3418
4077
*mock.Call
3419
4078
}
3420
4079
3421
-
// ResetAllKeybindings is a helper method to define mock.On call
// NewMockFaviconService creates a new instance of MockFaviconService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4103
+
// The first argument is typically a *testing.T value.
4104
+
func NewMockFaviconService(t interface {
4105
+
mock.TestingT
4106
+
Cleanup(func())
4107
+
}) *MockFaviconService {
4108
+
mock := &MockFaviconService{}
4109
+
mock.Mock.Test(t)
3453
4110
3454
-
if len(ret) == 0 {
3455
-
panic("no return value specified for ResetKeybinding")
3456
-
}
4111
+
t.Cleanup(func() { mock.AssertExpectations(t) })
3457
4112
3458
-
var r0 error
3459
-
if returnFunc, ok := ret.Get(0).(func(context.Context, port.ResetKeybindingRequest) error); ok {
3460
-
r0 = returnFunc(ctx, req)
3461
-
} else {
3462
-
r0 = ret.Error(0)
3463
-
}
3464
-
return r0
4113
+
return mock
3465
4114
}
3466
4115
3467
-
// MockKeybindingsSaver_ResetKeybinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetKeybinding'
3468
-
type MockKeybindingsSaver_ResetKeybinding_Call struct {
4116
+
// MockFaviconService is an autogenerated mock type for the FaviconService type
// NewMockPermissionDialogPresenter creates a new instance of MockPermissionDialogPresenter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3565
-
// The first argument is typically a *testing.T value.
// MockPermissionDialogPresenter_ShowPermissionDialog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPermissionDialog'
3598
-
type MockPermissionDialogPresenter_ShowPermissionDialog_Call struct {
4263
+
// MockFaviconService_EnsureDiskCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureDiskCache'
4264
+
type MockFaviconService_EnsureDiskCache_Call struct {
3599
4265
*mock.Call
3600
4266
}
3601
4267
3602
-
// ShowPermissionDialog is a helper method to define mock.On call
4268
+
// EnsureDiskCache is a helper method to define mock.On call
// NewMockPermissionRepository creates a new instance of MockPermissionRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3650
-
// The first argument is typically a *testing.T value.
3651
-
func NewMockPermissionRepository(t interface {
3652
-
mock.TestingT
3653
-
Cleanup(func())
3654
-
}) *MockPermissionRepository {
3655
-
mock := &MockPermissionRepository{}
3656
-
mock.Mock.Test(t)
3657
-
3658
-
t.Cleanup(func() { mock.AssertExpectations(t) })
3659
-
3660
-
return mock
3661
-
}
3662
-
3663
-
// MockPermissionRepository is an autogenerated mock type for the PermissionRepository type
// NewMockSessionLogger creates a new instance of MockSessionLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
3939
-
// The first argument is typically a *testing.T value.
3940
-
func NewMockSessionLogger(t interface {
3941
-
mock.TestingT
3942
-
Cleanup(func())
3943
-
}) *MockSessionLogger {
3944
-
mock := &MockSessionLogger{}
3945
-
mock.Mock.Test(t)
4547
+
// HasPNGSizedOnDisk provides a mock function for the type MockFaviconService
// NewMockTabListProvider creates a new instance of MockTabListProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4604
+
// NewMockFileSystem creates a new instance of MockFileSystem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4046
4605
// The first argument is typically a *testing.T value.
// NewMockSessionSpawner creates a new instance of MockSessionSpawner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4163
-
// The first argument is typically a *testing.T value.
4164
-
func NewMockSessionSpawner(t interface {
4165
-
mock.TestingT
4166
-
Cleanup(func())
4167
-
}) *MockSessionSpawner {
4168
-
mock := &MockSessionSpawner{}
4169
-
mock.Mock.Test(t)
4763
+
// IsDirectory provides a mock function for the type MockFileSystem
// NewMockTextInputTarget creates a new instance of MockTextInputTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4886
+
// NewMockFilterManager creates a new instance of MockFilterManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4241
4887
// The first argument is typically a *testing.T value.
panic("no return value specified for DeleteBeforeCursor")
4273
-
}
4274
-
4275
-
var r0 error
4276
-
if returnFunc, ok := ret.Get(0).(func(context.Context, int) error); ok {
4277
-
r0 = returnFunc(ctx, n)
4278
-
} else {
4279
-
r0 = ret.Error(0)
4280
-
}
4281
-
return r0
4282
-
}
4283
-
4284
-
// MockTextInputTarget_DeleteBeforeCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBeforeCursor'
4285
-
type MockTextInputTarget_DeleteBeforeCursor_Call struct {
4919
+
// MockFilterManager_LoadAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadAsync'
4920
+
type MockFilterManager_LoadAsync_Call struct {
4286
4921
*mock.Call
4287
4922
}
4288
4923
4289
-
// DeleteBeforeCursor is a helper method to define mock.On call
4924
+
// LoadAsync is a helper method to define mock.On call
4290
4925
// - ctx context.Context
4291
-
// - n int
4292
-
func (_e *MockTextInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockTextInputTarget_DeleteBeforeCursor_Call {
// NewMockFocusedInputProvider creates a new instance of MockFocusedInputProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4993
+
// NewMockFontDetector creates a new instance of MockFontDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4382
4994
// The first argument is typically a *testing.T value.
panic("no return value specified for GetFocusedInput")
5025
+
panic("no return value specified for GetAvailableFonts")
4414
5026
}
4415
5027
4416
-
var r0 port.TextInputTarget
4417
-
if returnFunc, ok := ret.Get(0).(func() port.TextInputTarget); ok {
4418
-
r0 = returnFunc()
5028
+
var r0 []string
5029
+
var r1 error
5030
+
if returnFunc, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
5031
+
return returnFunc(ctx)
5032
+
}
5033
+
if returnFunc, ok := ret.Get(0).(func(context.Context) []string); ok {
5034
+
r0 = returnFunc(ctx)
4419
5035
} else {
4420
5036
if ret.Get(0) != nil {
4421
-
r0 = ret.Get(0).(port.TextInputTarget)
5037
+
r0 = ret.Get(0).([]string)
4422
5038
}
4423
5039
}
4424
-
return r0
4425
-
}
4426
-
4427
-
// MockFocusedInputProvider_GetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFocusedInput'
4428
-
type MockFocusedInputProvider_GetFocusedInput_Call struct {
4429
-
*mock.Call
4430
-
}
4431
-
4432
-
// GetFocusedInput is a helper method to define mock.On call
if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
5041
+
r1 = returnFunc(ctx)
5042
+
} else {
5043
+
r1 = ret.Error(1)
5044
+
}
5045
+
return r0, r1
4458
5046
}
4459
5047
4460
-
// MockFocusedInputProvider_SetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusedInput'
4461
-
type MockFocusedInputProvider_SetFocusedInput_Call struct {
5048
+
// MockFontDetector_GetAvailableFonts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAvailableFonts'
5049
+
type MockFontDetector_GetAvailableFonts_Call struct {
4462
5050
*mock.Call
4463
5051
}
4464
5052
4465
-
// SetFocusedInput is a helper method to define mock.On call
// NewMockWebView creates a new instance of MockWebView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
4495
-
// The first argument is typically a *testing.T value.
4496
-
func NewMockWebView(t interface {
4497
-
mock.TestingT
4498
-
Cleanup(func())
4499
-
}) *MockWebView {
4500
-
mock := &MockWebView{}
4501
-
mock.Mock.Test(t)
4502
-
4503
-
t.Cleanup(func() { mock.AssertExpectations(t) })
4504
-
4505
-
return mock
4506
-
}
4507
-
4508
-
// MockWebView is an autogenerated mock type for the WebView type
// Destroy provides a mock function for the type MockWebView
4610
-
func (_mock *MockWebView) Destroy() {
4611
-
_mock.Called()
4612
-
return
4613
-
}
5196
+
// NewMockAccentKeyHandler creates a new instance of MockAccentKeyHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5197
+
// The first argument is typically a *testing.T value.
5198
+
func NewMockAccentKeyHandler(t interface {
5199
+
mock.TestingT
5200
+
Cleanup(func())
5201
+
}) *MockAccentKeyHandler {
5202
+
mock := &MockAccentKeyHandler{}
5203
+
mock.Mock.Test(t)
4614
5204
4615
-
// MockWebView_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
4616
-
type MockWebView_Destroy_Call struct {
4617
-
*mock.Call
4618
-
}
5205
+
t.Cleanup(func() { mock.AssertExpectations(t) })
4619
5206
4620
-
// Destroy is a helper method to define mock.On call
// Generation provides a mock function for the type MockWebView
4733
-
func (_mock *MockWebView) Generation() uint64 {
4734
-
ret := _mock.Called()
4735
-
4736
-
if len(ret) == 0 {
4737
-
panic("no return value specified for Generation")
4738
-
}
4739
-
4740
-
var r0 uint64
4741
-
if returnFunc, ok := ret.Get(0).(func() uint64); ok {
4742
-
r0 = returnFunc()
4743
-
} else {
4744
-
r0 = ret.Get(0).(uint64)
4745
-
}
4746
-
return r0
4747
-
}
5332
+
// NewMockDownloadPreparer creates a new instance of MockDownloadPreparer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5333
+
// The first argument is typically a *testing.T value.
5334
+
func NewMockDownloadPreparer(t interface {
5335
+
mock.TestingT
5336
+
Cleanup(func())
5337
+
}) *MockDownloadPreparer {
5338
+
mock := &MockDownloadPreparer{}
5339
+
mock.Mock.Test(t)
4748
5340
4749
-
// MockWebView_Generation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generation'
4750
-
type MockWebView_Generation_Call struct {
4751
-
*mock.Call
4752
-
}
5341
+
t.Cleanup(func() { mock.AssertExpectations(t) })
4753
5342
4754
-
// Generation is a helper method to define mock.On call
// NewMockAutoCopyConfig creates a new instance of MockAutoCopyConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5419
+
// The first argument is typically a *testing.T value.
5420
+
func NewMockAutoCopyConfig(t interface {
5421
+
mock.TestingT
5422
+
Cleanup(func())
5423
+
}) *MockAutoCopyConfig {
5424
+
mock := &MockAutoCopyConfig{}
5425
+
mock.Mock.Test(t)
5426
+
5427
+
t.Cleanup(func() { mock.AssertExpectations(t) })
5428
+
5429
+
return mock
5430
+
}
5431
+
5432
+
// MockAutoCopyConfig is an autogenerated mock type for the AutoCopyConfig type
// NewMockHardwareSurveyor creates a new instance of MockHardwareSurveyor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5490
+
// The first argument is typically a *testing.T value.
5491
+
func NewMockHardwareSurveyor(t interface {
5492
+
mock.TestingT
5493
+
Cleanup(func())
5494
+
}) *MockHardwareSurveyor {
5495
+
mock := &MockHardwareSurveyor{}
5496
+
mock.Mock.Test(t)
5497
+
5498
+
t.Cleanup(func() { mock.AssertExpectations(t) })
5499
+
5500
+
return mock
5501
+
}
5502
+
5503
+
// MockHardwareSurveyor is an autogenerated mock type for the HardwareSurveyor type
// NewMockHomepageHistory creates a new instance of MockHomepageHistory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5568
+
// The first argument is typically a *testing.T value.
5569
+
func NewMockHomepageHistory(t interface {
5570
+
mock.TestingT
5571
+
Cleanup(func())
5572
+
}) *MockHomepageHistory {
5573
+
mock := &MockHomepageHistory{}
5574
+
mock.Mock.Test(t)
5575
+
5576
+
t.Cleanup(func() { mock.AssertExpectations(t) })
5577
+
5578
+
return mock
5579
+
}
5580
+
5581
+
// MockHomepageHistory is an autogenerated mock type for the HomepageHistory type
// NewMockHomepageFavorites creates a new instance of MockHomepageFavorites. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6089
+
// The first argument is typically a *testing.T value.
6090
+
func NewMockHomepageFavorites(t interface {
6091
+
mock.TestingT
6092
+
Cleanup(func())
6093
+
}) *MockHomepageFavorites {
6094
+
mock := &MockHomepageFavorites{}
6095
+
mock.Mock.Test(t)
6096
+
6097
+
t.Cleanup(func() { mock.AssertExpectations(t) })
6098
+
6099
+
return mock
6100
+
}
6101
+
6102
+
// MockHomepageFavorites is an autogenerated mock type for the HomepageFavorites type
// DeleteFolder provides a mock function for the type MockHomepageFavorites
6264
+
func (_mock *MockHomepageFavorites) DeleteFolder(ctx context.Context, id entity.FolderID) error {
6265
+
ret := _mock.Called(ctx, id)
6266
+
6267
+
if len(ret) == 0 {
6268
+
panic("no return value specified for DeleteFolder")
6269
+
}
6270
+
6271
+
var r0 error
6272
+
if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FolderID) error); ok {
6273
+
r0 = returnFunc(ctx, id)
6274
+
} else {
6275
+
r0 = ret.Error(0)
6276
+
}
6277
+
return r0
5414
6278
}
5415
6279
5416
-
// MockWebView_ResetBackgroundToDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetBackgroundToDefault'
5417
-
type MockWebView_ResetBackgroundToDefault_Call struct {
6280
+
// MockHomepageFavorites_DeleteFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFolder'
6281
+
type MockHomepageFavorites_DeleteFolder_Call struct {
5418
6282
*mock.Call
5419
6283
}
5420
6284
5421
-
// ResetBackgroundToDefault is a helper method to define mock.On call
func (_c *MockWebView_SetBackgroundColor_Call) RunAndReturn(run func(r float64, g float64, b float64, a float64)) *MockWebView_SetBackgroundColor_Call {
// NewMockWebViewPool creates a new instance of MockWebViewPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
5828
-
// The first argument is typically a *testing.T value.
5829
-
func NewMockWebViewPool(t interface {
5830
-
mock.TestingT
5831
-
Cleanup(func())
5832
-
}) *MockWebViewPool {
5833
-
mock := &MockWebViewPool{}
5834
-
mock.Mock.Test(t)
5835
-
5836
-
t.Cleanup(func() { mock.AssertExpectations(t) })
5837
-
5838
-
return mock
5839
-
}
5840
-
5841
-
// MockWebViewPool is an autogenerated mock type for the WebViewPool type
// UpdateTag is a helper method to define mock.On call
6975
+
// - ctx context.Context
6976
+
// - id entity.TagID
6977
+
// - name string
6978
+
// - color string
6979
+
func (_e *MockHomepageFavorites_Expecter) UpdateTag(ctx interface{}, id interface{}, name interface{}, color interface{}) *MockHomepageFavorites_UpdateTag_Call {
func (_c *MockHomepageFavorites_UpdateTag_Call) Run(run func(ctx context.Context, id entity.TagID, name string, color string)) *MockHomepageFavorites_UpdateTag_Call {
func (_c *MockHomepageFavorites_UpdateTag_Call) RunAndReturn(run func(ctx context.Context, id entity.TagID, name string, color string) error) *MockHomepageFavorites_UpdateTag_Call {
7017
+
_c.Call.Return(run)
5986
7018
return _c
5987
7019
}
5988
7020
5989
-
// Release provides a mock function for the type MockWebViewPool
// NewMockIdleInhibitor creates a new instance of MockIdleInhibitor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7022
+
// The first argument is typically a *testing.T value.
7023
+
func NewMockIdleInhibitor(t interface {
7024
+
mock.TestingT
7025
+
Cleanup(func())
7026
+
}) *MockIdleInhibitor {
7027
+
mock := &MockIdleInhibitor{}
7028
+
mock.Mock.Test(t)
5994
7029
5995
-
// MockWebViewPool_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release'
5996
-
type MockWebViewPool_Release_Call struct {
5997
-
*mock.Call
5998
-
}
7030
+
t.Cleanup(func() { mock.AssertExpectations(t) })
5999
7031
6000
-
// Release is a helper method to define mock.On call
// NewMockWebViewFactory creates a new instance of MockWebViewFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6074
-
// The first argument is typically a *testing.T value.
6075
-
func NewMockWebViewFactory(t interface {
6076
-
mock.TestingT
6077
-
Cleanup(func())
6078
-
}) *MockWebViewFactory {
6079
-
mock := &MockWebViewFactory{}
6080
-
mock.Mock.Test(t)
7092
+
// Inhibit provides a mock function for the type MockIdleInhibitor
// NewMockKeybindingsProvider creates a new instance of MockKeybindingsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7245
+
// The first argument is typically a *testing.T value.
7246
+
func NewMockKeybindingsProvider(t interface {
7247
+
mock.TestingT
7248
+
Cleanup(func())
7249
+
}) *MockKeybindingsProvider {
7250
+
mock := &MockKeybindingsProvider{}
7251
+
mock.Mock.Test(t)
7252
+
7253
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7254
+
7255
+
return mock
7256
+
}
7257
+
7258
+
// MockKeybindingsProvider is an autogenerated mock type for the KeybindingsProvider type
panic("no return value specified for GetDefaultKeybindings")
7357
+
}
7358
+
7359
+
var r0 port.KeybindingsConfig
7360
+
var r1 error
7361
+
if returnFunc, ok := ret.Get(0).(func(context.Context) (port.KeybindingsConfig, error)); ok {
7362
+
return returnFunc(ctx)
7363
+
}
7364
+
if returnFunc, ok := ret.Get(0).(func(context.Context) port.KeybindingsConfig); ok {
7365
+
r0 = returnFunc(ctx)
7366
+
} else {
7367
+
r0 = ret.Get(0).(port.KeybindingsConfig)
7368
+
}
7369
+
if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
7370
+
r1 = returnFunc(ctx)
7371
+
} else {
7372
+
r1 = ret.Error(1)
7373
+
}
7374
+
return r0, r1
7375
+
}
7376
+
7377
+
// MockKeybindingsProvider_GetDefaultKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultKeybindings'
7378
+
type MockKeybindingsProvider_GetDefaultKeybindings_Call struct {
7379
+
*mock.Call
7380
+
}
7381
+
7382
+
// GetDefaultKeybindings is a helper method to define mock.On call
// NewMockKeybindingsSaver creates a new instance of MockKeybindingsSaver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7472
+
// The first argument is typically a *testing.T value.
7473
+
func NewMockKeybindingsSaver(t interface {
7474
+
mock.TestingT
7475
+
Cleanup(func())
7476
+
}) *MockKeybindingsSaver {
7477
+
mock := &MockKeybindingsSaver{}
7478
+
mock.Mock.Test(t)
7479
+
7480
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7481
+
7482
+
return mock
7483
+
}
7484
+
7485
+
// MockKeybindingsSaver is an autogenerated mock type for the KeybindingsSaver type
panic("no return value specified for ResetAllKeybindings")
7504
+
}
7505
+
7506
+
var r0 error
7507
+
if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
7508
+
r0 = returnFunc(ctx)
7509
+
} else {
7510
+
r0 = ret.Error(0)
7511
+
}
7512
+
return r0
7513
+
}
7514
+
7515
+
// MockKeybindingsSaver_ResetAllKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetAllKeybindings'
7516
+
type MockKeybindingsSaver_ResetAllKeybindings_Call struct {
7517
+
*mock.Call
7518
+
}
7519
+
7520
+
// ResetAllKeybindings is a helper method to define mock.On call
// NewMockKeybindingsGetter creates a new instance of MockKeybindingsGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7664
+
// The first argument is typically a *testing.T value.
7665
+
func NewMockKeybindingsGetter(t interface {
7666
+
mock.TestingT
7667
+
Cleanup(func())
7668
+
}) *MockKeybindingsGetter {
7669
+
mock := &MockKeybindingsGetter{}
7670
+
mock.Mock.Test(t)
7671
+
7672
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7673
+
7674
+
return mock
7675
+
}
7676
+
7677
+
// MockKeybindingsGetter is an autogenerated mock type for the KeybindingsGetter type
// NewMockKeybindingSetter creates a new instance of MockKeybindingSetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7751
+
// The first argument is typically a *testing.T value.
7752
+
func NewMockKeybindingSetter(t interface {
7753
+
mock.TestingT
7754
+
Cleanup(func())
7755
+
}) *MockKeybindingSetter {
7756
+
mock := &MockKeybindingSetter{}
7757
+
mock.Mock.Test(t)
7758
+
7759
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7760
+
7761
+
return mock
7762
+
}
7763
+
7764
+
// MockKeybindingSetter is an autogenerated mock type for the KeybindingSetter type
// NewMockKeybindingResetter creates a new instance of MockKeybindingResetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7844
+
// The first argument is typically a *testing.T value.
7845
+
func NewMockKeybindingResetter(t interface {
7846
+
mock.TestingT
7847
+
Cleanup(func())
7848
+
}) *MockKeybindingResetter {
7849
+
mock := &MockKeybindingResetter{}
7850
+
mock.Mock.Test(t)
7851
+
7852
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7853
+
7854
+
return mock
7855
+
}
7856
+
7857
+
// MockKeybindingResetter is an autogenerated mock type for the KeybindingResetter type
// NewMockAllKeybindingsResetter creates a new instance of MockAllKeybindingsResetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
7928
+
// The first argument is typically a *testing.T value.
7929
+
func NewMockAllKeybindingsResetter(t interface {
7930
+
mock.TestingT
7931
+
Cleanup(func())
7932
+
}) *MockAllKeybindingsResetter {
7933
+
mock := &MockAllKeybindingsResetter{}
7934
+
mock.Mock.Test(t)
7935
+
7936
+
t.Cleanup(func() { mock.AssertExpectations(t) })
7937
+
7938
+
return mock
7939
+
}
7940
+
7941
+
// MockAllKeybindingsResetter is an autogenerated mock type for the AllKeybindingsResetter type
// NewMockMediaDiagnostics creates a new instance of MockMediaDiagnostics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8006
+
// The first argument is typically a *testing.T value.
8007
+
func NewMockMediaDiagnostics(t interface {
8008
+
mock.TestingT
8009
+
Cleanup(func())
8010
+
}) *MockMediaDiagnostics {
8011
+
mock := &MockMediaDiagnostics{}
8012
+
mock.Mock.Test(t)
8013
+
8014
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8015
+
8016
+
return mock
8017
+
}
8018
+
8019
+
// MockMediaDiagnostics is an autogenerated mock type for the MediaDiagnostics type
// NewMockNotification creates a new instance of MockNotification. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8086
+
// The first argument is typically a *testing.T value.
8087
+
func NewMockNotification(t interface {
8088
+
mock.TestingT
8089
+
Cleanup(func())
8090
+
}) *MockNotification {
8091
+
mock := &MockNotification{}
8092
+
mock.Mock.Test(t)
8093
+
8094
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8095
+
8096
+
return mock
8097
+
}
8098
+
8099
+
// MockNotification is an autogenerated mock type for the Notification type
// NewMockPermissionDialogPresenter creates a new instance of MockPermissionDialogPresenter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8325
+
// The first argument is typically a *testing.T value.
// MockPermissionDialogPresenter_ShowPermissionDialog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPermissionDialog'
8358
+
type MockPermissionDialogPresenter_ShowPermissionDialog_Call struct {
8359
+
*mock.Call
8360
+
}
8361
+
8362
+
// ShowPermissionDialog is a helper method to define mock.On call
// NewMockPermissionRepository creates a new instance of MockPermissionRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8410
+
// The first argument is typically a *testing.T value.
8411
+
func NewMockPermissionRepository(t interface {
8412
+
mock.TestingT
8413
+
Cleanup(func())
8414
+
}) *MockPermissionRepository {
8415
+
mock := &MockPermissionRepository{}
8416
+
mock.Mock.Test(t)
8417
+
8418
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8419
+
8420
+
return mock
8421
+
}
8422
+
8423
+
// MockPermissionRepository is an autogenerated mock type for the PermissionRepository type
// NewMockRenderingEnvManager creates a new instance of MockRenderingEnvManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8699
+
// The first argument is typically a *testing.T value.
8700
+
func NewMockRenderingEnvManager(t interface {
8701
+
mock.TestingT
8702
+
Cleanup(func())
8703
+
}) *MockRenderingEnvManager {
8704
+
mock := &MockRenderingEnvManager{}
8705
+
mock.Mock.Test(t)
8706
+
8707
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8708
+
8709
+
return mock
8710
+
}
8711
+
8712
+
// MockRenderingEnvManager is an autogenerated mock type for the RenderingEnvManager type
panic("no return value specified for DetectGPUVendor")
8731
+
}
8732
+
8733
+
var r0 port.GPUVendor
8734
+
if returnFunc, ok := ret.Get(0).(func(context.Context) port.GPUVendor); ok {
8735
+
r0 = returnFunc(ctx)
8736
+
} else {
8737
+
r0 = ret.Get(0).(port.GPUVendor)
8738
+
}
8739
+
return r0
8740
+
}
8741
+
8742
+
// MockRenderingEnvManager_DetectGPUVendor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetectGPUVendor'
8743
+
type MockRenderingEnvManager_DetectGPUVendor_Call struct {
8744
+
*mock.Call
8745
+
}
8746
+
8747
+
// DetectGPUVendor is a helper method to define mock.On call
// NewMockRuntimeVersionProbe creates a new instance of MockRuntimeVersionProbe. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8823
+
// The first argument is typically a *testing.T value.
8824
+
func NewMockRuntimeVersionProbe(t interface {
8825
+
mock.TestingT
8826
+
Cleanup(func())
8827
+
}) *MockRuntimeVersionProbe {
8828
+
mock := &MockRuntimeVersionProbe{}
8829
+
mock.Mock.Test(t)
8830
+
8831
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8832
+
8833
+
return mock
8834
+
}
8835
+
8836
+
// MockRuntimeVersionProbe is an autogenerated mock type for the RuntimeVersionProbe type
panic("no return value specified for PkgConfigModVersion")
8855
+
}
8856
+
8857
+
var r0 string
8858
+
var r1 error
8859
+
if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (string, error)); ok {
8860
+
return returnFunc(ctx, pkgName, prefix)
8861
+
}
8862
+
if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) string); ok {
8863
+
r0 = returnFunc(ctx, pkgName, prefix)
8864
+
} else {
8865
+
r0 = ret.Get(0).(string)
8866
+
}
8867
+
if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
8868
+
r1 = returnFunc(ctx, pkgName, prefix)
8869
+
} else {
8870
+
r1 = ret.Error(1)
8871
+
}
8872
+
return r0, r1
8873
+
}
8874
+
8875
+
// MockRuntimeVersionProbe_PkgConfigModVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PkgConfigModVersion'
8876
+
type MockRuntimeVersionProbe_PkgConfigModVersion_Call struct {
8877
+
*mock.Call
8878
+
}
8879
+
8880
+
// PkgConfigModVersion is a helper method to define mock.On call
// NewMockSessionLogger creates a new instance of MockSessionLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
8922
+
// The first argument is typically a *testing.T value.
8923
+
func NewMockSessionLogger(t interface {
8924
+
mock.TestingT
8925
+
Cleanup(func())
8926
+
}) *MockSessionLogger {
8927
+
mock := &MockSessionLogger{}
8928
+
mock.Mock.Test(t)
8929
+
8930
+
t.Cleanup(func() { mock.AssertExpectations(t) })
8931
+
8932
+
return mock
8933
+
}
8934
+
8935
+
// MockSessionLogger is an autogenerated mock type for the SessionLogger type
// NewMockTabListProvider creates a new instance of MockTabListProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9029
+
// The first argument is typically a *testing.T value.
9030
+
func NewMockTabListProvider(t interface {
9031
+
mock.TestingT
9032
+
Cleanup(func())
9033
+
}) *MockTabListProvider {
9034
+
mock := &MockTabListProvider{}
9035
+
mock.Mock.Test(t)
9036
+
9037
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9038
+
9039
+
return mock
9040
+
}
9041
+
9042
+
// MockTabListProvider is an autogenerated mock type for the TabListProvider type
// NewMockSessionSpawner creates a new instance of MockSessionSpawner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9146
+
// The first argument is typically a *testing.T value.
9147
+
func NewMockSessionSpawner(t interface {
9148
+
mock.TestingT
9149
+
Cleanup(func())
9150
+
}) *MockSessionSpawner {
9151
+
mock := &MockSessionSpawner{}
9152
+
mock.Mock.Test(t)
9153
+
9154
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9155
+
9156
+
return mock
9157
+
}
9158
+
9159
+
// MockSessionSpawner is an autogenerated mock type for the SessionSpawner type
// NewMockSnapshotService creates a new instance of MockSnapshotService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9224
+
// The first argument is typically a *testing.T value.
9225
+
func NewMockSnapshotService(t interface {
9226
+
mock.TestingT
9227
+
Cleanup(func())
9228
+
}) *MockSnapshotService {
9229
+
mock := &MockSnapshotService{}
9230
+
mock.Mock.Test(t)
9231
+
9232
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9233
+
9234
+
return mock
9235
+
}
9236
+
9237
+
// MockSnapshotService is an autogenerated mock type for the SnapshotService type
// NewMockTextInputTarget creates a new instance of MockTextInputTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9459
+
// The first argument is typically a *testing.T value.
9460
+
func NewMockTextInputTarget(t interface {
9461
+
mock.TestingT
9462
+
Cleanup(func())
9463
+
}) *MockTextInputTarget {
9464
+
mock := &MockTextInputTarget{}
9465
+
mock.Mock.Test(t)
9466
+
9467
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9468
+
9469
+
return mock
9470
+
}
9471
+
9472
+
// MockTextInputTarget is an autogenerated mock type for the TextInputTarget type
// DeleteBeforeCursor provides a mock function for the type MockTextInputTarget
9486
+
func (_mock *MockTextInputTarget) DeleteBeforeCursor(ctx context.Context, n int) error {
9487
+
ret := _mock.Called(ctx, n)
9488
+
9489
+
if len(ret) == 0 {
9490
+
panic("no return value specified for DeleteBeforeCursor")
9491
+
}
9492
+
9493
+
var r0 error
9494
+
if returnFunc, ok := ret.Get(0).(func(context.Context, int) error); ok {
9495
+
r0 = returnFunc(ctx, n)
9496
+
} else {
9497
+
r0 = ret.Error(0)
9498
+
}
9499
+
return r0
9500
+
}
9501
+
9502
+
// MockTextInputTarget_DeleteBeforeCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBeforeCursor'
9503
+
type MockTextInputTarget_DeleteBeforeCursor_Call struct {
9504
+
*mock.Call
9505
+
}
9506
+
9507
+
// DeleteBeforeCursor is a helper method to define mock.On call
9508
+
// - ctx context.Context
9509
+
// - n int
9510
+
func (_e *MockTextInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockTextInputTarget_DeleteBeforeCursor_Call {
// NewMockFocusable creates a new instance of MockFocusable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9600
+
// The first argument is typically a *testing.T value.
9601
+
func NewMockFocusable(t interface {
9602
+
mock.TestingT
9603
+
Cleanup(func())
9604
+
}) *MockFocusable {
9605
+
mock := &MockFocusable{}
9606
+
mock.Mock.Test(t)
9607
+
9608
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9609
+
9610
+
return mock
9611
+
}
9612
+
9613
+
// MockFocusable is an autogenerated mock type for the Focusable type
// NewMockGTKEntryInputTarget creates a new instance of MockGTKEntryInputTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9667
+
// The first argument is typically a *testing.T value.
9668
+
func NewMockGTKEntryInputTarget(t interface {
9669
+
mock.TestingT
9670
+
Cleanup(func())
9671
+
}) *MockGTKEntryInputTarget {
9672
+
mock := &MockGTKEntryInputTarget{}
9673
+
mock.Mock.Test(t)
9674
+
9675
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9676
+
9677
+
return mock
9678
+
}
9679
+
9680
+
// MockGTKEntryInputTarget is an autogenerated mock type for the GTKEntryInputTarget type
// DeleteBeforeCursor provides a mock function for the type MockGTKEntryInputTarget
9694
+
func (_mock *MockGTKEntryInputTarget) DeleteBeforeCursor(ctx context.Context, n int) error {
9695
+
ret := _mock.Called(ctx, n)
9696
+
9697
+
if len(ret) == 0 {
9698
+
panic("no return value specified for DeleteBeforeCursor")
9699
+
}
9700
+
9701
+
var r0 error
9702
+
if returnFunc, ok := ret.Get(0).(func(context.Context, int) error); ok {
9703
+
r0 = returnFunc(ctx, n)
9704
+
} else {
9705
+
r0 = ret.Error(0)
9706
+
}
9707
+
return r0
9708
+
}
9709
+
9710
+
// MockGTKEntryInputTarget_DeleteBeforeCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBeforeCursor'
9711
+
type MockGTKEntryInputTarget_DeleteBeforeCursor_Call struct {
9712
+
*mock.Call
9713
+
}
9714
+
9715
+
// DeleteBeforeCursor is a helper method to define mock.On call
9716
+
// - ctx context.Context
9717
+
// - n int
9718
+
func (_e *MockGTKEntryInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockGTKEntryInputTarget_DeleteBeforeCursor_Call {
panic("no return value specified for IsGTKEntryTarget")
9813
+
}
9814
+
9815
+
var r0 bool
9816
+
if returnFunc, ok := ret.Get(0).(func() bool); ok {
9817
+
r0 = returnFunc()
9818
+
} else {
9819
+
r0 = ret.Get(0).(bool)
9820
+
}
9821
+
return r0
9822
+
}
9823
+
9824
+
// MockGTKEntryInputTarget_IsGTKEntryTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsGTKEntryTarget'
9825
+
type MockGTKEntryInputTarget_IsGTKEntryTarget_Call struct {
9826
+
*mock.Call
9827
+
}
9828
+
9829
+
// IsGTKEntryTarget is a helper method to define mock.On call
// NewMockFocusedInputProvider creates a new instance of MockFocusedInputProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9852
+
// The first argument is typically a *testing.T value.
9853
+
func NewMockFocusedInputProvider(t interface {
9854
+
mock.TestingT
9855
+
Cleanup(func())
9856
+
}) *MockFocusedInputProvider {
9857
+
mock := &MockFocusedInputProvider{}
9858
+
mock.Mock.Test(t)
9859
+
9860
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9861
+
9862
+
return mock
9863
+
}
9864
+
9865
+
// MockFocusedInputProvider is an autogenerated mock type for the FocusedInputProvider type
panic("no return value specified for GetFocusedInput")
9884
+
}
9885
+
9886
+
var r0 port.TextInputTarget
9887
+
if returnFunc, ok := ret.Get(0).(func() port.TextInputTarget); ok {
9888
+
r0 = returnFunc()
9889
+
} else {
9890
+
if ret.Get(0) != nil {
9891
+
r0 = ret.Get(0).(port.TextInputTarget)
9892
+
}
9893
+
}
9894
+
return r0
9895
+
}
9896
+
9897
+
// MockFocusedInputProvider_GetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFocusedInput'
9898
+
type MockFocusedInputProvider_GetFocusedInput_Call struct {
9899
+
*mock.Call
9900
+
}
9901
+
9902
+
// GetFocusedInput is a helper method to define mock.On call
// MockFocusedInputProvider_SetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusedInput'
9931
+
type MockFocusedInputProvider_SetFocusedInput_Call struct {
9932
+
*mock.Call
9933
+
}
9934
+
9935
+
// SetFocusedInput is a helper method to define mock.On call
// NewMockUpdateChecker creates a new instance of MockUpdateChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
9965
+
// The first argument is typically a *testing.T value.
9966
+
func NewMockUpdateChecker(t interface {
9967
+
mock.TestingT
9968
+
Cleanup(func())
9969
+
}) *MockUpdateChecker {
9970
+
mock := &MockUpdateChecker{}
9971
+
mock.Mock.Test(t)
9972
+
9973
+
t.Cleanup(func() { mock.AssertExpectations(t) })
9974
+
9975
+
return mock
9976
+
}
9977
+
9978
+
// MockUpdateChecker is an autogenerated mock type for the UpdateChecker type
// NewMockUpdateDownloader creates a new instance of MockUpdateDownloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
10060
+
// The first argument is typically a *testing.T value.
10061
+
func NewMockUpdateDownloader(t interface {
10062
+
mock.TestingT
10063
+
Cleanup(func())
10064
+
}) *MockUpdateDownloader {
10065
+
mock := &MockUpdateDownloader{}
10066
+
mock.Mock.Test(t)
10067
+
10068
+
t.Cleanup(func() { mock.AssertExpectations(t) })
10069
+
10070
+
return mock
10071
+
}
10072
+
10073
+
// MockUpdateDownloader is an autogenerated mock type for the UpdateDownloader type
// NewMockUpdateApplier creates a new instance of MockUpdateApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
10231
+
// The first argument is typically a *testing.T value.
10232
+
func NewMockUpdateApplier(t interface {
10233
+
mock.TestingT
10234
+
Cleanup(func())
10235
+
}) *MockUpdateApplier {
10236
+
mock := &MockUpdateApplier{}
10237
+
mock.Mock.Test(t)
10238
+
10239
+
t.Cleanup(func() { mock.AssertExpectations(t) })
10240
+
10241
+
return mock
10242
+
}
10243
+
10244
+
// MockUpdateApplier is an autogenerated mock type for the UpdateApplier type
panic("no return value specified for SelfUpdateBlockedReason")
10529
+
}
10530
+
10531
+
var r0 port.SelfUpdateBlockedReason
10532
+
if returnFunc, ok := ret.Get(0).(func(context.Context) port.SelfUpdateBlockedReason); ok {
10533
+
r0 = returnFunc(ctx)
10534
+
} else {
10535
+
r0 = ret.Get(0).(port.SelfUpdateBlockedReason)
10536
+
}
10537
+
return r0
10538
+
}
10539
+
10540
+
// MockUpdateApplier_SelfUpdateBlockedReason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelfUpdateBlockedReason'
10541
+
type MockUpdateApplier_SelfUpdateBlockedReason_Call struct {
10542
+
*mock.Call
10543
+
}
10544
+
10545
+
// SelfUpdateBlockedReason is a helper method to define mock.On call
// NewMockWebUIConfigSaver creates a new instance of MockWebUIConfigSaver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
10632
+
// The first argument is typically a *testing.T value.
10633
+
func NewMockWebUIConfigSaver(t interface {
10634
+
mock.TestingT
10635
+
Cleanup(func())
10636
+
}) *MockWebUIConfigSaver {
10637
+
mock := &MockWebUIConfigSaver{}
10638
+
mock.Mock.Test(t)
10639
+
10640
+
t.Cleanup(func() { mock.AssertExpectations(t) })
10641
+
10642
+
return mock
10643
+
}
10644
+
10645
+
// MockWebUIConfigSaver is an autogenerated mock type for the WebUIConfigSaver type
// NewMockTexture creates a new instance of MockTexture. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
10716
+
// The first argument is typically a *testing.T value.
10717
+
func NewMockTexture(t interface {
10718
+
mock.TestingT
10719
+
Cleanup(func())
10720
+
}) *MockTexture {
10721
+
mock := &MockTexture{}
10722
+
mock.Mock.Test(t)
10723
+
10724
+
t.Cleanup(func() { mock.AssertExpectations(t) })
10725
+
10726
+
return mock
10727
+
}
10728
+
10729
+
// MockTexture is an autogenerated mock type for the Texture type
// NewMockFindController creates a new instance of MockFindController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
10787
+
// The first argument is typically a *testing.T value.
10788
+
func NewMockFindController(t interface {
10789
+
mock.TestingT
10790
+
Cleanup(func())
10791
+
}) *MockFindController {
10792
+
mock := &MockFindController{}
10793
+
mock.Mock.Test(t)
10794
+
10795
+
t.Cleanup(func() { mock.AssertExpectations(t) })
10796
+
10797
+
return mock
10798
+
}
10799
+
10800
+
// MockFindController is an autogenerated mock type for the FindController type
panic("no return value specified for OnFailedToFindText")
11006
+
}
11007
+
11008
+
var r0 uint
11009
+
if returnFunc, ok := ret.Get(0).(func(func()) uint); ok {
11010
+
r0 = returnFunc(callback)
11011
+
} else {
11012
+
r0 = ret.Get(0).(uint)
11013
+
}
11014
+
return r0
11015
+
}
11016
+
11017
+
// MockFindController_OnFailedToFindText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFailedToFindText'
11018
+
type MockFindController_OnFailedToFindText_Call struct {
11019
+
*mock.Call
11020
+
}
11021
+
11022
+
// OnFailedToFindText is a helper method to define mock.On call
// NewMockWebView creates a new instance of MockWebView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
11254
+
// The first argument is typically a *testing.T value.
11255
+
func NewMockWebView(t interface {
11256
+
mock.TestingT
11257
+
Cleanup(func())
11258
+
}) *MockWebView {
11259
+
mock := &MockWebView{}
11260
+
mock.Mock.Test(t)
11261
+
11262
+
t.Cleanup(func() { mock.AssertExpectations(t) })
11263
+
11264
+
return mock
11265
+
}
11266
+
11267
+
// MockWebView is an autogenerated mock type for the WebView type
// MockWebView_ResetBackgroundToDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetBackgroundToDefault'
12176
+
type MockWebView_ResetBackgroundToDefault_Call struct {
12177
+
*mock.Call
12178
+
}
12179
+
12180
+
// ResetBackgroundToDefault is a helper method to define mock.On call
func (_c *MockWebView_SetBackgroundColor_Call) RunAndReturn(run func(r float64, g float64, b float64, a float64)) *MockWebView_SetBackgroundColor_Call {
12302
+
_c.Run(run)
12303
+
return _c
12304
+
}
12305
+
12306
+
// SetCallbacks provides a mock function for the type MockWebView
// NewMockWebViewPool creates a new instance of MockWebViewPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12587
+
// The first argument is typically a *testing.T value.
12588
+
func NewMockWebViewPool(t interface {
12589
+
mock.TestingT
12590
+
Cleanup(func())
12591
+
}) *MockWebViewPool {
12592
+
mock := &MockWebViewPool{}
12593
+
mock.Mock.Test(t)
12594
+
12595
+
t.Cleanup(func() { mock.AssertExpectations(t) })
12596
+
12597
+
return mock
12598
+
}
12599
+
12600
+
// MockWebViewPool is an autogenerated mock type for the WebViewPool type
// NewMockWebViewFactory creates a new instance of MockWebViewFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12833
+
// The first argument is typically a *testing.T value.
12834
+
func NewMockWebViewFactory(t interface {
12835
+
mock.TestingT
12836
+
Cleanup(func())
12837
+
}) *MockWebViewFactory {
12838
+
mock := &MockWebViewFactory{}
12839
+
mock.Mock.Test(t)
12840
+
12841
+
t.Cleanup(func() { mock.AssertExpectations(t) })
12842
+
12843
+
return mock
12844
+
}
12845
+
12846
+
// MockWebViewFactory is an autogenerated mock type for the WebViewFactory type
// NewMockDevToolsOpener creates a new instance of MockDevToolsOpener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12990
+
// The first argument is typically a *testing.T value.
12991
+
func NewMockDevToolsOpener(t interface {
12992
+
mock.TestingT
12993
+
Cleanup(func())
12994
+
}) *MockDevToolsOpener {
12995
+
mock := &MockDevToolsOpener{}
12996
+
mock.Mock.Test(t)
12997
+
12998
+
t.Cleanup(func() { mock.AssertExpectations(t) })
12999
+
13000
+
return mock
13001
+
}
13002
+
13003
+
// MockDevToolsOpener is an autogenerated mock type for the DevToolsOpener type
// NewMockPrinter creates a new instance of MockPrinter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13050
+
// The first argument is typically a *testing.T value.
13051
+
func NewMockPrinter(t interface {
13052
+
mock.TestingT
13053
+
Cleanup(func())
13054
+
}) *MockPrinter {
13055
+
mock := &MockPrinter{}
13056
+
mock.Mock.Test(t)
13057
+
13058
+
t.Cleanup(func() { mock.AssertExpectations(t) })
13059
+
13060
+
return mock
13061
+
}
13062
+
13063
+
// MockPrinter is an autogenerated mock type for the Printer type
// NewMockPopupCapable creates a new instance of MockPopupCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13110
+
// The first argument is typically a *testing.T value.
13111
+
func NewMockPopupCapable(t interface {
13112
+
mock.TestingT
13113
+
Cleanup(func())
13114
+
}) *MockPopupCapable {
13115
+
mock := &MockPopupCapable{}
13116
+
mock.Mock.Test(t)
13117
+
13118
+
t.Cleanup(func() { mock.AssertExpectations(t) })
13119
+
13120
+
return mock
13121
+
}
13122
+
13123
+
// MockPopupCapable is an autogenerated mock type for the PopupCapable type
// NewMockOAuthCallbackCapable creates a new instance of MockOAuthCallbackCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13250
+
// The first argument is typically a *testing.T value.
13251
+
func NewMockOAuthCallbackCapable(t interface {
13252
+
mock.TestingT
13253
+
Cleanup(func())
13254
+
}) *MockOAuthCallbackCapable {
13255
+
mock := &MockOAuthCallbackCapable{}
13256
+
mock.Mock.Test(t)
13257
+
13258
+
t.Cleanup(func() { mock.AssertExpectations(t) })
13259
+
13260
+
return mock
13261
+
}
13262
+
13263
+
// MockOAuthCallbackCapable is an autogenerated mock type for the OAuthCallbackCapable type
// MockOAuthCallbackCapable_AddCloseCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCloseCallback'
13283
+
type MockOAuthCallbackCapable_AddCloseCallback_Call struct {
13284
+
*mock.Call
13285
+
}
13286
+
13287
+
// AddCloseCallback is a helper method to define mock.On call
// MockOAuthCallbackCapable_AddNavigationCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNavigationCallback'
13323
+
type MockOAuthCallbackCapable_AddNavigationCallback_Call struct {
13324
+
*mock.Call
13325
+
}
13326
+
13327
+
// AddNavigationCallback is a helper method to define mock.On call
// NewMockTextInputTargetProvider creates a new instance of MockTextInputTargetProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13390
+
// The first argument is typically a *testing.T value.
13391
+
func NewMockTextInputTargetProvider(t interface {
13392
+
mock.TestingT
13393
+
Cleanup(func())
13394
+
}) *MockTextInputTargetProvider {
13395
+
mock := &MockTextInputTargetProvider{}
13396
+
mock.Mock.Test(t)
13397
+
13398
+
t.Cleanup(func() { mock.AssertExpectations(t) })
13399
+
13400
+
return mock
13401
+
}
13402
+
13403
+
// MockTextInputTargetProvider is an autogenerated mock type for the TextInputTargetProvider type
13404
+
type MockTextInputTargetProvider struct {
13405
+
mock.Mock
13406
+
}
13407
+
13408
+
type MockTextInputTargetProvider_Expecter struct {
panic("no return value specified for CreateRelated")
13421
+
panic("no return value specified for TextInputTarget")
6168
13422
}
6169
13423
6170
-
var r0 port.WebView
6171
-
var r1 error
6172
-
if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) (port.WebView, error)); ok {
6173
-
return returnFunc(ctx, parentID)
6174
-
}
6175
-
if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) port.WebView); ok {
6176
-
r0 = returnFunc(ctx, parentID)
13424
+
var r0 port.TextInputTarget
13425
+
if returnFunc, ok := ret.Get(0).(func() port.TextInputTarget); ok {
13426
+
r0 = returnFunc()
6177
13427
} else {
6178
13428
if ret.Get(0) != nil {
6179
-
r0 = ret.Get(0).(port.WebView)
13429
+
r0 = ret.Get(0).(port.TextInputTarget)
6180
13430
}
6181
13431
}
6182
-
if returnFunc, ok := ret.Get(1).(func(context.Context, port.WebViewID) error); ok {
6183
-
r1 = returnFunc(ctx, parentID)
6184
-
} else {
6185
-
r1 = ret.Error(1)
6186
-
}
6187
-
return r0, r1
13432
+
return r0
6188
13433
}
6189
13434
6190
-
// MockWebViewFactory_CreateRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRelated'
6191
-
type MockWebViewFactory_CreateRelated_Call struct {
13435
+
// MockTextInputTargetProvider_TextInputTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TextInputTarget'
13436
+
type MockTextInputTargetProvider_TextInputTarget_Call struct {
6192
13437
*mock.Call
6193
13438
}
6194
13439
6195
-
// CreateRelated is a helper method to define mock.On call
// NewMockDevToolsOpener creates a new instance of MockDevToolsOpener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13462
+
// NewMockXDGPaths creates a new instance of MockXDGPaths. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6231
13463
// The first argument is typically a *testing.T value.
// NewMockPrinter creates a new instance of MockPrinter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6291
-
// The first argument is typically a *testing.T value.
6292
-
func NewMockPrinter(t interface {
6293
-
mock.TestingT
6294
-
Cleanup(func())
6295
-
}) *MockPrinter {
6296
-
mock := &MockPrinter{}
6297
-
mock.Mock.Test(t)
6298
-
6299
-
t.Cleanup(func() { mock.AssertExpectations(t) })
6300
-
6301
-
return mock
6302
-
}
6303
-
6304
-
// MockPrinter is an autogenerated mock type for the Printer type
6305
-
type MockPrinter struct {
6306
-
mock.Mock
6307
-
}
6308
-
6309
-
type MockPrinter_Expecter struct {
6310
-
mock *mock.Mock
6311
-
}
13542
+
// ConfigDir provides a mock function for the type MockXDGPaths
// NewMockPopupCapable creates a new instance of MockPopupCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6351
-
// The first argument is typically a *testing.T value.
6352
-
func NewMockPopupCapable(t interface {
6353
-
mock.TestingT
6354
-
Cleanup(func())
6355
-
}) *MockPopupCapable {
6356
-
mock := &MockPopupCapable{}
6357
-
mock.Mock.Test(t)
13595
+
// DataDir provides a mock function for the type MockXDGPaths
// NewMockOAuthCallbackCapable creates a new instance of MockOAuthCallbackCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
6491
-
// The first argument is typically a *testing.T value.
6492
-
func NewMockOAuthCallbackCapable(t interface {
6493
-
mock.TestingT
6494
-
Cleanup(func())
6495
-
}) *MockOAuthCallbackCapable {
6496
-
mock := &MockOAuthCallbackCapable{}
6497
-
mock.Mock.Test(t)
6498
-
6499
-
t.Cleanup(func() { mock.AssertExpectations(t) })
6500
-
6501
-
return mock
6502
-
}
6503
-
6504
-
// MockOAuthCallbackCapable is an autogenerated mock type for the OAuthCallbackCapable type
6505
-
type MockOAuthCallbackCapable struct {
6506
-
mock.Mock
6507
-
}
6508
-
6509
-
type MockOAuthCallbackCapable_Expecter struct {
6510
-
mock *mock.Mock
6511
-
}
13807
+
// FilterStoreDir provides a mock function for the type MockXDGPaths
if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13818
+
return returnFunc()
13819
+
}
13820
+
if returnFunc, ok := ret.Get(0).(func() string); ok {
13821
+
r0 = returnFunc()
13822
+
} else {
13823
+
r0 = ret.Get(0).(string)
13824
+
}
13825
+
if returnFunc, ok := ret.Get(1).(func() error); ok {
13826
+
r1 = returnFunc()
13827
+
} else {
13828
+
r1 = ret.Error(1)
13829
+
}
13830
+
return r0, r1
6521
13831
}
6522
13832
6523
-
// MockOAuthCallbackCapable_AddCloseCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCloseCallback'
6524
-
type MockOAuthCallbackCapable_AddCloseCallback_Call struct {
13833
+
// MockXDGPaths_FilterStoreDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterStoreDir'
13834
+
type MockXDGPaths_FilterStoreDir_Call struct {
6525
13835
*mock.Call
6526
13836
}
6527
13837
6528
-
// AddCloseCallback is a helper method to define mock.On call
if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13871
+
return returnFunc()
13872
+
}
13873
+
if returnFunc, ok := ret.Get(0).(func() string); ok {
13874
+
r0 = returnFunc()
13875
+
} else {
13876
+
r0 = ret.Get(0).(string)
13877
+
}
13878
+
if returnFunc, ok := ret.Get(1).(func() error); ok {
13879
+
r1 = returnFunc()
13880
+
} else {
13881
+
r1 = ret.Error(1)
13882
+
}
13883
+
return r0, r1
6561
13884
}
6562
13885
6563
-
// MockOAuthCallbackCapable_AddNavigationCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNavigationCallback'
6564
-
type MockOAuthCallbackCapable_AddNavigationCallback_Call struct {
13886
+
// MockXDGPaths_ManDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManDir'
13887
+
type MockXDGPaths_ManDir_Call struct {
6565
13888
*mock.Call
6566
13889
}
6567
13890
6568
-
// AddNavigationCallback is a helper method to define mock.On call