detached 115d8d0

chore(M4): regenerate mocks and add engine seam tests

Add all missing port interfaces to .mockery.yaml (AccentKeyHandler,
AutoCopyConfig, Clipboard, DesktopIntegration, DownloadEventHandler,
DownloadPreparer, FaviconService, FileSystem, FilterManager, Focusable,
FindController, GTKEntryInputTarget, HomepageFavorites, HomepageHistory,
AllKeybindingsResetter, KeybindingResetter, KeybindingSetter,
KeybindingsGetter, MediaDiagnostics, NativeWidgetProvider, Notification,
RenderingEnvManager, RuntimeVersionProbe, ScriptRefresher, SnapshotService,
TextInputTargetProvider, Texture, ToolkitAvailabilityNotifier, UpdateApplier,
UpdateChecker, UpdateDownloader, WebUIConfigSaver, XDGPaths) and regenerate
mocks. Add nil-safety/wrong-type tests for engine seam in webkit and bootstrap
packages. Fix pre-existing download_handler_test.go field name mismatch.
commit
115d8d080bb356cb7024f3baec809dfa6ae3b3e0
author
brice · · 2026-03-17 10:32 UTC
parent
10854a9
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
5 files · +9986 -2539
M .mockery.yaml +33 -0
@@ -44,6 +44,39 @@ packages:
4444 OAuthCallbackCapable: {}
4545 DevToolsOpener: {}
4646 Printer: {}
47+ AccentKeyHandler: {}
48+ AutoCopyConfig: {}
49+ Clipboard: {}
50+ DesktopIntegration: {}
51+ DownloadEventHandler: {}
52+ DownloadPreparer: {}
53+ FaviconService: {}
54+ FileSystem: {}
55+ FilterManager: {}
56+ Focusable: {}
57+ FindController: {}
58+ GTKEntryInputTarget: {}
59+ HomepageFavorites: {}
60+ HomepageHistory: {}
61+ AllKeybindingsResetter: {}
62+ KeybindingResetter: {}
63+ KeybindingSetter: {}
64+ KeybindingsGetter: {}
65+ MediaDiagnostics: {}
66+ NativeWidgetProvider: {}
67+ Notification: {}
68+ RenderingEnvManager: {}
69+ RuntimeVersionProbe: {}
70+ ScriptRefresher: {}
71+ SnapshotService: {}
72+ TextInputTargetProvider: {}
73+ Texture: {}
74+ ToolkitAvailabilityNotifier: {}
75+ UpdateApplier: {}
76+ UpdateChecker: {}
77+ UpdateDownloader: {}
78+ WebUIConfigSaver: {}
79+ XDGPaths: {}
4780 github.com/bnema/dumber/internal/domain/repository:
4881 config:
4982 dir: '{{.InterfaceDir}}/mocks'
M internal/application/port/mocks/mocks.go +9874 -2538
@@ -7,6 +7,7 @@ package mocks
77 import (
88 "context"
99 "database/sql"
10+ "time"
1011
1112 "github.com/bnema/dumber/internal/application/port"
1213 "github.com/bnema/dumber/internal/domain/entity"
@@ -170,6 +171,261 @@ func (_c *MockAccentPickerUI_Show_Call) RunAndReturn(run func(accents []rune, se
170171 return _c
171172 }
172173
174+// 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
189+type MockClipboard struct {
190+ mock.Mock
191+}
192+
193+type MockClipboard_Expecter struct {
194+ mock *mock.Mock
195+}
196+
197+func (_m *MockClipboard) EXPECT() *MockClipboard_Expecter {
198+ return &MockClipboard_Expecter{mock: &_m.Mock}
199+}
200+
201+// Clear provides a mock function for the type MockClipboard
202+func (_mock *MockClipboard) Clear(ctx context.Context) error {
203+ ret := _mock.Called(ctx)
204+
205+ if len(ret) == 0 {
206+ panic("no return value specified for Clear")
207+ }
208+
209+ var r0 error
210+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
211+ r0 = returnFunc(ctx)
212+ } else {
213+ r0 = ret.Error(0)
214+ }
215+ return r0
216+}
217+
218+// MockClipboard_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
219+type MockClipboard_Clear_Call struct {
220+ *mock.Call
221+}
222+
223+// Clear is a helper method to define mock.On call
224+// - ctx context.Context
225+func (_e *MockClipboard_Expecter) Clear(ctx interface{}) *MockClipboard_Clear_Call {
226+ return &MockClipboard_Clear_Call{Call: _e.mock.On("Clear", ctx)}
227+}
228+
229+func (_c *MockClipboard_Clear_Call) Run(run func(ctx context.Context)) *MockClipboard_Clear_Call {
230+ _c.Call.Run(func(args mock.Arguments) {
231+ var arg0 context.Context
232+ if args[0] != nil {
233+ arg0 = args[0].(context.Context)
234+ }
235+ run(
236+ arg0,
237+ )
238+ })
239+ return _c
240+}
241+
242+func (_c *MockClipboard_Clear_Call) Return(err error) *MockClipboard_Clear_Call {
243+ _c.Call.Return(err)
244+ return _c
245+}
246+
247+func (_c *MockClipboard_Clear_Call) RunAndReturn(run func(ctx context.Context) error) *MockClipboard_Clear_Call {
248+ _c.Call.Return(run)
249+ return _c
250+}
251+
252+// HasText provides a mock function for the type MockClipboard
253+func (_mock *MockClipboard) HasText(ctx context.Context) (bool, error) {
254+ ret := _mock.Called(ctx)
255+
256+ if len(ret) == 0 {
257+ panic("no return value specified for HasText")
258+ }
259+
260+ var r0 bool
261+ var r1 error
262+ if returnFunc, ok := ret.Get(0).(func(context.Context) (bool, error)); ok {
263+ return returnFunc(ctx)
264+ }
265+ if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
266+ r0 = returnFunc(ctx)
267+ } else {
268+ r0 = ret.Get(0).(bool)
269+ }
270+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
271+ r1 = returnFunc(ctx)
272+ } else {
273+ r1 = ret.Error(1)
274+ }
275+ return r0, r1
276+}
277+
278+// MockClipboard_HasText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasText'
279+type MockClipboard_HasText_Call struct {
280+ *mock.Call
281+}
282+
283+// HasText is a helper method to define mock.On call
284+// - ctx context.Context
285+func (_e *MockClipboard_Expecter) HasText(ctx interface{}) *MockClipboard_HasText_Call {
286+ return &MockClipboard_HasText_Call{Call: _e.mock.On("HasText", ctx)}
287+}
288+
289+func (_c *MockClipboard_HasText_Call) Run(run func(ctx context.Context)) *MockClipboard_HasText_Call {
290+ _c.Call.Run(func(args mock.Arguments) {
291+ var arg0 context.Context
292+ if args[0] != nil {
293+ arg0 = args[0].(context.Context)
294+ }
295+ run(
296+ arg0,
297+ )
298+ })
299+ return _c
300+}
301+
302+func (_c *MockClipboard_HasText_Call) Return(b bool, err error) *MockClipboard_HasText_Call {
303+ _c.Call.Return(b, err)
304+ return _c
305+}
306+
307+func (_c *MockClipboard_HasText_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *MockClipboard_HasText_Call {
308+ _c.Call.Return(run)
309+ return _c
310+}
311+
312+// ReadText provides a mock function for the type MockClipboard
313+func (_mock *MockClipboard) ReadText(ctx context.Context) (string, error) {
314+ ret := _mock.Called(ctx)
315+
316+ if len(ret) == 0 {
317+ panic("no return value specified for ReadText")
318+ }
319+
320+ var r0 string
321+ var r1 error
322+ if returnFunc, ok := ret.Get(0).(func(context.Context) (string, error)); ok {
323+ return returnFunc(ctx)
324+ }
325+ if returnFunc, ok := ret.Get(0).(func(context.Context) string); ok {
326+ r0 = returnFunc(ctx)
327+ } else {
328+ r0 = ret.Get(0).(string)
329+ }
330+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
331+ r1 = returnFunc(ctx)
332+ } else {
333+ r1 = ret.Error(1)
334+ }
335+ return r0, r1
336+}
337+
338+// MockClipboard_ReadText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadText'
339+type MockClipboard_ReadText_Call struct {
340+ *mock.Call
341+}
342+
343+// ReadText is a helper method to define mock.On call
344+// - ctx context.Context
345+func (_e *MockClipboard_Expecter) ReadText(ctx interface{}) *MockClipboard_ReadText_Call {
346+ return &MockClipboard_ReadText_Call{Call: _e.mock.On("ReadText", ctx)}
347+}
348+
349+func (_c *MockClipboard_ReadText_Call) Run(run func(ctx context.Context)) *MockClipboard_ReadText_Call {
350+ _c.Call.Run(func(args mock.Arguments) {
351+ var arg0 context.Context
352+ if args[0] != nil {
353+ arg0 = args[0].(context.Context)
354+ }
355+ run(
356+ arg0,
357+ )
358+ })
359+ return _c
360+}
361+
362+func (_c *MockClipboard_ReadText_Call) Return(s string, err error) *MockClipboard_ReadText_Call {
363+ _c.Call.Return(s, err)
364+ return _c
365+}
366+
367+func (_c *MockClipboard_ReadText_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockClipboard_ReadText_Call {
368+ _c.Call.Return(run)
369+ return _c
370+}
371+
372+// WriteText provides a mock function for the type MockClipboard
373+func (_mock *MockClipboard) WriteText(ctx context.Context, text string) error {
374+ ret := _mock.Called(ctx, text)
375+
376+ if len(ret) == 0 {
377+ panic("no return value specified for WriteText")
378+ }
379+
380+ var r0 error
381+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
382+ r0 = returnFunc(ctx, text)
383+ } else {
384+ r0 = ret.Error(0)
385+ }
386+ return r0
387+}
388+
389+// MockClipboard_WriteText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteText'
390+type MockClipboard_WriteText_Call struct {
391+ *mock.Call
392+}
393+
394+// WriteText is a helper method to define mock.On call
395+// - ctx context.Context
396+// - text string
397+func (_e *MockClipboard_Expecter) WriteText(ctx interface{}, text interface{}) *MockClipboard_WriteText_Call {
398+ return &MockClipboard_WriteText_Call{Call: _e.mock.On("WriteText", ctx, text)}
399+}
400+
401+func (_c *MockClipboard_WriteText_Call) Run(run func(ctx context.Context, text string)) *MockClipboard_WriteText_Call {
402+ _c.Call.Run(func(args mock.Arguments) {
403+ var arg0 context.Context
404+ if args[0] != nil {
405+ arg0 = args[0].(context.Context)
406+ }
407+ var arg1 string
408+ if args[1] != nil {
409+ arg1 = args[1].(string)
410+ }
411+ run(
412+ arg0,
413+ arg1,
414+ )
415+ })
416+ return _c
417+}
418+
419+func (_c *MockClipboard_WriteText_Call) Return(err error) *MockClipboard_WriteText_Call {
420+ _c.Call.Return(err)
421+ return _c
422+}
423+
424+func (_c *MockClipboard_WriteText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockClipboard_WriteText_Call {
425+ _c.Call.Return(run)
426+ return _c
427+}
428+
173429 // 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.
174430 // The first argument is typically a *testing.T value.
175431 func NewMockColorSchemeDetector(t interface {
@@ -382,6 +638,66 @@ func (_c *MockColorSchemeDetector_Priority_Call) RunAndReturn(run func() int) *M
382638 return _c
383639 }
384640
641+// 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.
643+func NewMockToolkitAvailabilityNotifier(t interface {
644+ mock.TestingT
645+ Cleanup(func())
646+}) *MockToolkitAvailabilityNotifier {
647+ mock := &MockToolkitAvailabilityNotifier{}
648+ mock.Mock.Test(t)
649+
650+ t.Cleanup(func() { mock.AssertExpectations(t) })
651+
652+ return mock
653+}
654+
655+// MockToolkitAvailabilityNotifier is an autogenerated mock type for the ToolkitAvailabilityNotifier type
656+type MockToolkitAvailabilityNotifier struct {
657+ mock.Mock
658+}
659+
660+type MockToolkitAvailabilityNotifier_Expecter struct {
661+ mock *mock.Mock
662+}
663+
664+func (_m *MockToolkitAvailabilityNotifier) EXPECT() *MockToolkitAvailabilityNotifier_Expecter {
665+ return &MockToolkitAvailabilityNotifier_Expecter{mock: &_m.Mock}
666+}
667+
668+// MarkAvailable provides a mock function for the type MockToolkitAvailabilityNotifier
669+func (_mock *MockToolkitAvailabilityNotifier) MarkAvailable() {
670+ _mock.Called()
671+ return
672+}
673+
674+// 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
680+func (_e *MockToolkitAvailabilityNotifier_Expecter) MarkAvailable() *MockToolkitAvailabilityNotifier_MarkAvailable_Call {
681+ return &MockToolkitAvailabilityNotifier_MarkAvailable_Call{Call: _e.mock.On("MarkAvailable")}
682+}
683+
684+func (_c *MockToolkitAvailabilityNotifier_MarkAvailable_Call) Run(run func()) *MockToolkitAvailabilityNotifier_MarkAvailable_Call {
685+ _c.Call.Run(func(args mock.Arguments) {
686+ run()
687+ })
688+ return _c
689+}
690+
691+func (_c *MockToolkitAvailabilityNotifier_MarkAvailable_Call) Return() *MockToolkitAvailabilityNotifier_MarkAvailable_Call {
692+ _c.Call.Return()
693+ return _c
694+}
695+
696+func (_c *MockToolkitAvailabilityNotifier_MarkAvailable_Call) RunAndReturn(run func()) *MockToolkitAvailabilityNotifier_MarkAvailable_Call {
697+ _c.Run(run)
698+ return _c
699+}
700+
385701 // 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.
386702 // The first argument is typically a *testing.T value.
387703 func NewMockColorSchemeResolver(t interface {
@@ -1131,12 +1447,12 @@ func (_m *MockContentInjector) EXPECT() *MockContentInjector_Expecter {
11311447 return &MockContentInjector_Expecter{mock: &_m.Mock}
11321448 }
11331449
1134-// InjectThemeCSS provides a mock function for the type MockContentInjector
1135-func (_mock *MockContentInjector) InjectThemeCSS(ctx context.Context, css string) error {
1450+// InjectFindHighlightCSS provides a mock function for the type MockContentInjector
1451+func (_mock *MockContentInjector) InjectFindHighlightCSS(ctx context.Context, css string) error {
11361452 ret := _mock.Called(ctx, css)
11371453
11381454 if len(ret) == 0 {
1139- panic("no return value specified for InjectThemeCSS")
1455+ panic("no return value specified for InjectFindHighlightCSS")
11401456 }
11411457
11421458 var r0 error
@@ -1148,19 +1464,19 @@ func (_mock *MockContentInjector) InjectThemeCSS(ctx context.Context, css string
11481464 return r0
11491465 }
11501466
1151-// 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 {
11531469 *mock.Call
11541470 }
11551471
1156-// InjectThemeCSS is a helper method to define mock.On call
1472+// InjectFindHighlightCSS is a helper method to define mock.On call
11571473 // - ctx context.Context
11581474 // - css string
1159-func (_e *MockContentInjector_Expecter) InjectThemeCSS(ctx interface{}, css interface{}) *MockContentInjector_InjectThemeCSS_Call {
1160- return &MockContentInjector_InjectThemeCSS_Call{Call: _e.mock.On("InjectThemeCSS", ctx, css)}
1475+func (_e *MockContentInjector_Expecter) InjectFindHighlightCSS(ctx interface{}, css interface{}) *MockContentInjector_InjectFindHighlightCSS_Call {
1476+ return &MockContentInjector_InjectFindHighlightCSS_Call{Call: _e.mock.On("InjectFindHighlightCSS", ctx, css)}
11611477 }
11621478
1163-func (_c *MockContentInjector_InjectThemeCSS_Call) Run(run func(ctx context.Context, css string)) *MockContentInjector_InjectThemeCSS_Call {
1479+func (_c *MockContentInjector_InjectFindHighlightCSS_Call) Run(run func(ctx context.Context, css string)) *MockContentInjector_InjectFindHighlightCSS_Call {
11641480 _c.Call.Run(func(args mock.Arguments) {
11651481 var arg0 context.Context
11661482 if args[0] != nil {
@@ -1178,19 +1494,76 @@ func (_c *MockContentInjector_InjectThemeCSS_Call) Run(run func(ctx context.Cont
11781494 return _c
11791495 }
11801496
1181-func (_c *MockContentInjector_InjectThemeCSS_Call) Return(err error) *MockContentInjector_InjectThemeCSS_Call {
1497+func (_c *MockContentInjector_InjectFindHighlightCSS_Call) Return(err error) *MockContentInjector_InjectFindHighlightCSS_Call {
11821498 _c.Call.Return(err)
11831499 return _c
11841500 }
11851501
1186-func (_c *MockContentInjector_InjectThemeCSS_Call) RunAndReturn(run func(ctx context.Context, css string) error) *MockContentInjector_InjectThemeCSS_Call {
1502+func (_c *MockContentInjector_InjectFindHighlightCSS_Call) RunAndReturn(run func(ctx context.Context, css string) error) *MockContentInjector_InjectFindHighlightCSS_Call {
11871503 _c.Call.Return(run)
11881504 return _c
11891505 }
11901506
1191-// RefreshScripts provides a mock function for the type MockContentInjector
1192-func (_mock *MockContentInjector) RefreshScripts(ctx context.Context, wv port.WebView) error {
1193- ret := _mock.Called(ctx, wv)
1507+// InjectThemeCSS provides a mock function for the type MockContentInjector
1508+func (_mock *MockContentInjector) InjectThemeCSS(ctx context.Context, css string) error {
1509+ ret := _mock.Called(ctx, css)
1510+
1511+ if len(ret) == 0 {
1512+ panic("no return value specified for InjectThemeCSS")
1513+ }
1514+
1515+ var r0 error
1516+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
1517+ r0 = returnFunc(ctx, css)
1518+ } else {
1519+ r0 = ret.Error(0)
1520+ }
1521+ return r0
1522+}
1523+
1524+// MockContentInjector_InjectThemeCSS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InjectThemeCSS'
1525+type MockContentInjector_InjectThemeCSS_Call struct {
1526+ *mock.Call
1527+}
1528+
1529+// InjectThemeCSS is a helper method to define mock.On call
1530+// - ctx context.Context
1531+// - css string
1532+func (_e *MockContentInjector_Expecter) InjectThemeCSS(ctx interface{}, css interface{}) *MockContentInjector_InjectThemeCSS_Call {
1533+ return &MockContentInjector_InjectThemeCSS_Call{Call: _e.mock.On("InjectThemeCSS", ctx, css)}
1534+}
1535+
1536+func (_c *MockContentInjector_InjectThemeCSS_Call) Run(run func(ctx context.Context, css string)) *MockContentInjector_InjectThemeCSS_Call {
1537+ _c.Call.Run(func(args mock.Arguments) {
1538+ var arg0 context.Context
1539+ if args[0] != nil {
1540+ arg0 = args[0].(context.Context)
1541+ }
1542+ var arg1 string
1543+ if args[1] != nil {
1544+ arg1 = args[1].(string)
1545+ }
1546+ run(
1547+ arg0,
1548+ arg1,
1549+ )
1550+ })
1551+ return _c
1552+}
1553+
1554+func (_c *MockContentInjector_InjectThemeCSS_Call) Return(err error) *MockContentInjector_InjectThemeCSS_Call {
1555+ _c.Call.Return(err)
1556+ return _c
1557+}
1558+
1559+func (_c *MockContentInjector_InjectThemeCSS_Call) RunAndReturn(run func(ctx context.Context, css string) error) *MockContentInjector_InjectThemeCSS_Call {
1560+ _c.Call.Return(run)
1561+ return _c
1562+}
1563+
1564+// RefreshScripts provides a mock function for the type MockContentInjector
1565+func (_mock *MockContentInjector) RefreshScripts(ctx context.Context, wv port.WebView) error {
1566+ ret := _mock.Called(ctx, wv)
11941567
11951568 if len(ret) == 0 {
11961569 panic("no return value specified for RefreshScripts")
@@ -1235,8 +1608,8 @@ func (_c *MockContentInjector_RefreshScripts_Call) Run(run func(ctx context.Cont
12351608 return _c
12361609 }
12371610
1238-func (_c *MockContentInjector_RefreshScripts_Call) Return(_a0 error) *MockContentInjector_RefreshScripts_Call {
1239- _c.Call.Return(_a0)
1611+func (_c *MockContentInjector_RefreshScripts_Call) Return(err error) *MockContentInjector_RefreshScripts_Call {
1612+ _c.Call.Return(err)
12401613 return _c
12411614 }
12421615
@@ -1422,13 +1795,13 @@ func (_c *MockDatabaseProvider_IsInitialized_Call) RunAndReturn(run func() bool)
14221795 return _c
14231796 }
14241797
1425-// 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.
14261799 // The first argument is typically a *testing.T value.
1427-func NewMockDownloadResponse(t interface {
1800+func NewMockDesktopIntegration(t interface {
14281801 mock.TestingT
14291802 Cleanup(func())
1430-}) *MockDownloadResponse {
1431- mock := &MockDownloadResponse{}
1803+}) *MockDesktopIntegration {
1804+ mock := &MockDesktopIntegration{}
14321805 mock.Mock.Test(t)
14331806
14341807 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -1436,310 +1809,418 @@ func NewMockDownloadResponse(t interface {
14361809 return mock
14371810 }
14381811
1439-// MockDownloadResponse is an autogenerated mock type for the DownloadResponse type
1440-type MockDownloadResponse struct {
1812+// MockDesktopIntegration is an autogenerated mock type for the DesktopIntegration type
1813+type MockDesktopIntegration struct {
14411814 mock.Mock
14421815 }
14431816
1444-type MockDownloadResponse_Expecter struct {
1817+type MockDesktopIntegration_Expecter struct {
14451818 mock *mock.Mock
14461819 }
14471820
1448-func (_m *MockDownloadResponse) EXPECT() *MockDownloadResponse_Expecter {
1449- return &MockDownloadResponse_Expecter{mock: &_m.Mock}
1821+func (_m *MockDesktopIntegration) EXPECT() *MockDesktopIntegration_Expecter {
1822+ return &MockDesktopIntegration_Expecter{mock: &_m.Mock}
14501823 }
14511824
1452-// GetMimeType provides a mock function for the type MockDownloadResponse
1453-func (_mock *MockDownloadResponse) GetMimeType() string {
1454- ret := _mock.Called()
1825+// GetStatus provides a mock function for the type MockDesktopIntegration
1826+func (_mock *MockDesktopIntegration) GetStatus(ctx context.Context) (*port.DesktopIntegrationStatus, error) {
1827+ ret := _mock.Called(ctx)
14551828
14561829 if len(ret) == 0 {
1457- panic("no return value specified for GetMimeType")
1830+ panic("no return value specified for GetStatus")
14581831 }
14591832
1460- var r0 string
1461- if returnFunc, ok := ret.Get(0).(func() string); ok {
1462- r0 = returnFunc()
1833+ var r0 *port.DesktopIntegrationStatus
1834+ var r1 error
1835+ if returnFunc, ok := ret.Get(0).(func(context.Context) (*port.DesktopIntegrationStatus, error)); ok {
1836+ return returnFunc(ctx)
1837+ }
1838+ if returnFunc, ok := ret.Get(0).(func(context.Context) *port.DesktopIntegrationStatus); ok {
1839+ r0 = returnFunc(ctx)
14631840 } else {
1464- r0 = ret.Get(0).(string)
1841+ if ret.Get(0) != nil {
1842+ r0 = ret.Get(0).(*port.DesktopIntegrationStatus)
1843+ }
14651844 }
1466- return r0
1845+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
1846+ r1 = returnFunc(ctx)
1847+ } else {
1848+ r1 = ret.Error(1)
1849+ }
1850+ return r0, r1
14671851 }
14681852
1469-// MockDownloadResponse_GetMimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMimeType'
1470-type MockDownloadResponse_GetMimeType_Call struct {
1853+// MockDesktopIntegration_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'
1854+type MockDesktopIntegration_GetStatus_Call struct {
14711855 *mock.Call
14721856 }
14731857
1474-// GetMimeType is a helper method to define mock.On call
1475-func (_e *MockDownloadResponse_Expecter) GetMimeType() *MockDownloadResponse_GetMimeType_Call {
1476- return &MockDownloadResponse_GetMimeType_Call{Call: _e.mock.On("GetMimeType")}
1858+// GetStatus is a helper method to define mock.On call
1859+// - ctx context.Context
1860+func (_e *MockDesktopIntegration_Expecter) GetStatus(ctx interface{}) *MockDesktopIntegration_GetStatus_Call {
1861+ return &MockDesktopIntegration_GetStatus_Call{Call: _e.mock.On("GetStatus", ctx)}
14771862 }
14781863
1479-func (_c *MockDownloadResponse_GetMimeType_Call) Run(run func()) *MockDownloadResponse_GetMimeType_Call {
1864+func (_c *MockDesktopIntegration_GetStatus_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_GetStatus_Call {
14801865 _c.Call.Run(func(args mock.Arguments) {
1481- run()
1866+ var arg0 context.Context
1867+ if args[0] != nil {
1868+ arg0 = args[0].(context.Context)
1869+ }
1870+ run(
1871+ arg0,
1872+ )
14821873 })
14831874 return _c
14841875 }
14851876
1486-func (_c *MockDownloadResponse_GetMimeType_Call) Return(s string) *MockDownloadResponse_GetMimeType_Call {
1487- _c.Call.Return(s)
1877+func (_c *MockDesktopIntegration_GetStatus_Call) Return(desktopIntegrationStatus *port.DesktopIntegrationStatus, err error) *MockDesktopIntegration_GetStatus_Call {
1878+ _c.Call.Return(desktopIntegrationStatus, err)
14881879 return _c
14891880 }
14901881
1491-func (_c *MockDownloadResponse_GetMimeType_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetMimeType_Call {
1882+func (_c *MockDesktopIntegration_GetStatus_Call) RunAndReturn(run func(ctx context.Context) (*port.DesktopIntegrationStatus, error)) *MockDesktopIntegration_GetStatus_Call {
14921883 _c.Call.Return(run)
14931884 return _c
14941885 }
14951886
1496-// GetSuggestedFilename provides a mock function for the type MockDownloadResponse
1497-func (_mock *MockDownloadResponse) GetSuggestedFilename() string {
1498- ret := _mock.Called()
1887+// InstallDesktopFile provides a mock function for the type MockDesktopIntegration
1888+func (_mock *MockDesktopIntegration) InstallDesktopFile(ctx context.Context) (string, error) {
1889+ ret := _mock.Called(ctx)
14991890
15001891 if len(ret) == 0 {
1501- panic("no return value specified for GetSuggestedFilename")
1892+ panic("no return value specified for InstallDesktopFile")
15021893 }
15031894
15041895 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)
15071902 } else {
15081903 r0 = ret.Get(0).(string)
15091904 }
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
15111911 }
15121912
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 {
15151915 *mock.Call
15161916 }
15171917
1518-// GetSuggestedFilename is a helper method to define mock.On call
1519-func (_e *MockDownloadResponse_Expecter) GetSuggestedFilename() *MockDownloadResponse_GetSuggestedFilename_Call {
1520- return &MockDownloadResponse_GetSuggestedFilename_Call{Call: _e.mock.On("GetSuggestedFilename")}
1918+// InstallDesktopFile is a helper method to define mock.On call
1919+// - ctx context.Context
1920+func (_e *MockDesktopIntegration_Expecter) InstallDesktopFile(ctx interface{}) *MockDesktopIntegration_InstallDesktopFile_Call {
1921+ return &MockDesktopIntegration_InstallDesktopFile_Call{Call: _e.mock.On("InstallDesktopFile", ctx)}
15211922 }
15221923
1523-func (_c *MockDownloadResponse_GetSuggestedFilename_Call) Run(run func()) *MockDownloadResponse_GetSuggestedFilename_Call {
1924+func (_c *MockDesktopIntegration_InstallDesktopFile_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_InstallDesktopFile_Call {
15241925 _c.Call.Run(func(args mock.Arguments) {
1525- run()
1926+ var arg0 context.Context
1927+ if args[0] != nil {
1928+ arg0 = args[0].(context.Context)
1929+ }
1930+ run(
1931+ arg0,
1932+ )
15261933 })
15271934 return _c
15281935 }
15291936
1530-func (_c *MockDownloadResponse_GetSuggestedFilename_Call) Return(s string) *MockDownloadResponse_GetSuggestedFilename_Call {
1531- _c.Call.Return(s)
1937+func (_c *MockDesktopIntegration_InstallDesktopFile_Call) Return(s string, err error) *MockDesktopIntegration_InstallDesktopFile_Call {
1938+ _c.Call.Return(s, err)
15321939 return _c
15331940 }
15341941
1535-func (_c *MockDownloadResponse_GetSuggestedFilename_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetSuggestedFilename_Call {
1942+func (_c *MockDesktopIntegration_InstallDesktopFile_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockDesktopIntegration_InstallDesktopFile_Call {
15361943 _c.Call.Return(run)
15371944 return _c
15381945 }
15391946
1540-// GetUri provides a mock function for the type MockDownloadResponse
1541-func (_mock *MockDownloadResponse) GetUri() string {
1542- ret := _mock.Called()
1947+// InstallIcon provides a mock function for the type MockDesktopIntegration
1948+func (_mock *MockDesktopIntegration) InstallIcon(ctx context.Context, svgData []byte) (string, error) {
1949+ ret := _mock.Called(ctx, svgData)
15431950
15441951 if len(ret) == 0 {
1545- panic("no return value specified for GetUri")
1952+ panic("no return value specified for InstallIcon")
15461953 }
15471954
15481955 var r0 string
1549- if returnFunc, ok := ret.Get(0).(func() string); ok {
1550- r0 = returnFunc()
1956+ var r1 error
1957+ if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) (string, error)); ok {
1958+ return returnFunc(ctx, svgData)
1959+ }
1960+ if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) string); ok {
1961+ r0 = returnFunc(ctx, svgData)
15511962 } else {
15521963 r0 = ret.Get(0).(string)
15531964 }
1554- return r0
1965+ if returnFunc, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
1966+ r1 = returnFunc(ctx, svgData)
1967+ } else {
1968+ r1 = ret.Error(1)
1969+ }
1970+ return r0, r1
15551971 }
15561972
1557-// MockDownloadResponse_GetUri_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUri'
1558-type MockDownloadResponse_GetUri_Call struct {
1973+// MockDesktopIntegration_InstallIcon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallIcon'
1974+type MockDesktopIntegration_InstallIcon_Call struct {
15591975 *mock.Call
15601976 }
15611977
1562-// GetUri is a helper method to define mock.On call
1563-func (_e *MockDownloadResponse_Expecter) GetUri() *MockDownloadResponse_GetUri_Call {
1564- return &MockDownloadResponse_GetUri_Call{Call: _e.mock.On("GetUri")}
1978+// InstallIcon is a helper method to define mock.On call
1979+// - ctx context.Context
1980+// - svgData []byte
1981+func (_e *MockDesktopIntegration_Expecter) InstallIcon(ctx interface{}, svgData interface{}) *MockDesktopIntegration_InstallIcon_Call {
1982+ return &MockDesktopIntegration_InstallIcon_Call{Call: _e.mock.On("InstallIcon", ctx, svgData)}
15651983 }
15661984
1567-func (_c *MockDownloadResponse_GetUri_Call) Run(run func()) *MockDownloadResponse_GetUri_Call {
1985+func (_c *MockDesktopIntegration_InstallIcon_Call) Run(run func(ctx context.Context, svgData []byte)) *MockDesktopIntegration_InstallIcon_Call {
15681986 _c.Call.Run(func(args mock.Arguments) {
1569- run()
1987+ var arg0 context.Context
1988+ if args[0] != nil {
1989+ arg0 = args[0].(context.Context)
1990+ }
1991+ var arg1 []byte
1992+ if args[1] != nil {
1993+ arg1 = args[1].([]byte)
1994+ }
1995+ run(
1996+ arg0,
1997+ arg1,
1998+ )
15701999 })
15712000 return _c
15722001 }
15732002
1574-func (_c *MockDownloadResponse_GetUri_Call) Return(s string) *MockDownloadResponse_GetUri_Call {
1575- _c.Call.Return(s)
2003+func (_c *MockDesktopIntegration_InstallIcon_Call) Return(s string, err error) *MockDesktopIntegration_InstallIcon_Call {
2004+ _c.Call.Return(s, err)
15762005 return _c
15772006 }
15782007
1579-func (_c *MockDownloadResponse_GetUri_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetUri_Call {
2008+func (_c *MockDesktopIntegration_InstallIcon_Call) RunAndReturn(run func(ctx context.Context, svgData []byte) (string, error)) *MockDesktopIntegration_InstallIcon_Call {
15802009 _c.Call.Return(run)
15812010 return _c
15822011 }
15832012
1584-// 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
2014+func (_mock *MockDesktopIntegration) RemoveDesktopFile(ctx context.Context) error {
2015+ ret := _mock.Called(ctx)
15922016
1593- t.Cleanup(func() { mock.AssertExpectations(t) })
2017+ if len(ret) == 0 {
2018+ panic("no return value specified for RemoveDesktopFile")
2019+ }
15942020
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
15962028 }
15972029
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
16012033 }
16022034
1603-type MockMemoryPressureApplier_Expecter struct {
1604- mock *mock.Mock
2035+// RemoveDesktopFile is a helper method to define mock.On call
2036+// - ctx context.Context
2037+func (_e *MockDesktopIntegration_Expecter) RemoveDesktopFile(ctx interface{}) *MockDesktopIntegration_RemoveDesktopFile_Call {
2038+ return &MockDesktopIntegration_RemoveDesktopFile_Call{Call: _e.mock.On("RemoveDesktopFile", ctx)}
16052039 }
16062040
1607-func (_m *MockMemoryPressureApplier) EXPECT() *MockMemoryPressureApplier_Expecter {
1608- return &MockMemoryPressureApplier_Expecter{mock: &_m.Mock}
2041+func (_c *MockDesktopIntegration_RemoveDesktopFile_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_RemoveDesktopFile_Call {
2042+ _c.Call.Run(func(args mock.Arguments) {
2043+ var arg0 context.Context
2044+ if args[0] != nil {
2045+ arg0 = args[0].(context.Context)
2046+ }
2047+ run(
2048+ arg0,
2049+ )
2050+ })
2051+ return _c
16092052 }
16102053
1611-// ApplyNetworkProcessSettings provides a mock function for the type MockMemoryPressureApplier
1612-func (_mock *MockMemoryPressureApplier) ApplyNetworkProcessSettings(ctx context.Context, cfg *port.MemoryPressureConfig) error {
1613- ret := _mock.Called(ctx, cfg)
2054+func (_c *MockDesktopIntegration_RemoveDesktopFile_Call) Return(err error) *MockDesktopIntegration_RemoveDesktopFile_Call {
2055+ _c.Call.Return(err)
2056+ return _c
2057+}
2058+
2059+func (_c *MockDesktopIntegration_RemoveDesktopFile_Call) RunAndReturn(run func(ctx context.Context) error) *MockDesktopIntegration_RemoveDesktopFile_Call {
2060+ _c.Call.Return(run)
2061+ return _c
2062+}
2063+
2064+// RemoveIcon provides a mock function for the type MockDesktopIntegration
2065+func (_mock *MockDesktopIntegration) RemoveIcon(ctx context.Context) error {
2066+ ret := _mock.Called(ctx)
16142067
16152068 if len(ret) == 0 {
1616- panic("no return value specified for ApplyNetworkProcessSettings")
2069+ panic("no return value specified for RemoveIcon")
16172070 }
16182071
16192072 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)
16222075 } else {
16232076 r0 = ret.Error(0)
16242077 }
16252078 return r0
16262079 }
16272080
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 {
16302083 *mock.Call
16312084 }
16322085
1633-// ApplyNetworkProcessSettings is a helper method to define mock.On call
2086+// RemoveIcon is a helper method to define mock.On call
16342087 // - ctx context.Context
1635-// - cfg *port.MemoryPressureConfig
1636-func (_e *MockMemoryPressureApplier_Expecter) ApplyNetworkProcessSettings(ctx interface{}, cfg interface{}) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
1637- return &MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call{Call: _e.mock.On("ApplyNetworkProcessSettings", ctx, cfg)}
2088+func (_e *MockDesktopIntegration_Expecter) RemoveIcon(ctx interface{}) *MockDesktopIntegration_RemoveIcon_Call {
2089+ return &MockDesktopIntegration_RemoveIcon_Call{Call: _e.mock.On("RemoveIcon", ctx)}
16382090 }
16392091
1640-func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) Run(run func(ctx context.Context, cfg *port.MemoryPressureConfig)) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
2092+func (_c *MockDesktopIntegration_RemoveIcon_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_RemoveIcon_Call {
16412093 _c.Call.Run(func(args mock.Arguments) {
16422094 var arg0 context.Context
16432095 if args[0] != nil {
16442096 arg0 = args[0].(context.Context)
16452097 }
1646- var arg1 *port.MemoryPressureConfig
1647- if args[1] != nil {
1648- arg1 = args[1].(*port.MemoryPressureConfig)
1649- }
16502098 run(
16512099 arg0,
1652- arg1,
16532100 )
16542101 })
16552102 return _c
16562103 }
16572104
1658-func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) Return(err error) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
2105+func (_c *MockDesktopIntegration_RemoveIcon_Call) Return(err error) *MockDesktopIntegration_RemoveIcon_Call {
16592106 _c.Call.Return(err)
16602107 return _c
16612108 }
16622109
1663-func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) RunAndReturn(run func(ctx context.Context, cfg *port.MemoryPressureConfig) error) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
2110+func (_c *MockDesktopIntegration_RemoveIcon_Call) RunAndReturn(run func(ctx context.Context) error) *MockDesktopIntegration_RemoveIcon_Call {
16642111 _c.Call.Return(run)
16652112 return _c
16662113 }
16672114
1668-// ApplyWebProcessSettings provides a mock function for the type MockMemoryPressureApplier
1669-func (_mock *MockMemoryPressureApplier) ApplyWebProcessSettings(ctx context.Context, cfg *port.MemoryPressureConfig) (any, error) {
1670- ret := _mock.Called(ctx, cfg)
2115+// SetAsDefaultBrowser provides a mock function for the type MockDesktopIntegration
2116+func (_mock *MockDesktopIntegration) SetAsDefaultBrowser(ctx context.Context) error {
2117+ ret := _mock.Called(ctx)
16712118
16722119 if len(ret) == 0 {
1673- panic("no return value specified for ApplyWebProcessSettings")
2120+ panic("no return value specified for SetAsDefaultBrowser")
16742121 }
16752122
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)
16832126 } 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
2138+// - ctx context.Context
2139+func (_e *MockDesktopIntegration_Expecter) SetAsDefaultBrowser(ctx interface{}) *MockDesktopIntegration_SetAsDefaultBrowser_Call {
2140+ return &MockDesktopIntegration_SetAsDefaultBrowser_Call{Call: _e.mock.On("SetAsDefaultBrowser", ctx)}
2141+}
2142+
2143+func (_c *MockDesktopIntegration_SetAsDefaultBrowser_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_SetAsDefaultBrowser_Call {
2144+ _c.Call.Run(func(args mock.Arguments) {
2145+ var arg0 context.Context
2146+ if args[0] != nil {
2147+ arg0 = args[0].(context.Context)
16862148 }
2149+ run(
2150+ arg0,
2151+ )
2152+ })
2153+ return _c
2154+}
2155+
2156+func (_c *MockDesktopIntegration_SetAsDefaultBrowser_Call) Return(err error) *MockDesktopIntegration_SetAsDefaultBrowser_Call {
2157+ _c.Call.Return(err)
2158+ return _c
2159+}
2160+
2161+func (_c *MockDesktopIntegration_SetAsDefaultBrowser_Call) RunAndReturn(run func(ctx context.Context) error) *MockDesktopIntegration_SetAsDefaultBrowser_Call {
2162+ _c.Call.Return(run)
2163+ return _c
2164+}
2165+
2166+// UnsetAsDefaultBrowser provides a mock function for the type MockDesktopIntegration
2167+func (_mock *MockDesktopIntegration) UnsetAsDefaultBrowser(ctx context.Context) error {
2168+ ret := _mock.Called(ctx)
2169+
2170+ if len(ret) == 0 {
2171+ panic("no return value specified for UnsetAsDefaultBrowser")
16872172 }
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)
16902177 } else {
1691- r1 = ret.Error(1)
2178+ r0 = ret.Error(0)
16922179 }
1693- return r0, r1
2180+ return r0
16942181 }
16952182
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 {
16982185 *mock.Call
16992186 }
17002187
1701-// ApplyWebProcessSettings is a helper method to define mock.On call
2188+// UnsetAsDefaultBrowser is a helper method to define mock.On call
17022189 // - ctx context.Context
1703-// - cfg *port.MemoryPressureConfig
1704-func (_e *MockMemoryPressureApplier_Expecter) ApplyWebProcessSettings(ctx interface{}, cfg interface{}) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
1705- return &MockMemoryPressureApplier_ApplyWebProcessSettings_Call{Call: _e.mock.On("ApplyWebProcessSettings", ctx, cfg)}
2190+func (_e *MockDesktopIntegration_Expecter) UnsetAsDefaultBrowser(ctx interface{}) *MockDesktopIntegration_UnsetAsDefaultBrowser_Call {
2191+ return &MockDesktopIntegration_UnsetAsDefaultBrowser_Call{Call: _e.mock.On("UnsetAsDefaultBrowser", ctx)}
17062192 }
17072193
1708-func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) Run(run func(ctx context.Context, cfg *port.MemoryPressureConfig)) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
2194+func (_c *MockDesktopIntegration_UnsetAsDefaultBrowser_Call) Run(run func(ctx context.Context)) *MockDesktopIntegration_UnsetAsDefaultBrowser_Call {
17092195 _c.Call.Run(func(args mock.Arguments) {
17102196 var arg0 context.Context
17112197 if args[0] != nil {
17122198 arg0 = args[0].(context.Context)
17132199 }
1714- var arg1 *port.MemoryPressureConfig
1715- if args[1] != nil {
1716- arg1 = args[1].(*port.MemoryPressureConfig)
1717- }
17182200 run(
17192201 arg0,
1720- arg1,
17212202 )
17222203 })
17232204 return _c
17242205 }
17252206
1726-func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) Return(v any, err error) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
1727- _c.Call.Return(v, err)
2207+func (_c *MockDesktopIntegration_UnsetAsDefaultBrowser_Call) Return(err error) *MockDesktopIntegration_UnsetAsDefaultBrowser_Call {
2208+ _c.Call.Return(err)
17282209 return _c
17292210 }
17302211
1731-func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) RunAndReturn(run func(ctx context.Context, cfg *port.MemoryPressureConfig) (any, error)) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
2212+func (_c *MockDesktopIntegration_UnsetAsDefaultBrowser_Call) RunAndReturn(run func(ctx context.Context) error) *MockDesktopIntegration_UnsetAsDefaultBrowser_Call {
17322213 _c.Call.Return(run)
17332214 return _c
17342215 }
17352216
1736-// 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.
17372218 // The first argument is typically a *testing.T value.
1738-func NewMockEngine(t interface {
2219+func NewMockDownloadEventHandler(t interface {
17392220 mock.TestingT
17402221 Cleanup(func())
1741-}) *MockEngine {
1742- mock := &MockEngine{}
2222+}) *MockDownloadEventHandler {
2223+ mock := &MockDownloadEventHandler{}
17432224 mock.Mock.Test(t)
17442225
17452226 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -1747,805 +2228,971 @@ func NewMockEngine(t interface {
17472228 return mock
17482229 }
17492230
1750-// MockEngine is an autogenerated mock type for the Engine type
1751-type MockEngine struct {
2231+// MockDownloadEventHandler is an autogenerated mock type for the DownloadEventHandler type
2232+type MockDownloadEventHandler struct {
17522233 mock.Mock
17532234 }
17542235
1755-type MockEngine_Expecter struct {
2236+type MockDownloadEventHandler_Expecter struct {
17562237 mock *mock.Mock
17572238 }
17582239
1759-func (_m *MockEngine) EXPECT() *MockEngine_Expecter {
1760- return &MockEngine_Expecter{mock: &_m.Mock}
2240+func (_m *MockDownloadEventHandler) EXPECT() *MockDownloadEventHandler_Expecter {
2241+ return &MockDownloadEventHandler_Expecter{mock: &_m.Mock}
17612242 }
17622243
1763-// Close provides a mock function for the type MockEngine
1764-func (_mock *MockEngine) Close() error {
1765- ret := _mock.Called()
1766-
1767- if len(ret) == 0 {
1768- panic("no return value specified for Close")
1769- }
1770-
1771- var r0 error
1772- if returnFunc, ok := ret.Get(0).(func() error); ok {
1773- r0 = returnFunc()
1774- } else {
1775- r0 = ret.Error(0)
1776- }
1777- return r0
2244+// OnDownloadEvent provides a mock function for the type MockDownloadEventHandler
2245+func (_mock *MockDownloadEventHandler) OnDownloadEvent(ctx context.Context, event port.DownloadEvent) {
2246+ _mock.Called(ctx, event)
2247+ return
17782248 }
17792249
1780-// 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 {
17822252 *mock.Call
17832253 }
17842254
1785-// Close is a helper method to define mock.On call
1786-func (_e *MockEngine_Expecter) Close() *MockEngine_Close_Call {
1787- return &MockEngine_Close_Call{Call: _e.mock.On("Close")}
2255+// OnDownloadEvent is a helper method to define mock.On call
2256+// - ctx context.Context
2257+// - event port.DownloadEvent
2258+func (_e *MockDownloadEventHandler_Expecter) OnDownloadEvent(ctx interface{}, event interface{}) *MockDownloadEventHandler_OnDownloadEvent_Call {
2259+ return &MockDownloadEventHandler_OnDownloadEvent_Call{Call: _e.mock.On("OnDownloadEvent", ctx, event)}
17882260 }
17892261
1790-func (_c *MockEngine_Close_Call) Run(run func()) *MockEngine_Close_Call {
2262+func (_c *MockDownloadEventHandler_OnDownloadEvent_Call) Run(run func(ctx context.Context, event port.DownloadEvent)) *MockDownloadEventHandler_OnDownloadEvent_Call {
17912263 _c.Call.Run(func(args mock.Arguments) {
1792- run()
2264+ var arg0 context.Context
2265+ if args[0] != nil {
2266+ arg0 = args[0].(context.Context)
2267+ }
2268+ var arg1 port.DownloadEvent
2269+ if args[1] != nil {
2270+ arg1 = args[1].(port.DownloadEvent)
2271+ }
2272+ run(
2273+ arg0,
2274+ arg1,
2275+ )
17932276 })
17942277 return _c
17952278 }
17962279
1797-func (_c *MockEngine_Close_Call) Return(err error) *MockEngine_Close_Call {
1798- _c.Call.Return(err)
2280+func (_c *MockDownloadEventHandler_OnDownloadEvent_Call) Return() *MockDownloadEventHandler_OnDownloadEvent_Call {
2281+ _c.Call.Return()
17992282 return _c
18002283 }
18012284
1802-func (_c *MockEngine_Close_Call) RunAndReturn(run func() error) *MockEngine_Close_Call {
1803- _c.Call.Return(run)
2285+func (_c *MockDownloadEventHandler_OnDownloadEvent_Call) RunAndReturn(run func(ctx context.Context, event port.DownloadEvent)) *MockDownloadEventHandler_OnDownloadEvent_Call {
2286+ _c.Run(run)
18042287 return _c
18052288 }
18062289
1807-// ContentInjector provides a mock function for the type MockEngine
1808-func (_mock *MockEngine) ContentInjector() port.ContentInjector {
2290+// 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
2305+type MockDownloadResponse struct {
2306+ mock.Mock
2307+}
2308+
2309+type MockDownloadResponse_Expecter struct {
2310+ mock *mock.Mock
2311+}
2312+
2313+func (_m *MockDownloadResponse) EXPECT() *MockDownloadResponse_Expecter {
2314+ return &MockDownloadResponse_Expecter{mock: &_m.Mock}
2315+}
2316+
2317+// GetMimeType provides a mock function for the type MockDownloadResponse
2318+func (_mock *MockDownloadResponse) GetMimeType() string {
18092319 ret := _mock.Called()
18102320
18112321 if len(ret) == 0 {
1812- panic("no return value specified for ContentInjector")
2322+ panic("no return value specified for GetMimeType")
18132323 }
18142324
1815- var r0 port.ContentInjector
1816- if returnFunc, ok := ret.Get(0).(func() port.ContentInjector); ok {
2325+ var r0 string
2326+ if returnFunc, ok := ret.Get(0).(func() string); ok {
18172327 r0 = returnFunc()
18182328 } else {
1819- if ret.Get(0) != nil {
1820- r0 = ret.Get(0).(port.ContentInjector)
1821- }
2329+ r0 = ret.Get(0).(string)
18222330 }
18232331 return r0
18242332 }
18252333
1826-// MockEngine_ContentInjector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentInjector'
1827-type MockEngine_ContentInjector_Call struct {
2334+// MockDownloadResponse_GetMimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMimeType'
2335+type MockDownloadResponse_GetMimeType_Call struct {
18282336 *mock.Call
18292337 }
18302338
1831-// ContentInjector is a helper method to define mock.On call
1832-func (_e *MockEngine_Expecter) ContentInjector() *MockEngine_ContentInjector_Call {
1833- return &MockEngine_ContentInjector_Call{Call: _e.mock.On("ContentInjector")}
2339+// GetMimeType is a helper method to define mock.On call
2340+func (_e *MockDownloadResponse_Expecter) GetMimeType() *MockDownloadResponse_GetMimeType_Call {
2341+ return &MockDownloadResponse_GetMimeType_Call{Call: _e.mock.On("GetMimeType")}
18342342 }
18352343
1836-func (_c *MockEngine_ContentInjector_Call) Run(run func()) *MockEngine_ContentInjector_Call {
2344+func (_c *MockDownloadResponse_GetMimeType_Call) Run(run func()) *MockDownloadResponse_GetMimeType_Call {
18372345 _c.Call.Run(func(args mock.Arguments) {
18382346 run()
18392347 })
18402348 return _c
18412349 }
18422350
1843-func (_c *MockEngine_ContentInjector_Call) Return(contentInjector port.ContentInjector) *MockEngine_ContentInjector_Call {
1844- _c.Call.Return(contentInjector)
2351+func (_c *MockDownloadResponse_GetMimeType_Call) Return(s string) *MockDownloadResponse_GetMimeType_Call {
2352+ _c.Call.Return(s)
18452353 return _c
18462354 }
18472355
1848-func (_c *MockEngine_ContentInjector_Call) RunAndReturn(run func() port.ContentInjector) *MockEngine_ContentInjector_Call {
2356+func (_c *MockDownloadResponse_GetMimeType_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetMimeType_Call {
18492357 _c.Call.Return(run)
18502358 return _c
18512359 }
18522360
1853-// Factory provides a mock function for the type MockEngine
1854-func (_mock *MockEngine) Factory() port.WebViewFactory {
2361+// GetSuggestedFilename provides a mock function for the type MockDownloadResponse
2362+func (_mock *MockDownloadResponse) GetSuggestedFilename() string {
18552363 ret := _mock.Called()
18562364
18572365 if len(ret) == 0 {
1858- panic("no return value specified for Factory")
2366+ panic("no return value specified for GetSuggestedFilename")
18592367 }
18602368
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 {
18632371 r0 = returnFunc()
18642372 } else {
1865- if ret.Get(0) != nil {
1866- r0 = ret.Get(0).(port.WebViewFactory)
1867- }
2373+ r0 = ret.Get(0).(string)
18682374 }
18692375 return r0
18702376 }
18712377
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 {
18742380 *mock.Call
18752381 }
18762382
1877-// Factory is a helper method to define mock.On call
1878-func (_e *MockEngine_Expecter) Factory() *MockEngine_Factory_Call {
1879- return &MockEngine_Factory_Call{Call: _e.mock.On("Factory")}
2383+// GetSuggestedFilename is a helper method to define mock.On call
2384+func (_e *MockDownloadResponse_Expecter) GetSuggestedFilename() *MockDownloadResponse_GetSuggestedFilename_Call {
2385+ return &MockDownloadResponse_GetSuggestedFilename_Call{Call: _e.mock.On("GetSuggestedFilename")}
18802386 }
18812387
1882-func (_c *MockEngine_Factory_Call) Run(run func()) *MockEngine_Factory_Call {
2388+func (_c *MockDownloadResponse_GetSuggestedFilename_Call) Run(run func()) *MockDownloadResponse_GetSuggestedFilename_Call {
18832389 _c.Call.Run(func(args mock.Arguments) {
18842390 run()
18852391 })
18862392 return _c
18872393 }
18882394
1889-func (_c *MockEngine_Factory_Call) Return(webViewFactory port.WebViewFactory) *MockEngine_Factory_Call {
1890- _c.Call.Return(webViewFactory)
2395+func (_c *MockDownloadResponse_GetSuggestedFilename_Call) Return(s string) *MockDownloadResponse_GetSuggestedFilename_Call {
2396+ _c.Call.Return(s)
18912397 return _c
18922398 }
18932399
1894-func (_c *MockEngine_Factory_Call) RunAndReturn(run func() port.WebViewFactory) *MockEngine_Factory_Call {
2400+func (_c *MockDownloadResponse_GetSuggestedFilename_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetSuggestedFilename_Call {
18952401 _c.Call.Return(run)
18962402 return _c
18972403 }
18982404
1899-// FaviconDatabase provides a mock function for the type MockEngine
1900-func (_mock *MockEngine) FaviconDatabase() port.FaviconDatabase {
2405+// GetUri provides a mock function for the type MockDownloadResponse
2406+func (_mock *MockDownloadResponse) GetUri() string {
19012407 ret := _mock.Called()
19022408
19032409 if len(ret) == 0 {
1904- panic("no return value specified for FaviconDatabase")
2410+ panic("no return value specified for GetUri")
19052411 }
19062412
1907- var r0 port.FaviconDatabase
1908- if returnFunc, ok := ret.Get(0).(func() port.FaviconDatabase); ok {
2413+ var r0 string
2414+ if returnFunc, ok := ret.Get(0).(func() string); ok {
19092415 r0 = returnFunc()
19102416 } else {
1911- if ret.Get(0) != nil {
1912- r0 = ret.Get(0).(port.FaviconDatabase)
1913- }
2417+ r0 = ret.Get(0).(string)
19142418 }
19152419 return r0
19162420 }
19172421
1918-// MockEngine_FaviconDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FaviconDatabase'
1919-type MockEngine_FaviconDatabase_Call struct {
2422+// MockDownloadResponse_GetUri_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUri'
2423+type MockDownloadResponse_GetUri_Call struct {
19202424 *mock.Call
19212425 }
19222426
1923-// FaviconDatabase is a helper method to define mock.On call
1924-func (_e *MockEngine_Expecter) FaviconDatabase() *MockEngine_FaviconDatabase_Call {
1925- return &MockEngine_FaviconDatabase_Call{Call: _e.mock.On("FaviconDatabase")}
2427+// GetUri is a helper method to define mock.On call
2428+func (_e *MockDownloadResponse_Expecter) GetUri() *MockDownloadResponse_GetUri_Call {
2429+ return &MockDownloadResponse_GetUri_Call{Call: _e.mock.On("GetUri")}
19262430 }
19272431
1928-func (_c *MockEngine_FaviconDatabase_Call) Run(run func()) *MockEngine_FaviconDatabase_Call {
2432+func (_c *MockDownloadResponse_GetUri_Call) Run(run func()) *MockDownloadResponse_GetUri_Call {
19292433 _c.Call.Run(func(args mock.Arguments) {
19302434 run()
19312435 })
19322436 return _c
19332437 }
19342438
1935-func (_c *MockEngine_FaviconDatabase_Call) Return(faviconDatabase port.FaviconDatabase) *MockEngine_FaviconDatabase_Call {
1936- _c.Call.Return(faviconDatabase)
2439+func (_c *MockDownloadResponse_GetUri_Call) Return(s string) *MockDownloadResponse_GetUri_Call {
2440+ _c.Call.Return(s)
19372441 return _c
19382442 }
19392443
1940-func (_c *MockEngine_FaviconDatabase_Call) RunAndReturn(run func() port.FaviconDatabase) *MockEngine_FaviconDatabase_Call {
2444+func (_c *MockDownloadResponse_GetUri_Call) RunAndReturn(run func() string) *MockDownloadResponse_GetUri_Call {
19412445 _c.Call.Return(run)
19422446 return _c
19432447 }
19442448
1945-// FilterApplier provides a mock function for the type MockEngine
1946-func (_mock *MockEngine) FilterApplier() port.FilterApplier {
1947- ret := _mock.Called()
2449+// 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)
19482457
1949- if len(ret) == 0 {
1950- panic("no return value specified for FilterApplier")
1951- }
2458+ t.Cleanup(func() { mock.AssertExpectations(t) })
19522459
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
2464+type MockMemoryPressureApplier struct {
2465+ mock.Mock
2466+}
2467+
2468+type MockMemoryPressureApplier_Expecter struct {
2469+ mock *mock.Mock
2470+}
2471+
2472+func (_m *MockMemoryPressureApplier) EXPECT() *MockMemoryPressureApplier_Expecter {
2473+ return &MockMemoryPressureApplier_Expecter{mock: &_m.Mock}
2474+}
2475+
2476+// ApplyNetworkProcessSettings provides a mock function for the type MockMemoryPressureApplier
2477+func (_mock *MockMemoryPressureApplier) ApplyNetworkProcessSettings(ctx context.Context, cfg *port.MemoryPressureConfig) error {
2478+ ret := _mock.Called(ctx, cfg)
2479+
2480+ if len(ret) == 0 {
2481+ 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)
19562487 } else {
1957- if ret.Get(0) != nil {
1958- r0 = ret.Get(0).(port.FilterApplier)
1959- }
2488+ r0 = ret.Error(0)
19602489 }
19612490 return r0
19622491 }
19632492
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 {
19662495 *mock.Call
19672496 }
19682497
1969-// FilterApplier is a helper method to define mock.On call
1970-func (_e *MockEngine_Expecter) FilterApplier() *MockEngine_FilterApplier_Call {
1971- return &MockEngine_FilterApplier_Call{Call: _e.mock.On("FilterApplier")}
2498+// ApplyNetworkProcessSettings is a helper method to define mock.On call
2499+// - ctx context.Context
2500+// - cfg *port.MemoryPressureConfig
2501+func (_e *MockMemoryPressureApplier_Expecter) ApplyNetworkProcessSettings(ctx interface{}, cfg interface{}) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
2502+ return &MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call{Call: _e.mock.On("ApplyNetworkProcessSettings", ctx, cfg)}
19722503 }
19732504
1974-func (_c *MockEngine_FilterApplier_Call) Run(run func()) *MockEngine_FilterApplier_Call {
2505+func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) Run(run func(ctx context.Context, cfg *port.MemoryPressureConfig)) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
19752506 _c.Call.Run(func(args mock.Arguments) {
1976- run()
2507+ var arg0 context.Context
2508+ if args[0] != nil {
2509+ arg0 = args[0].(context.Context)
2510+ }
2511+ var arg1 *port.MemoryPressureConfig
2512+ if args[1] != nil {
2513+ arg1 = args[1].(*port.MemoryPressureConfig)
2514+ }
2515+ run(
2516+ arg0,
2517+ arg1,
2518+ )
19772519 })
19782520 return _c
19792521 }
19802522
1981-func (_c *MockEngine_FilterApplier_Call) Return(filterApplier port.FilterApplier) *MockEngine_FilterApplier_Call {
1982- _c.Call.Return(filterApplier)
2523+func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) Return(err error) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
2524+ _c.Call.Return(err)
19832525 return _c
19842526 }
19852527
1986-func (_c *MockEngine_FilterApplier_Call) RunAndReturn(run func() port.FilterApplier) *MockEngine_FilterApplier_Call {
2528+func (_c *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call) RunAndReturn(run func(ctx context.Context, cfg *port.MemoryPressureConfig) error) *MockMemoryPressureApplier_ApplyNetworkProcessSettings_Call {
19872529 _c.Call.Return(run)
19882530 return _c
19892531 }
19902532
1991-// InternalSchemePath provides a mock function for the type MockEngine
1992-func (_mock *MockEngine) InternalSchemePath() string {
1993- ret := _mock.Called()
2533+// ApplyWebProcessSettings provides a mock function for the type MockMemoryPressureApplier
2534+func (_mock *MockMemoryPressureApplier) ApplyWebProcessSettings(ctx context.Context, cfg *port.MemoryPressureConfig) (any, error) {
2535+ ret := _mock.Called(ctx, cfg)
19942536
19952537 if len(ret) == 0 {
1996- panic("no return value specified for InternalSchemePath")
2538+ panic("no return value specified for ApplyWebProcessSettings")
19972539 }
19982540
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)
20022548 } else {
2003- r0 = ret.Get(0).(string)
2549+ if ret.Get(0) != nil {
2550+ r0 = ret.Get(0).(any)
2551+ }
20042552 }
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
20062559 }
20072560
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 {
20102563 *mock.Call
20112564 }
20122565
2013-// InternalSchemePath is a helper method to define mock.On call
2014-func (_e *MockEngine_Expecter) InternalSchemePath() *MockEngine_InternalSchemePath_Call {
2015- return &MockEngine_InternalSchemePath_Call{Call: _e.mock.On("InternalSchemePath")}
2566+// ApplyWebProcessSettings is a helper method to define mock.On call
2567+// - ctx context.Context
2568+// - cfg *port.MemoryPressureConfig
2569+func (_e *MockMemoryPressureApplier_Expecter) ApplyWebProcessSettings(ctx interface{}, cfg interface{}) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
2570+ return &MockMemoryPressureApplier_ApplyWebProcessSettings_Call{Call: _e.mock.On("ApplyWebProcessSettings", ctx, cfg)}
20162571 }
20172572
2018-func (_c *MockEngine_InternalSchemePath_Call) Run(run func()) *MockEngine_InternalSchemePath_Call {
2573+func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) Run(run func(ctx context.Context, cfg *port.MemoryPressureConfig)) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
20192574 _c.Call.Run(func(args mock.Arguments) {
2020- run()
2575+ var arg0 context.Context
2576+ if args[0] != nil {
2577+ arg0 = args[0].(context.Context)
2578+ }
2579+ var arg1 *port.MemoryPressureConfig
2580+ if args[1] != nil {
2581+ arg1 = args[1].(*port.MemoryPressureConfig)
2582+ }
2583+ run(
2584+ arg0,
2585+ arg1,
2586+ )
20212587 })
20222588 return _c
20232589 }
20242590
2025-func (_c *MockEngine_InternalSchemePath_Call) Return(s string) *MockEngine_InternalSchemePath_Call {
2026- _c.Call.Return(s)
2591+func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) Return(v any, err error) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
2592+ _c.Call.Return(v, err)
20272593 return _c
20282594 }
20292595
2030-func (_c *MockEngine_InternalSchemePath_Call) RunAndReturn(run func() string) *MockEngine_InternalSchemePath_Call {
2596+func (_c *MockMemoryPressureApplier_ApplyWebProcessSettings_Call) RunAndReturn(run func(ctx context.Context, cfg *port.MemoryPressureConfig) (any, error)) *MockMemoryPressureApplier_ApplyWebProcessSettings_Call {
20312597 _c.Call.Return(run)
20322598 return _c
20332599 }
20342600
2035-// MessageRouter provides a mock function for the type MockEngine
2036-func (_mock *MockEngine) MessageRouter() port.MessageRouter {
2601+// 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
2616+type MockEngine struct {
2617+ mock.Mock
2618+}
2619+
2620+type MockEngine_Expecter struct {
2621+ mock *mock.Mock
2622+}
2623+
2624+func (_m *MockEngine) EXPECT() *MockEngine_Expecter {
2625+ return &MockEngine_Expecter{mock: &_m.Mock}
2626+}
2627+
2628+// Close provides a mock function for the type MockEngine
2629+func (_mock *MockEngine) Close() error {
20372630 ret := _mock.Called()
20382631
20392632 if len(ret) == 0 {
2040- panic("no return value specified for MessageRouter")
2633+ panic("no return value specified for Close")
20412634 }
20422635
2043- var r0 port.MessageRouter
2044- if returnFunc, ok := ret.Get(0).(func() port.MessageRouter); ok {
2636+ var r0 error
2637+ if returnFunc, ok := ret.Get(0).(func() error); ok {
20452638 r0 = returnFunc()
20462639 } else {
2047- if ret.Get(0) != nil {
2048- r0 = ret.Get(0).(port.MessageRouter)
2049- }
2640+ r0 = ret.Error(0)
20502641 }
20512642 return r0
20522643 }
20532644
2054-// MockEngine_MessageRouter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MessageRouter'
2055-type MockEngine_MessageRouter_Call struct {
2645+// MockEngine_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
2646+type MockEngine_Close_Call struct {
20562647 *mock.Call
20572648 }
20582649
2059-// MessageRouter is a helper method to define mock.On call
2060-func (_e *MockEngine_Expecter) MessageRouter() *MockEngine_MessageRouter_Call {
2061- return &MockEngine_MessageRouter_Call{Call: _e.mock.On("MessageRouter")}
2650+// Close is a helper method to define mock.On call
2651+func (_e *MockEngine_Expecter) Close() *MockEngine_Close_Call {
2652+ return &MockEngine_Close_Call{Call: _e.mock.On("Close")}
20622653 }
20632654
2064-func (_c *MockEngine_MessageRouter_Call) Run(run func()) *MockEngine_MessageRouter_Call {
2655+func (_c *MockEngine_Close_Call) Run(run func()) *MockEngine_Close_Call {
20652656 _c.Call.Run(func(args mock.Arguments) {
20662657 run()
20672658 })
20682659 return _c
20692660 }
20702661
2071-func (_c *MockEngine_MessageRouter_Call) Return(messageRouter port.MessageRouter) *MockEngine_MessageRouter_Call {
2072- _c.Call.Return(messageRouter)
2662+func (_c *MockEngine_Close_Call) Return(err error) *MockEngine_Close_Call {
2663+ _c.Call.Return(err)
20732664 return _c
20742665 }
20752666
2076-func (_c *MockEngine_MessageRouter_Call) RunAndReturn(run func() port.MessageRouter) *MockEngine_MessageRouter_Call {
2667+func (_c *MockEngine_Close_Call) RunAndReturn(run func() error) *MockEngine_Close_Call {
20772668 _c.Call.Return(run)
20782669 return _c
20792670 }
20802671
2081-// Pool provides a mock function for the type MockEngine
2082-func (_mock *MockEngine) Pool() port.WebViewPool {
2083- ret := _mock.Called()
2672+// ConfigureDownloads provides a mock function for the type MockEngine
2673+func (_mock *MockEngine) ConfigureDownloads(ctx context.Context, downloadPath string, eventHandler port.DownloadEventHandler, preparer port.DownloadPreparer) error {
2674+ ret := _mock.Called(ctx, downloadPath, eventHandler, preparer)
20842675
20852676 if len(ret) == 0 {
2086- panic("no return value specified for Pool")
2677+ panic("no return value specified for ConfigureDownloads")
20872678 }
20882679
2089- var r0 port.WebViewPool
2090- if returnFunc, ok := ret.Get(0).(func() port.WebViewPool); ok {
2091- r0 = returnFunc()
2680+ var r0 error
2681+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, port.DownloadEventHandler, port.DownloadPreparer) error); ok {
2682+ r0 = returnFunc(ctx, downloadPath, eventHandler, preparer)
20922683 } else {
2093- if ret.Get(0) != nil {
2094- r0 = ret.Get(0).(port.WebViewPool)
2095- }
2684+ r0 = ret.Error(0)
20962685 }
20972686 return r0
20982687 }
20992688
2100-// MockEngine_Pool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pool'
2101-type MockEngine_Pool_Call struct {
2689+// MockEngine_ConfigureDownloads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigureDownloads'
2690+type MockEngine_ConfigureDownloads_Call struct {
21022691 *mock.Call
21032692 }
21042693
2105-// Pool is a helper method to define mock.On call
2106-func (_e *MockEngine_Expecter) Pool() *MockEngine_Pool_Call {
2107- return &MockEngine_Pool_Call{Call: _e.mock.On("Pool")}
2694+// ConfigureDownloads is a helper method to define mock.On call
2695+// - ctx context.Context
2696+// - downloadPath string
2697+// - eventHandler port.DownloadEventHandler
2698+// - preparer port.DownloadPreparer
2699+func (_e *MockEngine_Expecter) ConfigureDownloads(ctx interface{}, downloadPath interface{}, eventHandler interface{}, preparer interface{}) *MockEngine_ConfigureDownloads_Call {
2700+ return &MockEngine_ConfigureDownloads_Call{Call: _e.mock.On("ConfigureDownloads", ctx, downloadPath, eventHandler, preparer)}
21082701 }
21092702
2110-func (_c *MockEngine_Pool_Call) Run(run func()) *MockEngine_Pool_Call {
2703+func (_c *MockEngine_ConfigureDownloads_Call) Run(run func(ctx context.Context, downloadPath string, eventHandler port.DownloadEventHandler, preparer port.DownloadPreparer)) *MockEngine_ConfigureDownloads_Call {
21112704 _c.Call.Run(func(args mock.Arguments) {
2112- run()
2705+ var arg0 context.Context
2706+ if args[0] != nil {
2707+ arg0 = args[0].(context.Context)
2708+ }
2709+ var arg1 string
2710+ if args[1] != nil {
2711+ arg1 = args[1].(string)
2712+ }
2713+ var arg2 port.DownloadEventHandler
2714+ if args[2] != nil {
2715+ arg2 = args[2].(port.DownloadEventHandler)
2716+ }
2717+ var arg3 port.DownloadPreparer
2718+ if args[3] != nil {
2719+ arg3 = args[3].(port.DownloadPreparer)
2720+ }
2721+ run(
2722+ arg0,
2723+ arg1,
2724+ arg2,
2725+ arg3,
2726+ )
21132727 })
21142728 return _c
21152729 }
21162730
2117-func (_c *MockEngine_Pool_Call) Return(webViewPool port.WebViewPool) *MockEngine_Pool_Call {
2118- _c.Call.Return(webViewPool)
2731+func (_c *MockEngine_ConfigureDownloads_Call) Return(err error) *MockEngine_ConfigureDownloads_Call {
2732+ _c.Call.Return(err)
21192733 return _c
21202734 }
21212735
2122-func (_c *MockEngine_Pool_Call) RunAndReturn(run func() port.WebViewPool) *MockEngine_Pool_Call {
2736+func (_c *MockEngine_ConfigureDownloads_Call) RunAndReturn(run func(ctx context.Context, downloadPath string, eventHandler port.DownloadEventHandler, preparer port.DownloadPreparer) error) *MockEngine_ConfigureDownloads_Call {
21232737 _c.Call.Return(run)
21242738 return _c
21252739 }
21262740
2127-// SchemeHandler provides a mock function for the type MockEngine
2128-func (_mock *MockEngine) SchemeHandler() port.SchemeHandler {
2741+// ContentInjector provides a mock function for the type MockEngine
2742+func (_mock *MockEngine) ContentInjector() port.ContentInjector {
21292743 ret := _mock.Called()
21302744
21312745 if len(ret) == 0 {
2132- panic("no return value specified for SchemeHandler")
2746+ panic("no return value specified for ContentInjector")
21332747 }
21342748
2135- var r0 port.SchemeHandler
2136- if returnFunc, ok := ret.Get(0).(func() port.SchemeHandler); ok {
2749+ var r0 port.ContentInjector
2750+ if returnFunc, ok := ret.Get(0).(func() port.ContentInjector); ok {
21372751 r0 = returnFunc()
21382752 } else {
21392753 if ret.Get(0) != nil {
2140- r0 = ret.Get(0).(port.SchemeHandler)
2754+ r0 = ret.Get(0).(port.ContentInjector)
21412755 }
21422756 }
21432757 return r0
21442758 }
21452759
2146-// MockEngine_SchemeHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SchemeHandler'
2147-type MockEngine_SchemeHandler_Call struct {
2760+// MockEngine_ContentInjector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentInjector'
2761+type MockEngine_ContentInjector_Call struct {
21482762 *mock.Call
21492763 }
21502764
2151-// SchemeHandler is a helper method to define mock.On call
2152-func (_e *MockEngine_Expecter) SchemeHandler() *MockEngine_SchemeHandler_Call {
2153- return &MockEngine_SchemeHandler_Call{Call: _e.mock.On("SchemeHandler")}
2765+// ContentInjector is a helper method to define mock.On call
2766+func (_e *MockEngine_Expecter) ContentInjector() *MockEngine_ContentInjector_Call {
2767+ return &MockEngine_ContentInjector_Call{Call: _e.mock.On("ContentInjector")}
21542768 }
21552769
2156-func (_c *MockEngine_SchemeHandler_Call) Run(run func()) *MockEngine_SchemeHandler_Call {
2770+func (_c *MockEngine_ContentInjector_Call) Run(run func()) *MockEngine_ContentInjector_Call {
21572771 _c.Call.Run(func(args mock.Arguments) {
21582772 run()
21592773 })
21602774 return _c
21612775 }
21622776
2163-func (_c *MockEngine_SchemeHandler_Call) Return(schemeHandler port.SchemeHandler) *MockEngine_SchemeHandler_Call {
2164- _c.Call.Return(schemeHandler)
2777+func (_c *MockEngine_ContentInjector_Call) Return(contentInjector port.ContentInjector) *MockEngine_ContentInjector_Call {
2778+ _c.Call.Return(contentInjector)
21652779 return _c
21662780 }
21672781
2168-func (_c *MockEngine_SchemeHandler_Call) RunAndReturn(run func() port.SchemeHandler) *MockEngine_SchemeHandler_Call {
2782+func (_c *MockEngine_ContentInjector_Call) RunAndReturn(run func() port.ContentInjector) *MockEngine_ContentInjector_Call {
21692783 _c.Call.Return(run)
21702784 return _c
21712785 }
21722786
2173-// SettingsApplier provides a mock function for the type MockEngine
2174-func (_mock *MockEngine) SettingsApplier() port.SettingsApplier {
2787+// Factory provides a mock function for the type MockEngine
2788+func (_mock *MockEngine) Factory() port.WebViewFactory {
21752789 ret := _mock.Called()
21762790
21772791 if len(ret) == 0 {
2178- panic("no return value specified for SettingsApplier")
2792+ panic("no return value specified for Factory")
21792793 }
21802794
2181- var r0 port.SettingsApplier
2182- if returnFunc, ok := ret.Get(0).(func() port.SettingsApplier); ok {
2795+ var r0 port.WebViewFactory
2796+ if returnFunc, ok := ret.Get(0).(func() port.WebViewFactory); ok {
21832797 r0 = returnFunc()
21842798 } else {
21852799 if ret.Get(0) != nil {
2186- r0 = ret.Get(0).(port.SettingsApplier)
2800+ r0 = ret.Get(0).(port.WebViewFactory)
21872801 }
21882802 }
21892803 return r0
21902804 }
21912805
2192-// MockEngine_SettingsApplier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SettingsApplier'
2193-type MockEngine_SettingsApplier_Call struct {
2806+// MockEngine_Factory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Factory'
2807+type MockEngine_Factory_Call struct {
21942808 *mock.Call
21952809 }
21962810
2197-// SettingsApplier is a helper method to define mock.On call
2198-func (_e *MockEngine_Expecter) SettingsApplier() *MockEngine_SettingsApplier_Call {
2199- return &MockEngine_SettingsApplier_Call{Call: _e.mock.On("SettingsApplier")}
2811+// Factory is a helper method to define mock.On call
2812+func (_e *MockEngine_Expecter) Factory() *MockEngine_Factory_Call {
2813+ return &MockEngine_Factory_Call{Call: _e.mock.On("Factory")}
22002814 }
22012815
2202-func (_c *MockEngine_SettingsApplier_Call) Run(run func()) *MockEngine_SettingsApplier_Call {
2816+func (_c *MockEngine_Factory_Call) Run(run func()) *MockEngine_Factory_Call {
22032817 _c.Call.Run(func(args mock.Arguments) {
22042818 run()
22052819 })
22062820 return _c
22072821 }
22082822
2209-func (_c *MockEngine_SettingsApplier_Call) Return(settingsApplier port.SettingsApplier) *MockEngine_SettingsApplier_Call {
2210- _c.Call.Return(settingsApplier)
2823+func (_c *MockEngine_Factory_Call) Return(webViewFactory port.WebViewFactory) *MockEngine_Factory_Call {
2824+ _c.Call.Return(webViewFactory)
22112825 return _c
22122826 }
22132827
2214-func (_c *MockEngine_SettingsApplier_Call) RunAndReturn(run func() port.SettingsApplier) *MockEngine_SettingsApplier_Call {
2828+func (_c *MockEngine_Factory_Call) RunAndReturn(run func() port.WebViewFactory) *MockEngine_Factory_Call {
22152829 _c.Call.Return(run)
22162830 return _c
22172831 }
22182832
2219-// 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
2834+func (_mock *MockEngine) FaviconDatabase() port.FaviconDatabase {
2835+ ret := _mock.Called()
22412836
2242-func (_m *MockSchemeHandler) EXPECT() *MockSchemeHandler_Expecter {
2243- return &MockSchemeHandler_Expecter{mock: &_m.Mock}
2244-}
2837+ if len(ret) == 0 {
2838+ panic("no return value specified for FaviconDatabase")
2839+ }
22452840
2246-// RegisterScheme provides a mock function for the type MockSchemeHandler
2247-func (_mock *MockSchemeHandler) RegisterScheme(scheme string, handler func(uri string) ([]byte, string, error)) {
2248- _mock.Called(scheme, handler)
2249- return
2841+ var r0 port.FaviconDatabase
2842+ if returnFunc, ok := ret.Get(0).(func() port.FaviconDatabase); ok {
2843+ r0 = returnFunc()
2844+ } else {
2845+ if ret.Get(0) != nil {
2846+ r0 = ret.Get(0).(port.FaviconDatabase)
2847+ }
2848+ }
2849+ return r0
22502850 }
22512851
2252-// MockSchemeHandler_RegisterScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterScheme'
2253-type MockSchemeHandler_RegisterScheme_Call struct {
2852+// MockEngine_FaviconDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FaviconDatabase'
2853+type MockEngine_FaviconDatabase_Call struct {
22542854 *mock.Call
22552855 }
22562856
2257-// RegisterScheme is a helper method to define mock.On call
2258-// - scheme string
2259-// - handler func(uri string) ([]byte, string, error)
2260-func (_e *MockSchemeHandler_Expecter) RegisterScheme(scheme interface{}, handler interface{}) *MockSchemeHandler_RegisterScheme_Call {
2261- return &MockSchemeHandler_RegisterScheme_Call{Call: _e.mock.On("RegisterScheme", scheme, handler)}
2857+// FaviconDatabase is a helper method to define mock.On call
2858+func (_e *MockEngine_Expecter) FaviconDatabase() *MockEngine_FaviconDatabase_Call {
2859+ return &MockEngine_FaviconDatabase_Call{Call: _e.mock.On("FaviconDatabase")}
22622860 }
22632861
2264-func (_c *MockSchemeHandler_RegisterScheme_Call) Run(run func(scheme string, handler func(uri string) ([]byte, string, error))) *MockSchemeHandler_RegisterScheme_Call {
2862+func (_c *MockEngine_FaviconDatabase_Call) Run(run func()) *MockEngine_FaviconDatabase_Call {
22652863 _c.Call.Run(func(args mock.Arguments) {
2266- var arg0 string
2267- if args[0] != nil {
2268- arg0 = args[0].(string)
2269- }
2270- var arg1 func(uri string) ([]byte, string, error)
2271- if args[1] != nil {
2272- arg1 = args[1].(func(uri string) ([]byte, string, error))
2273- }
2274- run(
2275- arg0,
2276- arg1,
2277- )
2864+ run()
22782865 })
22792866 return _c
22802867 }
22812868
2282-func (_c *MockSchemeHandler_RegisterScheme_Call) Return() *MockSchemeHandler_RegisterScheme_Call {
2283- _c.Call.Return()
2869+func (_c *MockEngine_FaviconDatabase_Call) Return(faviconDatabase port.FaviconDatabase) *MockEngine_FaviconDatabase_Call {
2870+ _c.Call.Return(faviconDatabase)
22842871 return _c
22852872 }
22862873
2287-func (_c *MockSchemeHandler_RegisterScheme_Call) RunAndReturn(run func(scheme string, handler func(uri string) ([]byte, string, error))) *MockSchemeHandler_RegisterScheme_Call {
2288- _c.Run(run)
2874+func (_c *MockEngine_FaviconDatabase_Call) RunAndReturn(run func() port.FaviconDatabase) *MockEngine_FaviconDatabase_Call {
2875+ _c.Call.Return(run)
22892876 return _c
22902877 }
22912878
2292-// 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
2880+func (_mock *MockEngine) FilterApplier() port.FilterApplier {
2881+ ret := _mock.Called()
23002882
2301- t.Cleanup(func() { mock.AssertExpectations(t) })
2883+ if len(ret) == 0 {
2884+ panic("no return value specified for FilterApplier")
2885+ }
23022886
2303- return mock
2887+ var r0 port.FilterApplier
2888+ if returnFunc, ok := ret.Get(0).(func() port.FilterApplier); ok {
2889+ r0 = returnFunc()
2890+ } else {
2891+ if ret.Get(0) != nil {
2892+ r0 = ret.Get(0).(port.FilterApplier)
2893+ }
2894+ }
2895+ return r0
23042896 }
23052897
2306-// MockMessageRouter is an autogenerated mock type for the MessageRouter type
2307-type MockMessageRouter struct {
2308- mock.Mock
2898+// MockEngine_FilterApplier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterApplier'
2899+type MockEngine_FilterApplier_Call struct {
2900+ *mock.Call
23092901 }
23102902
2311-type MockMessageRouter_Expecter struct {
2312- mock *mock.Mock
2903+// FilterApplier is a helper method to define mock.On call
2904+func (_e *MockEngine_Expecter) FilterApplier() *MockEngine_FilterApplier_Call {
2905+ return &MockEngine_FilterApplier_Call{Call: _e.mock.On("FilterApplier")}
23132906 }
23142907
2315-func (_m *MockMessageRouter) EXPECT() *MockMessageRouter_Expecter {
2316- return &MockMessageRouter_Expecter{mock: &_m.Mock}
2908+func (_c *MockEngine_FilterApplier_Call) Run(run func()) *MockEngine_FilterApplier_Call {
2909+ _c.Call.Run(func(args mock.Arguments) {
2910+ run()
2911+ })
2912+ return _c
23172913 }
23182914
2319-// PostMessage provides a mock function for the type MockMessageRouter
2320-func (_mock *MockMessageRouter) PostMessage(webviewID port.WebViewID, message string) error {
2321- ret := _mock.Called(webviewID, message)
2915+func (_c *MockEngine_FilterApplier_Call) Return(filterApplier port.FilterApplier) *MockEngine_FilterApplier_Call {
2916+ _c.Call.Return(filterApplier)
2917+ return _c
2918+}
2919+
2920+func (_c *MockEngine_FilterApplier_Call) RunAndReturn(run func() port.FilterApplier) *MockEngine_FilterApplier_Call {
2921+ _c.Call.Return(run)
2922+ return _c
2923+}
2924+
2925+// InternalFilterManager provides a mock function for the type MockEngine
2926+func (_mock *MockEngine) InternalFilterManager() port.FilterManager {
2927+ ret := _mock.Called()
23222928
23232929 if len(ret) == 0 {
2324- panic("no return value specified for PostMessage")
2930+ panic("no return value specified for InternalFilterManager")
23252931 }
23262932
2327- var r0 error
2328- if returnFunc, ok := ret.Get(0).(func(port.WebViewID, string) error); ok {
2329- r0 = returnFunc(webviewID, message)
2933+ var r0 port.FilterManager
2934+ if returnFunc, ok := ret.Get(0).(func() port.FilterManager); ok {
2935+ r0 = returnFunc()
23302936 } else {
2331- r0 = ret.Error(0)
2937+ if ret.Get(0) != nil {
2938+ r0 = ret.Get(0).(port.FilterManager)
2939+ }
23322940 }
23332941 return r0
23342942 }
23352943
2336-// MockMessageRouter_PostMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostMessage'
2337-type MockMessageRouter_PostMessage_Call struct {
2944+// MockEngine_InternalFilterManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InternalFilterManager'
2945+type MockEngine_InternalFilterManager_Call struct {
23382946 *mock.Call
23392947 }
23402948
2341-// PostMessage is a helper method to define mock.On call
2342-// - webviewID port.WebViewID
2343-// - message string
2344-func (_e *MockMessageRouter_Expecter) PostMessage(webviewID interface{}, message interface{}) *MockMessageRouter_PostMessage_Call {
2345- return &MockMessageRouter_PostMessage_Call{Call: _e.mock.On("PostMessage", webviewID, message)}
2949+// InternalFilterManager is a helper method to define mock.On call
2950+func (_e *MockEngine_Expecter) InternalFilterManager() *MockEngine_InternalFilterManager_Call {
2951+ return &MockEngine_InternalFilterManager_Call{Call: _e.mock.On("InternalFilterManager")}
23462952 }
23472953
2348-func (_c *MockMessageRouter_PostMessage_Call) Run(run func(webviewID port.WebViewID, message string)) *MockMessageRouter_PostMessage_Call {
2954+func (_c *MockEngine_InternalFilterManager_Call) Run(run func()) *MockEngine_InternalFilterManager_Call {
23492955 _c.Call.Run(func(args mock.Arguments) {
2350- var arg0 port.WebViewID
2351- if args[0] != nil {
2352- arg0 = args[0].(port.WebViewID)
2353- }
2354- var arg1 string
2355- if args[1] != nil {
2356- arg1 = args[1].(string)
2357- }
2358- run(
2359- arg0,
2360- arg1,
2361- )
2956+ run()
23622957 })
23632958 return _c
23642959 }
23652960
2366-func (_c *MockMessageRouter_PostMessage_Call) Return(err error) *MockMessageRouter_PostMessage_Call {
2367- _c.Call.Return(err)
2961+func (_c *MockEngine_InternalFilterManager_Call) Return(filterManager port.FilterManager) *MockEngine_InternalFilterManager_Call {
2962+ _c.Call.Return(filterManager)
23682963 return _c
23692964 }
23702965
2371-func (_c *MockMessageRouter_PostMessage_Call) RunAndReturn(run func(webviewID port.WebViewID, message string) error) *MockMessageRouter_PostMessage_Call {
2966+func (_c *MockEngine_InternalFilterManager_Call) RunAndReturn(run func() port.FilterManager) *MockEngine_InternalFilterManager_Call {
23722967 _c.Call.Return(run)
23732968 return _c
23742969 }
23752970
2376-// RegisterHandler provides a mock function for the type MockMessageRouter
2377-func (_mock *MockMessageRouter) RegisterHandler(name string, handler func(message string) (string, error)) {
2378- _mock.Called(name, handler)
2379- return
2971+// InternalSchemePath provides a mock function for the type MockEngine
2972+func (_mock *MockEngine) InternalSchemePath() string {
2973+ ret := _mock.Called()
2974+
2975+ if len(ret) == 0 {
2976+ panic("no return value specified for InternalSchemePath")
2977+ }
2978+
2979+ var r0 string
2980+ if returnFunc, ok := ret.Get(0).(func() string); ok {
2981+ r0 = returnFunc()
2982+ } else {
2983+ r0 = ret.Get(0).(string)
2984+ }
2985+ return r0
23802986 }
23812987
2382-// MockMessageRouter_RegisterHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterHandler'
2383-type MockMessageRouter_RegisterHandler_Call struct {
2988+// MockEngine_InternalSchemePath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InternalSchemePath'
2989+type MockEngine_InternalSchemePath_Call struct {
23842990 *mock.Call
23852991 }
23862992
2387-// RegisterHandler is a helper method to define mock.On call
2388-// - name string
2389-// - handler func(message string) (string, error)
2390-func (_e *MockMessageRouter_Expecter) RegisterHandler(name interface{}, handler interface{}) *MockMessageRouter_RegisterHandler_Call {
2391- return &MockMessageRouter_RegisterHandler_Call{Call: _e.mock.On("RegisterHandler", name, handler)}
2993+// InternalSchemePath is a helper method to define mock.On call
2994+func (_e *MockEngine_Expecter) InternalSchemePath() *MockEngine_InternalSchemePath_Call {
2995+ return &MockEngine_InternalSchemePath_Call{Call: _e.mock.On("InternalSchemePath")}
23922996 }
23932997
2394-func (_c *MockMessageRouter_RegisterHandler_Call) Run(run func(name string, handler func(message string) (string, error))) *MockMessageRouter_RegisterHandler_Call {
2998+func (_c *MockEngine_InternalSchemePath_Call) Run(run func()) *MockEngine_InternalSchemePath_Call {
23952999 _c.Call.Run(func(args mock.Arguments) {
2396- var arg0 string
2397- if args[0] != nil {
2398- arg0 = args[0].(string)
2399- }
2400- var arg1 func(message string) (string, error)
2401- if args[1] != nil {
2402- arg1 = args[1].(func(message string) (string, error))
2403- }
2404- run(
2405- arg0,
2406- arg1,
2407- )
3000+ run()
24083001 })
24093002 return _c
24103003 }
24113004
2412-func (_c *MockMessageRouter_RegisterHandler_Call) Return() *MockMessageRouter_RegisterHandler_Call {
2413- _c.Call.Return()
3005+func (_c *MockEngine_InternalSchemePath_Call) Return(s string) *MockEngine_InternalSchemePath_Call {
3006+ _c.Call.Return(s)
24143007 return _c
24153008 }
24163009
2417-func (_c *MockMessageRouter_RegisterHandler_Call) RunAndReturn(run func(name string, handler func(message string) (string, error))) *MockMessageRouter_RegisterHandler_Call {
2418- _c.Run(run)
3010+func (_c *MockEngine_InternalSchemePath_Call) RunAndReturn(run func() string) *MockEngine_InternalSchemePath_Call {
3011+ _c.Call.Return(run)
24193012 return _c
24203013 }
24213014
2422-// 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
3016+func (_mock *MockEngine) MessageRouter() port.MessageRouter {
3017+ ret := _mock.Called()
24303018
2431- t.Cleanup(func() { mock.AssertExpectations(t) })
3019+ if len(ret) == 0 {
3020+ panic("no return value specified for MessageRouter")
3021+ }
24323022
2433- return mock
3023+ var r0 port.MessageRouter
3024+ if returnFunc, ok := ret.Get(0).(func() port.MessageRouter); ok {
3025+ r0 = returnFunc()
3026+ } else {
3027+ if ret.Get(0) != nil {
3028+ r0 = ret.Get(0).(port.MessageRouter)
3029+ }
3030+ }
3031+ return r0
24343032 }
24353033
2436-// MockSettingsApplier is an autogenerated mock type for the SettingsApplier type
2437-type MockSettingsApplier struct {
2438- mock.Mock
3034+// MockEngine_MessageRouter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MessageRouter'
3035+type MockEngine_MessageRouter_Call struct {
3036+ *mock.Call
24393037 }
24403038
2441-type MockSettingsApplier_Expecter struct {
2442- mock *mock.Mock
3039+// MessageRouter is a helper method to define mock.On call
3040+func (_e *MockEngine_Expecter) MessageRouter() *MockEngine_MessageRouter_Call {
3041+ return &MockEngine_MessageRouter_Call{Call: _e.mock.On("MessageRouter")}
24433042 }
24443043
2445-func (_m *MockSettingsApplier) EXPECT() *MockSettingsApplier_Expecter {
2446- return &MockSettingsApplier_Expecter{mock: &_m.Mock}
3044+func (_c *MockEngine_MessageRouter_Call) Run(run func()) *MockEngine_MessageRouter_Call {
3045+ _c.Call.Run(func(args mock.Arguments) {
3046+ run()
3047+ })
3048+ return _c
24473049 }
24483050
2449-// ApplyToAll provides a mock function for the type MockSettingsApplier
2450-func (_mock *MockSettingsApplier) ApplyToAll(ctx context.Context, webviews []port.WebView) {
2451- _mock.Called(ctx, webviews)
2452- return
3051+func (_c *MockEngine_MessageRouter_Call) Return(messageRouter port.MessageRouter) *MockEngine_MessageRouter_Call {
3052+ _c.Call.Return(messageRouter)
3053+ return _c
24533054 }
24543055
2455-// MockSettingsApplier_ApplyToAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyToAll'
2456-type MockSettingsApplier_ApplyToAll_Call struct {
3056+func (_c *MockEngine_MessageRouter_Call) RunAndReturn(run func() port.MessageRouter) *MockEngine_MessageRouter_Call {
3057+ _c.Call.Return(run)
3058+ return _c
3059+}
3060+
3061+// OnToolkitReady provides a mock function for the type MockEngine
3062+func (_mock *MockEngine) OnToolkitReady(ctx context.Context) error {
3063+ ret := _mock.Called(ctx)
3064+
3065+ if len(ret) == 0 {
3066+ panic("no return value specified for OnToolkitReady")
3067+ }
3068+
3069+ var r0 error
3070+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
3071+ r0 = returnFunc(ctx)
3072+ } else {
3073+ r0 = ret.Error(0)
3074+ }
3075+ return r0
3076+}
3077+
3078+// MockEngine_OnToolkitReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnToolkitReady'
3079+type MockEngine_OnToolkitReady_Call struct {
24573080 *mock.Call
24583081 }
24593082
2460-// ApplyToAll is a helper method to define mock.On call
3083+// OnToolkitReady is a helper method to define mock.On call
24613084 // - ctx context.Context
2462-// - webviews []port.WebView
2463-func (_e *MockSettingsApplier_Expecter) ApplyToAll(ctx interface{}, webviews interface{}) *MockSettingsApplier_ApplyToAll_Call {
2464- return &MockSettingsApplier_ApplyToAll_Call{Call: _e.mock.On("ApplyToAll", ctx, webviews)}
3085+func (_e *MockEngine_Expecter) OnToolkitReady(ctx interface{}) *MockEngine_OnToolkitReady_Call {
3086+ return &MockEngine_OnToolkitReady_Call{Call: _e.mock.On("OnToolkitReady", ctx)}
24653087 }
24663088
2467-func (_c *MockSettingsApplier_ApplyToAll_Call) Run(run func(ctx context.Context, webviews []port.WebView)) *MockSettingsApplier_ApplyToAll_Call {
3089+func (_c *MockEngine_OnToolkitReady_Call) Run(run func(ctx context.Context)) *MockEngine_OnToolkitReady_Call {
24683090 _c.Call.Run(func(args mock.Arguments) {
24693091 var arg0 context.Context
24703092 if args[0] != nil {
24713093 arg0 = args[0].(context.Context)
24723094 }
2473- var arg1 []port.WebView
2474- if args[1] != nil {
2475- arg1 = args[1].([]port.WebView)
2476- }
24773095 run(
24783096 arg0,
2479- arg1,
24803097 )
24813098 })
24823099 return _c
24833100 }
24843101
2485-func (_c *MockSettingsApplier_ApplyToAll_Call) Return() *MockSettingsApplier_ApplyToAll_Call {
2486- _c.Call.Return()
3102+func (_c *MockEngine_OnToolkitReady_Call) Return(err error) *MockEngine_OnToolkitReady_Call {
3103+ _c.Call.Return(err)
24873104 return _c
24883105 }
24893106
2490-func (_c *MockSettingsApplier_ApplyToAll_Call) RunAndReturn(run func(ctx context.Context, webviews []port.WebView)) *MockSettingsApplier_ApplyToAll_Call {
2491- _c.Run(run)
3107+func (_c *MockEngine_OnToolkitReady_Call) RunAndReturn(run func(ctx context.Context) error) *MockEngine_OnToolkitReady_Call {
3108+ _c.Call.Return(run)
24923109 return _c
24933110 }
24943111
2495-// 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
3113+func (_mock *MockEngine) Pool() port.WebViewPool {
3114+ ret := _mock.Called()
25033115
2504- t.Cleanup(func() { mock.AssertExpectations(t) })
3116+ if len(ret) == 0 {
3117+ panic("no return value specified for Pool")
3118+ }
25053119
2506- return mock
3120+ var r0 port.WebViewPool
3121+ if returnFunc, ok := ret.Get(0).(func() port.WebViewPool); ok {
3122+ r0 = returnFunc()
3123+ } else {
3124+ if ret.Get(0) != nil {
3125+ r0 = ret.Get(0).(port.WebViewPool)
3126+ }
3127+ }
3128+ return r0
25073129 }
25083130
2509-// MockFilterApplier is an autogenerated mock type for the FilterApplier type
2510-type MockFilterApplier struct {
2511- mock.Mock
3131+// MockEngine_Pool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pool'
3132+type MockEngine_Pool_Call struct {
3133+ *mock.Call
25123134 }
25133135
2514-type MockFilterApplier_Expecter struct {
2515- mock *mock.Mock
3136+// Pool is a helper method to define mock.On call
3137+func (_e *MockEngine_Expecter) Pool() *MockEngine_Pool_Call {
3138+ return &MockEngine_Pool_Call{Call: _e.mock.On("Pool")}
25163139 }
25173140
2518-func (_m *MockFilterApplier) EXPECT() *MockFilterApplier_Expecter {
2519- return &MockFilterApplier_Expecter{mock: &_m.Mock}
3141+func (_c *MockEngine_Pool_Call) Run(run func()) *MockEngine_Pool_Call {
3142+ _c.Call.Run(func(args mock.Arguments) {
3143+ run()
3144+ })
3145+ return _c
25203146 }
25213147
2522-// ApplyToAll provides a mock function for the type MockFilterApplier
2523-func (_mock *MockFilterApplier) ApplyToAll(ctx context.Context, webviews []port.WebView) {
2524- _mock.Called(ctx, webviews)
2525- return
3148+func (_c *MockEngine_Pool_Call) Return(webViewPool port.WebViewPool) *MockEngine_Pool_Call {
3149+ _c.Call.Return(webViewPool)
3150+ return _c
25263151 }
25273152
2528-// MockFilterApplier_ApplyToAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyToAll'
2529-type MockFilterApplier_ApplyToAll_Call struct {
3153+func (_c *MockEngine_Pool_Call) RunAndReturn(run func() port.WebViewPool) *MockEngine_Pool_Call {
3154+ _c.Call.Return(run)
3155+ return _c
3156+}
3157+
3158+// RegisterAccentHandlers provides a mock function for the type MockEngine
3159+func (_mock *MockEngine) RegisterAccentHandlers(ctx context.Context, handler port.AccentKeyHandler) error {
3160+ ret := _mock.Called(ctx, handler)
3161+
3162+ if len(ret) == 0 {
3163+ 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 {
25303177 *mock.Call
25313178 }
25323179
2533-// ApplyToAll is a helper method to define mock.On call
3180+// RegisterAccentHandlers is a helper method to define mock.On call
25343181 // - ctx context.Context
2535-// - webviews []port.WebView
2536-func (_e *MockFilterApplier_Expecter) ApplyToAll(ctx interface{}, webviews interface{}) *MockFilterApplier_ApplyToAll_Call {
2537- return &MockFilterApplier_ApplyToAll_Call{Call: _e.mock.On("ApplyToAll", ctx, webviews)}
3182+// - handler port.AccentKeyHandler
3183+func (_e *MockEngine_Expecter) RegisterAccentHandlers(ctx interface{}, handler interface{}) *MockEngine_RegisterAccentHandlers_Call {
3184+ return &MockEngine_RegisterAccentHandlers_Call{Call: _e.mock.On("RegisterAccentHandlers", ctx, handler)}
25383185 }
25393186
2540-func (_c *MockFilterApplier_ApplyToAll_Call) Run(run func(ctx context.Context, webviews []port.WebView)) *MockFilterApplier_ApplyToAll_Call {
3187+func (_c *MockEngine_RegisterAccentHandlers_Call) Run(run func(ctx context.Context, handler port.AccentKeyHandler)) *MockEngine_RegisterAccentHandlers_Call {
25413188 _c.Call.Run(func(args mock.Arguments) {
25423189 var arg0 context.Context
25433190 if args[0] != nil {
25443191 arg0 = args[0].(context.Context)
25453192 }
2546- var arg1 []port.WebView
3193+ var arg1 port.AccentKeyHandler
25473194 if args[1] != nil {
2548- arg1 = args[1].([]port.WebView)
3195+ arg1 = args[1].(port.AccentKeyHandler)
25493196 }
25503197 run(
25513198 arg0,
@@ -2555,70 +3202,54 @@ func (_c *MockFilterApplier_ApplyToAll_Call) Run(run func(ctx context.Context, w
25553202 return _c
25563203 }
25573204
2558-func (_c *MockFilterApplier_ApplyToAll_Call) Return() *MockFilterApplier_ApplyToAll_Call {
2559- _c.Call.Return()
3205+func (_c *MockEngine_RegisterAccentHandlers_Call) Return(err error) *MockEngine_RegisterAccentHandlers_Call {
3206+ _c.Call.Return(err)
25603207 return _c
25613208 }
25623209
2563-func (_c *MockFilterApplier_ApplyToAll_Call) RunAndReturn(run func(ctx context.Context, webviews []port.WebView)) *MockFilterApplier_ApplyToAll_Call {
2564- _c.Run(run)
3210+func (_c *MockEngine_RegisterAccentHandlers_Call) RunAndReturn(run func(ctx context.Context, handler port.AccentKeyHandler) error) *MockEngine_RegisterAccentHandlers_Call {
3211+ _c.Call.Return(run)
25653212 return _c
25663213 }
25673214
2568-// 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
3216+func (_mock *MockEngine) RegisterHandlers(ctx context.Context, deps port.HandlerDependencies) error {
3217+ ret := _mock.Called(ctx, deps)
25903218
2591-func (_m *MockFaviconDatabase) EXPECT() *MockFaviconDatabase_Expecter {
2592- return &MockFaviconDatabase_Expecter{mock: &_m.Mock}
2593-}
3219+ if len(ret) == 0 {
3220+ panic("no return value specified for RegisterHandlers")
3221+ }
25943222
2595-// GetFaviconAsync provides a mock function for the type MockFaviconDatabase
2596-func (_mock *MockFaviconDatabase) GetFaviconAsync(pageURL string, callback func(port.Texture)) {
2597- _mock.Called(pageURL, callback)
2598- return
3223+ var r0 error
3224+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.HandlerDependencies) error); ok {
3225+ r0 = returnFunc(ctx, deps)
3226+ } else {
3227+ r0 = ret.Error(0)
3228+ }
3229+ return r0
25993230 }
26003231
2601-// MockFaviconDatabase_GetFaviconAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFaviconAsync'
2602-type MockFaviconDatabase_GetFaviconAsync_Call struct {
3232+// MockEngine_RegisterHandlers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterHandlers'
3233+type MockEngine_RegisterHandlers_Call struct {
26033234 *mock.Call
26043235 }
26053236
2606-// GetFaviconAsync is a helper method to define mock.On call
2607-// - pageURL string
2608-// - callback func(port.Texture)
2609-func (_e *MockFaviconDatabase_Expecter) GetFaviconAsync(pageURL interface{}, callback interface{}) *MockFaviconDatabase_GetFaviconAsync_Call {
2610- return &MockFaviconDatabase_GetFaviconAsync_Call{Call: _e.mock.On("GetFaviconAsync", pageURL, callback)}
3237+// RegisterHandlers is a helper method to define mock.On call
3238+// - ctx context.Context
3239+// - deps port.HandlerDependencies
3240+func (_e *MockEngine_Expecter) RegisterHandlers(ctx interface{}, deps interface{}) *MockEngine_RegisterHandlers_Call {
3241+ return &MockEngine_RegisterHandlers_Call{Call: _e.mock.On("RegisterHandlers", ctx, deps)}
26113242 }
26123243
2613-func (_c *MockFaviconDatabase_GetFaviconAsync_Call) Run(run func(pageURL string, callback func(port.Texture))) *MockFaviconDatabase_GetFaviconAsync_Call {
3244+func (_c *MockEngine_RegisterHandlers_Call) Run(run func(ctx context.Context, deps port.HandlerDependencies)) *MockEngine_RegisterHandlers_Call {
26143245 _c.Call.Run(func(args mock.Arguments) {
2615- var arg0 string
3246+ var arg0 context.Context
26163247 if args[0] != nil {
2617- arg0 = args[0].(string)
3248+ arg0 = args[0].(context.Context)
26183249 }
2619- var arg1 func(port.Texture)
3250+ var arg1 port.HandlerDependencies
26203251 if args[1] != nil {
2621- arg1 = args[1].(func(port.Texture))
3252+ arg1 = args[1].(port.HandlerDependencies)
26223253 }
26233254 run(
26243255 arg0,
@@ -2628,83 +3259,80 @@ func (_c *MockFaviconDatabase_GetFaviconAsync_Call) Run(run func(pageURL string,
26283259 return _c
26293260 }
26303261
2631-func (_c *MockFaviconDatabase_GetFaviconAsync_Call) Return() *MockFaviconDatabase_GetFaviconAsync_Call {
2632- _c.Call.Return()
3262+func (_c *MockEngine_RegisterHandlers_Call) Return(err error) *MockEngine_RegisterHandlers_Call {
3263+ _c.Call.Return(err)
26333264 return _c
26343265 }
26353266
2636-func (_c *MockFaviconDatabase_GetFaviconAsync_Call) RunAndReturn(run func(pageURL string, callback func(port.Texture))) *MockFaviconDatabase_GetFaviconAsync_Call {
2637- _c.Run(run)
3267+func (_c *MockEngine_RegisterHandlers_Call) RunAndReturn(run func(ctx context.Context, deps port.HandlerDependencies) error) *MockEngine_RegisterHandlers_Call {
3268+ _c.Call.Return(run)
26383269 return _c
26393270 }
26403271
2641-// 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
3273+func (_mock *MockEngine) SchemeHandler() port.SchemeHandler {
3274+ ret := _mock.Called()
26493275
2650- t.Cleanup(func() { mock.AssertExpectations(t) })
3276+ if len(ret) == 0 {
3277+ panic("no return value specified for SchemeHandler")
3278+ }
26513279
2652- return mock
3280+ var r0 port.SchemeHandler
3281+ if returnFunc, ok := ret.Get(0).(func() port.SchemeHandler); ok {
3282+ r0 = returnFunc()
3283+ } else {
3284+ if ret.Get(0) != nil {
3285+ r0 = ret.Get(0).(port.SchemeHandler)
3286+ }
3287+ }
3288+ return r0
26533289 }
26543290
2655-// MockFontDetector is an autogenerated mock type for the FontDetector type
2656-type MockFontDetector struct {
2657- mock.Mock
3291+// MockEngine_SchemeHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SchemeHandler'
3292+type MockEngine_SchemeHandler_Call struct {
3293+ *mock.Call
26583294 }
26593295
2660-type MockFontDetector_Expecter struct {
2661- mock *mock.Mock
3296+// SchemeHandler is a helper method to define mock.On call
3297+func (_e *MockEngine_Expecter) SchemeHandler() *MockEngine_SchemeHandler_Call {
3298+ return &MockEngine_SchemeHandler_Call{Call: _e.mock.On("SchemeHandler")}
26623299 }
26633300
2664-func (_m *MockFontDetector) EXPECT() *MockFontDetector_Expecter {
2665- return &MockFontDetector_Expecter{mock: &_m.Mock}
3301+func (_c *MockEngine_SchemeHandler_Call) Run(run func()) *MockEngine_SchemeHandler_Call {
3302+ _c.Call.Run(func(args mock.Arguments) {
3303+ run()
3304+ })
3305+ return _c
26663306 }
26673307
2668-// GetAvailableFonts provides a mock function for the type MockFontDetector
2669-func (_mock *MockFontDetector) GetAvailableFonts(ctx context.Context) ([]string, error) {
2670- ret := _mock.Called(ctx)
3308+func (_c *MockEngine_SchemeHandler_Call) Return(schemeHandler port.SchemeHandler) *MockEngine_SchemeHandler_Call {
3309+ _c.Call.Return(schemeHandler)
3310+ return _c
3311+}
26713312
2672- if len(ret) == 0 {
2673- panic("no return value specified for GetAvailableFonts")
2674- }
3313+func (_c *MockEngine_SchemeHandler_Call) RunAndReturn(run func() port.SchemeHandler) *MockEngine_SchemeHandler_Call {
3314+ _c.Call.Return(run)
3315+ return _c
3316+}
26753317
2676- var r0 []string
2677- var r1 error
2678- if returnFunc, ok := ret.Get(0).(func(context.Context) ([]string, error)); ok {
2679- return returnFunc(ctx)
2680- }
2681- if returnFunc, ok := ret.Get(0).(func(context.Context) []string); ok {
2682- r0 = returnFunc(ctx)
2683- } else {
2684- if ret.Get(0) != nil {
2685- r0 = ret.Get(0).([]string)
2686- }
2687- }
2688- if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
2689- r1 = returnFunc(ctx)
2690- } else {
2691- r1 = ret.Error(1)
2692- }
2693- return r0, r1
3318+// SetHandlerContext provides a mock function for the type MockEngine
3319+func (_mock *MockEngine) SetHandlerContext(ctx context.Context) {
3320+ _mock.Called(ctx)
3321+ return
26943322 }
26953323
2696-// MockFontDetector_GetAvailableFonts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAvailableFonts'
2697-type MockFontDetector_GetAvailableFonts_Call struct {
3324+// MockEngine_SetHandlerContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHandlerContext'
3325+type MockEngine_SetHandlerContext_Call struct {
26983326 *mock.Call
26993327 }
27003328
2701-// GetAvailableFonts is a helper method to define mock.On call
3329+// SetHandlerContext is a helper method to define mock.On call
27023330 // - ctx context.Context
2703-func (_e *MockFontDetector_Expecter) GetAvailableFonts(ctx interface{}) *MockFontDetector_GetAvailableFonts_Call {
2704- return &MockFontDetector_GetAvailableFonts_Call{Call: _e.mock.On("GetAvailableFonts", ctx)}
3331+func (_e *MockEngine_Expecter) SetHandlerContext(ctx interface{}) *MockEngine_SetHandlerContext_Call {
3332+ return &MockEngine_SetHandlerContext_Call{Call: _e.mock.On("SetHandlerContext", ctx)}
27053333 }
27063334
2707-func (_c *MockFontDetector_GetAvailableFonts_Call) Run(run func(ctx context.Context)) *MockFontDetector_GetAvailableFonts_Call {
3335+func (_c *MockEngine_SetHandlerContext_Call) Run(run func(ctx context.Context)) *MockEngine_SetHandlerContext_Call {
27083336 _c.Call.Run(func(args mock.Arguments) {
27093337 var arg0 context.Context
27103338 if args[0] != nil {
@@ -2717,137 +3345,201 @@ func (_c *MockFontDetector_GetAvailableFonts_Call) Run(run func(ctx context.Cont
27173345 return _c
27183346 }
27193347
2720-func (_c *MockFontDetector_GetAvailableFonts_Call) Return(strings []string, err error) *MockFontDetector_GetAvailableFonts_Call {
2721- _c.Call.Return(strings, err)
3348+func (_c *MockEngine_SetHandlerContext_Call) Return() *MockEngine_SetHandlerContext_Call {
3349+ _c.Call.Return()
27223350 return _c
27233351 }
27243352
2725-func (_c *MockFontDetector_GetAvailableFonts_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockFontDetector_GetAvailableFonts_Call {
3353+func (_c *MockEngine_SetHandlerContext_Call) RunAndReturn(run func(ctx context.Context)) *MockEngine_SetHandlerContext_Call {
3354+ _c.Run(run)
3355+ return _c
3356+}
3357+
3358+// SettingsApplier provides a mock function for the type MockEngine
3359+func (_mock *MockEngine) SettingsApplier() port.SettingsApplier {
3360+ ret := _mock.Called()
3361+
3362+ if len(ret) == 0 {
3363+ panic("no return value specified for SettingsApplier")
3364+ }
3365+
3366+ var r0 port.SettingsApplier
3367+ if returnFunc, ok := ret.Get(0).(func() port.SettingsApplier); ok {
3368+ r0 = returnFunc()
3369+ } else {
3370+ if ret.Get(0) != nil {
3371+ r0 = ret.Get(0).(port.SettingsApplier)
3372+ }
3373+ }
3374+ return r0
3375+}
3376+
3377+// MockEngine_SettingsApplier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SettingsApplier'
3378+type MockEngine_SettingsApplier_Call struct {
3379+ *mock.Call
3380+}
3381+
3382+// SettingsApplier is a helper method to define mock.On call
3383+func (_e *MockEngine_Expecter) SettingsApplier() *MockEngine_SettingsApplier_Call {
3384+ return &MockEngine_SettingsApplier_Call{Call: _e.mock.On("SettingsApplier")}
3385+}
3386+
3387+func (_c *MockEngine_SettingsApplier_Call) Run(run func()) *MockEngine_SettingsApplier_Call {
3388+ _c.Call.Run(func(args mock.Arguments) {
3389+ run()
3390+ })
3391+ return _c
3392+}
3393+
3394+func (_c *MockEngine_SettingsApplier_Call) Return(settingsApplier port.SettingsApplier) *MockEngine_SettingsApplier_Call {
3395+ _c.Call.Return(settingsApplier)
3396+ return _c
3397+}
3398+
3399+func (_c *MockEngine_SettingsApplier_Call) RunAndReturn(run func() port.SettingsApplier) *MockEngine_SettingsApplier_Call {
27263400 _c.Call.Return(run)
27273401 return _c
27283402 }
27293403
2730-// IsAvailable provides a mock function for the type MockFontDetector
2731-func (_mock *MockFontDetector) IsAvailable(ctx context.Context) bool {
2732- ret := _mock.Called(ctx)
3404+// UpdateAppearance provides a mock function for the type MockEngine
3405+func (_mock *MockEngine) UpdateAppearance(ctx context.Context, r float64, g float64, b float64, alpha float64) error {
3406+ ret := _mock.Called(ctx, r, g, b, alpha)
27333407
27343408 if len(ret) == 0 {
2735- panic("no return value specified for IsAvailable")
3409+ panic("no return value specified for UpdateAppearance")
27363410 }
27373411
2738- var r0 bool
2739- if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
2740- r0 = returnFunc(ctx)
3412+ var r0 error
3413+ if returnFunc, ok := ret.Get(0).(func(context.Context, float64, float64, float64, float64) error); ok {
3414+ r0 = returnFunc(ctx, r, g, b, alpha)
27413415 } else {
2742- r0 = ret.Get(0).(bool)
3416+ r0 = ret.Error(0)
27433417 }
27443418 return r0
27453419 }
27463420
2747-// MockFontDetector_IsAvailable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAvailable'
2748-type MockFontDetector_IsAvailable_Call struct {
3421+// MockEngine_UpdateAppearance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAppearance'
3422+type MockEngine_UpdateAppearance_Call struct {
27493423 *mock.Call
27503424 }
27513425
2752-// IsAvailable is a helper method to define mock.On call
3426+// UpdateAppearance is a helper method to define mock.On call
27533427 // - ctx context.Context
2754-func (_e *MockFontDetector_Expecter) IsAvailable(ctx interface{}) *MockFontDetector_IsAvailable_Call {
2755- return &MockFontDetector_IsAvailable_Call{Call: _e.mock.On("IsAvailable", ctx)}
3428+// - r float64
3429+// - g float64
3430+// - b float64
3431+// - alpha float64
3432+func (_e *MockEngine_Expecter) UpdateAppearance(ctx interface{}, r interface{}, g interface{}, b interface{}, alpha interface{}) *MockEngine_UpdateAppearance_Call {
3433+ return &MockEngine_UpdateAppearance_Call{Call: _e.mock.On("UpdateAppearance", ctx, r, g, b, alpha)}
27563434 }
27573435
2758-func (_c *MockFontDetector_IsAvailable_Call) Run(run func(ctx context.Context)) *MockFontDetector_IsAvailable_Call {
3436+func (_c *MockEngine_UpdateAppearance_Call) Run(run func(ctx context.Context, r float64, g float64, b float64, alpha float64)) *MockEngine_UpdateAppearance_Call {
27593437 _c.Call.Run(func(args mock.Arguments) {
27603438 var arg0 context.Context
27613439 if args[0] != nil {
27623440 arg0 = args[0].(context.Context)
27633441 }
3442+ var arg1 float64
3443+ if args[1] != nil {
3444+ arg1 = args[1].(float64)
3445+ }
3446+ var arg2 float64
3447+ if args[2] != nil {
3448+ arg2 = args[2].(float64)
3449+ }
3450+ var arg3 float64
3451+ if args[3] != nil {
3452+ arg3 = args[3].(float64)
3453+ }
3454+ var arg4 float64
3455+ if args[4] != nil {
3456+ arg4 = args[4].(float64)
3457+ }
27643458 run(
27653459 arg0,
3460+ arg1,
3461+ arg2,
3462+ arg3,
3463+ arg4,
27663464 )
27673465 })
27683466 return _c
27693467 }
27703468
2771-func (_c *MockFontDetector_IsAvailable_Call) Return(b bool) *MockFontDetector_IsAvailable_Call {
2772- _c.Call.Return(b)
3469+func (_c *MockEngine_UpdateAppearance_Call) Return(err error) *MockEngine_UpdateAppearance_Call {
3470+ _c.Call.Return(err)
27733471 return _c
27743472 }
27753473
2776-func (_c *MockFontDetector_IsAvailable_Call) RunAndReturn(run func(ctx context.Context) bool) *MockFontDetector_IsAvailable_Call {
3474+func (_c *MockEngine_UpdateAppearance_Call) RunAndReturn(run func(ctx context.Context, r float64, g float64, b float64, alpha float64) error) *MockEngine_UpdateAppearance_Call {
27773475 _c.Call.Return(run)
27783476 return _c
27793477 }
27803478
2781-// SelectBestFont provides a mock function for the type MockFontDetector
2782-func (_mock *MockFontDetector) SelectBestFont(ctx context.Context, category port.FontCategory, fallbackChain []string) string {
2783- ret := _mock.Called(ctx, category, fallbackChain)
3479+// UpdateSettings provides a mock function for the type MockEngine
3480+func (_mock *MockEngine) UpdateSettings(ctx context.Context, update port.EngineSettingsUpdate) error {
3481+ ret := _mock.Called(ctx, update)
27843482
27853483 if len(ret) == 0 {
2786- panic("no return value specified for SelectBestFont")
3484+ panic("no return value specified for UpdateSettings")
27873485 }
27883486
2789- var r0 string
2790- if returnFunc, ok := ret.Get(0).(func(context.Context, port.FontCategory, []string) string); ok {
2791- r0 = returnFunc(ctx, category, fallbackChain)
3487+ var r0 error
3488+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.EngineSettingsUpdate) error); ok {
3489+ r0 = returnFunc(ctx, update)
27923490 } else {
2793- r0 = ret.Get(0).(string)
3491+ r0 = ret.Error(0)
27943492 }
27953493 return r0
27963494 }
27973495
2798-// MockFontDetector_SelectBestFont_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectBestFont'
2799-type MockFontDetector_SelectBestFont_Call struct {
3496+// MockEngine_UpdateSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSettings'
3497+type MockEngine_UpdateSettings_Call struct {
28003498 *mock.Call
28013499 }
28023500
2803-// SelectBestFont is a helper method to define mock.On call
3501+// UpdateSettings is a helper method to define mock.On call
28043502 // - ctx context.Context
2805-// - category port.FontCategory
2806-// - fallbackChain []string
2807-func (_e *MockFontDetector_Expecter) SelectBestFont(ctx interface{}, category interface{}, fallbackChain interface{}) *MockFontDetector_SelectBestFont_Call {
2808- return &MockFontDetector_SelectBestFont_Call{Call: _e.mock.On("SelectBestFont", ctx, category, fallbackChain)}
3503+// - update port.EngineSettingsUpdate
3504+func (_e *MockEngine_Expecter) UpdateSettings(ctx interface{}, update interface{}) *MockEngine_UpdateSettings_Call {
3505+ return &MockEngine_UpdateSettings_Call{Call: _e.mock.On("UpdateSettings", ctx, update)}
28093506 }
28103507
2811-func (_c *MockFontDetector_SelectBestFont_Call) Run(run func(ctx context.Context, category port.FontCategory, fallbackChain []string)) *MockFontDetector_SelectBestFont_Call {
3508+func (_c *MockEngine_UpdateSettings_Call) Run(run func(ctx context.Context, update port.EngineSettingsUpdate)) *MockEngine_UpdateSettings_Call {
28123509 _c.Call.Run(func(args mock.Arguments) {
28133510 var arg0 context.Context
28143511 if args[0] != nil {
28153512 arg0 = args[0].(context.Context)
28163513 }
2817- var arg1 port.FontCategory
3514+ var arg1 port.EngineSettingsUpdate
28183515 if args[1] != nil {
2819- arg1 = args[1].(port.FontCategory)
2820- }
2821- var arg2 []string
2822- if args[2] != nil {
2823- arg2 = args[2].([]string)
3516+ arg1 = args[1].(port.EngineSettingsUpdate)
28243517 }
28253518 run(
28263519 arg0,
28273520 arg1,
2828- arg2,
28293521 )
28303522 })
28313523 return _c
28323524 }
28333525
2834-func (_c *MockFontDetector_SelectBestFont_Call) Return(s string) *MockFontDetector_SelectBestFont_Call {
2835- _c.Call.Return(s)
3526+func (_c *MockEngine_UpdateSettings_Call) Return(err error) *MockEngine_UpdateSettings_Call {
3527+ _c.Call.Return(err)
28363528 return _c
28373529 }
28383530
2839-func (_c *MockFontDetector_SelectBestFont_Call) RunAndReturn(run func(ctx context.Context, category port.FontCategory, fallbackChain []string) string) *MockFontDetector_SelectBestFont_Call {
3531+func (_c *MockEngine_UpdateSettings_Call) RunAndReturn(run func(ctx context.Context, update port.EngineSettingsUpdate) error) *MockEngine_UpdateSettings_Call {
28403532 _c.Call.Return(run)
28413533 return _c
28423534 }
28433535
2844-// 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.
28453537 // The first argument is typically a *testing.T value.
2846-func NewMockHardwareSurveyor(t interface {
3538+func NewMockSchemeHandler(t interface {
28473539 mock.TestingT
28483540 Cleanup(func())
2849-}) *MockHardwareSurveyor {
2850- mock := &MockHardwareSurveyor{}
3541+}) *MockSchemeHandler {
3542+ mock := &MockSchemeHandler{}
28513543 mock.Mock.Test(t)
28523544
28533545 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -2855,77 +3547,72 @@ func NewMockHardwareSurveyor(t interface {
28553547 return mock
28563548 }
28573549
2858-// MockHardwareSurveyor is an autogenerated mock type for the HardwareSurveyor type
2859-type MockHardwareSurveyor struct {
3550+// MockSchemeHandler is an autogenerated mock type for the SchemeHandler type
3551+type MockSchemeHandler struct {
28603552 mock.Mock
28613553 }
28623554
2863-type MockHardwareSurveyor_Expecter struct {
3555+type MockSchemeHandler_Expecter struct {
28643556 mock *mock.Mock
28653557 }
28663558
2867-func (_m *MockHardwareSurveyor) EXPECT() *MockHardwareSurveyor_Expecter {
2868- return &MockHardwareSurveyor_Expecter{mock: &_m.Mock}
3559+func (_m *MockSchemeHandler) EXPECT() *MockSchemeHandler_Expecter {
3560+ return &MockSchemeHandler_Expecter{mock: &_m.Mock}
28693561 }
28703562
2871-// Survey provides a mock function for the type MockHardwareSurveyor
2872-func (_mock *MockHardwareSurveyor) Survey(ctx context.Context) port.HardwareInfo {
2873- ret := _mock.Called(ctx)
2874-
2875- if len(ret) == 0 {
2876- panic("no return value specified for Survey")
2877- }
2878-
2879- var r0 port.HardwareInfo
2880- if returnFunc, ok := ret.Get(0).(func(context.Context) port.HardwareInfo); ok {
2881- r0 = returnFunc(ctx)
2882- } else {
2883- r0 = ret.Get(0).(port.HardwareInfo)
2884- }
2885- return r0
3563+// RegisterScheme provides a mock function for the type MockSchemeHandler
3564+func (_mock *MockSchemeHandler) RegisterScheme(scheme string, handler func(uri string) ([]byte, string, error)) {
3565+ _mock.Called(scheme, handler)
3566+ return
28863567 }
28873568
2888-// MockHardwareSurveyor_Survey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Survey'
2889-type MockHardwareSurveyor_Survey_Call struct {
3569+// MockSchemeHandler_RegisterScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterScheme'
3570+type MockSchemeHandler_RegisterScheme_Call struct {
28903571 *mock.Call
28913572 }
28923573
2893-// Survey is a helper method to define mock.On call
2894-// - ctx context.Context
2895-func (_e *MockHardwareSurveyor_Expecter) Survey(ctx interface{}) *MockHardwareSurveyor_Survey_Call {
2896- return &MockHardwareSurveyor_Survey_Call{Call: _e.mock.On("Survey", ctx)}
3574+// RegisterScheme is a helper method to define mock.On call
3575+// - scheme string
3576+// - handler func(uri string) ([]byte, string, error)
3577+func (_e *MockSchemeHandler_Expecter) RegisterScheme(scheme interface{}, handler interface{}) *MockSchemeHandler_RegisterScheme_Call {
3578+ return &MockSchemeHandler_RegisterScheme_Call{Call: _e.mock.On("RegisterScheme", scheme, handler)}
28973579 }
28983580
2899-func (_c *MockHardwareSurveyor_Survey_Call) Run(run func(ctx context.Context)) *MockHardwareSurveyor_Survey_Call {
3581+func (_c *MockSchemeHandler_RegisterScheme_Call) Run(run func(scheme string, handler func(uri string) ([]byte, string, error))) *MockSchemeHandler_RegisterScheme_Call {
29003582 _c.Call.Run(func(args mock.Arguments) {
2901- var arg0 context.Context
3583+ var arg0 string
29023584 if args[0] != nil {
2903- arg0 = args[0].(context.Context)
3585+ arg0 = args[0].(string)
3586+ }
3587+ var arg1 func(uri string) ([]byte, string, error)
3588+ if args[1] != nil {
3589+ arg1 = args[1].(func(uri string) ([]byte, string, error))
29043590 }
29053591 run(
29063592 arg0,
3593+ arg1,
29073594 )
29083595 })
29093596 return _c
29103597 }
29113598
2912-func (_c *MockHardwareSurveyor_Survey_Call) Return(hardwareInfo port.HardwareInfo) *MockHardwareSurveyor_Survey_Call {
2913- _c.Call.Return(hardwareInfo)
3599+func (_c *MockSchemeHandler_RegisterScheme_Call) Return() *MockSchemeHandler_RegisterScheme_Call {
3600+ _c.Call.Return()
29143601 return _c
29153602 }
29163603
2917-func (_c *MockHardwareSurveyor_Survey_Call) RunAndReturn(run func(ctx context.Context) port.HardwareInfo) *MockHardwareSurveyor_Survey_Call {
2918- _c.Call.Return(run)
3604+func (_c *MockSchemeHandler_RegisterScheme_Call) RunAndReturn(run func(scheme string, handler func(uri string) ([]byte, string, error))) *MockSchemeHandler_RegisterScheme_Call {
3605+ _c.Run(run)
29193606 return _c
29203607 }
29213608
2922-// 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.
29233610 // The first argument is typically a *testing.T value.
2924-func NewMockIdleInhibitor(t interface {
3611+func NewMockMessageRouter(t interface {
29253612 mock.TestingT
29263613 Cleanup(func())
2927-}) *MockIdleInhibitor {
2928- mock := &MockIdleInhibitor{}
3614+}) *MockMessageRouter {
3615+ mock := &MockMessageRouter{}
29293616 mock.Mock.Test(t)
29303617
29313618 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -2933,101 +3620,103 @@ func NewMockIdleInhibitor(t interface {
29333620 return mock
29343621 }
29353622
2936-// MockIdleInhibitor is an autogenerated mock type for the IdleInhibitor type
2937-type MockIdleInhibitor struct {
3623+// MockMessageRouter is an autogenerated mock type for the MessageRouter type
3624+type MockMessageRouter struct {
29383625 mock.Mock
29393626 }
29403627
2941-type MockIdleInhibitor_Expecter struct {
3628+type MockMessageRouter_Expecter struct {
29423629 mock *mock.Mock
29433630 }
29443631
2945-func (_m *MockIdleInhibitor) EXPECT() *MockIdleInhibitor_Expecter {
2946- return &MockIdleInhibitor_Expecter{mock: &_m.Mock}
3632+func (_m *MockMessageRouter) EXPECT() *MockMessageRouter_Expecter {
3633+ return &MockMessageRouter_Expecter{mock: &_m.Mock}
29473634 }
29483635
2949-// Close provides a mock function for the type MockIdleInhibitor
2950-func (_mock *MockIdleInhibitor) Close() error {
2951- ret := _mock.Called()
3636+// PostMessage provides a mock function for the type MockMessageRouter
3637+func (_mock *MockMessageRouter) PostMessage(webviewID port.WebViewID, message string) error {
3638+ ret := _mock.Called(webviewID, message)
29523639
29533640 if len(ret) == 0 {
2954- panic("no return value specified for Close")
3641+ panic("no return value specified for PostMessage")
29553642 }
29563643
29573644 var r0 error
2958- if returnFunc, ok := ret.Get(0).(func() error); ok {
2959- r0 = returnFunc()
3645+ if returnFunc, ok := ret.Get(0).(func(port.WebViewID, string) error); ok {
3646+ r0 = returnFunc(webviewID, message)
29603647 } else {
29613648 r0 = ret.Error(0)
29623649 }
29633650 return r0
29643651 }
29653652
2966-// MockIdleInhibitor_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
2967-type MockIdleInhibitor_Close_Call struct {
3653+// MockMessageRouter_PostMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostMessage'
3654+type MockMessageRouter_PostMessage_Call struct {
29683655 *mock.Call
29693656 }
29703657
2971-// Close is a helper method to define mock.On call
2972-func (_e *MockIdleInhibitor_Expecter) Close() *MockIdleInhibitor_Close_Call {
2973- return &MockIdleInhibitor_Close_Call{Call: _e.mock.On("Close")}
3658+// PostMessage is a helper method to define mock.On call
3659+// - webviewID port.WebViewID
3660+// - message string
3661+func (_e *MockMessageRouter_Expecter) PostMessage(webviewID interface{}, message interface{}) *MockMessageRouter_PostMessage_Call {
3662+ return &MockMessageRouter_PostMessage_Call{Call: _e.mock.On("PostMessage", webviewID, message)}
29743663 }
29753664
2976-func (_c *MockIdleInhibitor_Close_Call) Run(run func()) *MockIdleInhibitor_Close_Call {
3665+func (_c *MockMessageRouter_PostMessage_Call) Run(run func(webviewID port.WebViewID, message string)) *MockMessageRouter_PostMessage_Call {
29773666 _c.Call.Run(func(args mock.Arguments) {
2978- run()
3667+ var arg0 port.WebViewID
3668+ if args[0] != nil {
3669+ arg0 = args[0].(port.WebViewID)
3670+ }
3671+ var arg1 string
3672+ if args[1] != nil {
3673+ arg1 = args[1].(string)
3674+ }
3675+ run(
3676+ arg0,
3677+ arg1,
3678+ )
29793679 })
29803680 return _c
29813681 }
29823682
2983-func (_c *MockIdleInhibitor_Close_Call) Return(err error) *MockIdleInhibitor_Close_Call {
3683+func (_c *MockMessageRouter_PostMessage_Call) Return(err error) *MockMessageRouter_PostMessage_Call {
29843684 _c.Call.Return(err)
29853685 return _c
29863686 }
29873687
2988-func (_c *MockIdleInhibitor_Close_Call) RunAndReturn(run func() error) *MockIdleInhibitor_Close_Call {
3688+func (_c *MockMessageRouter_PostMessage_Call) RunAndReturn(run func(webviewID port.WebViewID, message string) error) *MockMessageRouter_PostMessage_Call {
29893689 _c.Call.Return(run)
29903690 return _c
29913691 }
29923692
2993-// Inhibit provides a mock function for the type MockIdleInhibitor
2994-func (_mock *MockIdleInhibitor) Inhibit(ctx context.Context, reason string) error {
2995- ret := _mock.Called(ctx, reason)
2996-
2997- if len(ret) == 0 {
2998- panic("no return value specified for Inhibit")
2999- }
3000-
3001- var r0 error
3002- if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
3003- r0 = returnFunc(ctx, reason)
3004- } else {
3005- r0 = ret.Error(0)
3006- }
3007- return r0
3693+// RegisterHandler provides a mock function for the type MockMessageRouter
3694+func (_mock *MockMessageRouter) RegisterHandler(name string, handler func(message string) (string, error)) {
3695+ _mock.Called(name, handler)
3696+ return
30083697 }
30093698
3010-// MockIdleInhibitor_Inhibit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inhibit'
3011-type MockIdleInhibitor_Inhibit_Call struct {
3699+// MockMessageRouter_RegisterHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterHandler'
3700+type MockMessageRouter_RegisterHandler_Call struct {
30123701 *mock.Call
30133702 }
30143703
3015-// Inhibit is a helper method to define mock.On call
3016-// - ctx context.Context
3017-// - reason string
3018-func (_e *MockIdleInhibitor_Expecter) Inhibit(ctx interface{}, reason interface{}) *MockIdleInhibitor_Inhibit_Call {
3019- return &MockIdleInhibitor_Inhibit_Call{Call: _e.mock.On("Inhibit", ctx, reason)}
3704+// RegisterHandler is a helper method to define mock.On call
3705+// - name string
3706+// - handler func(message string) (string, error)
3707+func (_e *MockMessageRouter_Expecter) RegisterHandler(name interface{}, handler interface{}) *MockMessageRouter_RegisterHandler_Call {
3708+ return &MockMessageRouter_RegisterHandler_Call{Call: _e.mock.On("RegisterHandler", name, handler)}
30203709 }
30213710
3022-func (_c *MockIdleInhibitor_Inhibit_Call) Run(run func(ctx context.Context, reason string)) *MockIdleInhibitor_Inhibit_Call {
3711+func (_c *MockMessageRouter_RegisterHandler_Call) Run(run func(name string, handler func(message string) (string, error))) *MockMessageRouter_RegisterHandler_Call {
30233712 _c.Call.Run(func(args mock.Arguments) {
3024- var arg0 context.Context
3713+ var arg0 string
30253714 if args[0] != nil {
3026- arg0 = args[0].(context.Context)
3715+ arg0 = args[0].(string)
30273716 }
3028- var arg1 string
3717+ var arg1 func(message string) (string, error)
30293718 if args[1] != nil {
3030- arg1 = args[1].(string)
3719+ arg1 = args[1].(func(message string) (string, error))
30313720 }
30323721 run(
30333722 arg0,
@@ -3037,118 +3726,96 @@ func (_c *MockIdleInhibitor_Inhibit_Call) Run(run func(ctx context.Context, reas
30373726 return _c
30383727 }
30393728
3040-func (_c *MockIdleInhibitor_Inhibit_Call) Return(err error) *MockIdleInhibitor_Inhibit_Call {
3041- _c.Call.Return(err)
3729+func (_c *MockMessageRouter_RegisterHandler_Call) Return() *MockMessageRouter_RegisterHandler_Call {
3730+ _c.Call.Return()
30423731 return _c
30433732 }
30443733
3045-func (_c *MockIdleInhibitor_Inhibit_Call) RunAndReturn(run func(ctx context.Context, reason string) error) *MockIdleInhibitor_Inhibit_Call {
3046- _c.Call.Return(run)
3734+func (_c *MockMessageRouter_RegisterHandler_Call) RunAndReturn(run func(name string, handler func(message string) (string, error))) *MockMessageRouter_RegisterHandler_Call {
3735+ _c.Run(run)
30473736 return _c
30483737 }
30493738
3050-// IsInhibited provides a mock function for the type MockIdleInhibitor
3051-func (_mock *MockIdleInhibitor) IsInhibited() bool {
3052- ret := _mock.Called()
3053-
3054- if len(ret) == 0 {
3055- 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)
30663747
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) })
30713749
3072-// IsInhibited is a helper method to define mock.On call
3073-func (_e *MockIdleInhibitor_Expecter) IsInhibited() *MockIdleInhibitor_IsInhibited_Call {
3074- return &MockIdleInhibitor_IsInhibited_Call{Call: _e.mock.On("IsInhibited")}
3750+ return mock
30753751 }
30763752
3077-func (_c *MockIdleInhibitor_IsInhibited_Call) Run(run func()) *MockIdleInhibitor_IsInhibited_Call {
3078- _c.Call.Run(func(args mock.Arguments) {
3079- run()
3080- })
3081- return _c
3753+// MockSettingsApplier is an autogenerated mock type for the SettingsApplier type
3754+type MockSettingsApplier struct {
3755+ mock.Mock
30823756 }
30833757
3084-func (_c *MockIdleInhibitor_IsInhibited_Call) Return(b bool) *MockIdleInhibitor_IsInhibited_Call {
3085- _c.Call.Return(b)
3086- return _c
3758+type MockSettingsApplier_Expecter struct {
3759+ mock *mock.Mock
30873760 }
30883761
3089-func (_c *MockIdleInhibitor_IsInhibited_Call) RunAndReturn(run func() bool) *MockIdleInhibitor_IsInhibited_Call {
3090- _c.Call.Return(run)
3091- return _c
3762+func (_m *MockSettingsApplier) EXPECT() *MockSettingsApplier_Expecter {
3763+ return &MockSettingsApplier_Expecter{mock: &_m.Mock}
30923764 }
30933765
3094-// Uninhibit provides a mock function for the type MockIdleInhibitor
3095-func (_mock *MockIdleInhibitor) Uninhibit(ctx context.Context) error {
3096- ret := _mock.Called(ctx)
3097-
3098- if len(ret) == 0 {
3099- panic("no return value specified for Uninhibit")
3100- }
3101-
3102- var r0 error
3103- if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
3104- r0 = returnFunc(ctx)
3105- } else {
3106- r0 = ret.Error(0)
3107- }
3108- return r0
3766+// ApplyToAll provides a mock function for the type MockSettingsApplier
3767+func (_mock *MockSettingsApplier) ApplyToAll(ctx context.Context, webviews []port.WebView) {
3768+ _mock.Called(ctx, webviews)
3769+ return
31093770 }
31103771
3111-// MockIdleInhibitor_Uninhibit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Uninhibit'
3112-type MockIdleInhibitor_Uninhibit_Call struct {
3772+// MockSettingsApplier_ApplyToAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyToAll'
3773+type MockSettingsApplier_ApplyToAll_Call struct {
31133774 *mock.Call
31143775 }
31153776
3116-// Uninhibit is a helper method to define mock.On call
3777+// ApplyToAll is a helper method to define mock.On call
31173778 // - ctx context.Context
3118-func (_e *MockIdleInhibitor_Expecter) Uninhibit(ctx interface{}) *MockIdleInhibitor_Uninhibit_Call {
3119- return &MockIdleInhibitor_Uninhibit_Call{Call: _e.mock.On("Uninhibit", ctx)}
3779+// - webviews []port.WebView
3780+func (_e *MockSettingsApplier_Expecter) ApplyToAll(ctx interface{}, webviews interface{}) *MockSettingsApplier_ApplyToAll_Call {
3781+ return &MockSettingsApplier_ApplyToAll_Call{Call: _e.mock.On("ApplyToAll", ctx, webviews)}
31203782 }
31213783
3122-func (_c *MockIdleInhibitor_Uninhibit_Call) Run(run func(ctx context.Context)) *MockIdleInhibitor_Uninhibit_Call {
3784+func (_c *MockSettingsApplier_ApplyToAll_Call) Run(run func(ctx context.Context, webviews []port.WebView)) *MockSettingsApplier_ApplyToAll_Call {
31233785 _c.Call.Run(func(args mock.Arguments) {
31243786 var arg0 context.Context
31253787 if args[0] != nil {
31263788 arg0 = args[0].(context.Context)
31273789 }
3790+ var arg1 []port.WebView
3791+ if args[1] != nil {
3792+ arg1 = args[1].([]port.WebView)
3793+ }
31283794 run(
31293795 arg0,
3796+ arg1,
31303797 )
31313798 })
31323799 return _c
31333800 }
31343801
3135-func (_c *MockIdleInhibitor_Uninhibit_Call) Return(err error) *MockIdleInhibitor_Uninhibit_Call {
3136- _c.Call.Return(err)
3802+func (_c *MockSettingsApplier_ApplyToAll_Call) Return() *MockSettingsApplier_ApplyToAll_Call {
3803+ _c.Call.Return()
31373804 return _c
31383805 }
31393806
3140-func (_c *MockIdleInhibitor_Uninhibit_Call) RunAndReturn(run func(ctx context.Context) error) *MockIdleInhibitor_Uninhibit_Call {
3141- _c.Call.Return(run)
3807+func (_c *MockSettingsApplier_ApplyToAll_Call) RunAndReturn(run func(ctx context.Context, webviews []port.WebView)) *MockSettingsApplier_ApplyToAll_Call {
3808+ _c.Run(run)
31423809 return _c
31433810 }
31443811
3145-// 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.
31463813 // The first argument is typically a *testing.T value.
3147-func NewMockKeybindingsProvider(t interface {
3814+func NewMockFilterApplier(t interface {
31483815 mock.TestingT
31493816 Cleanup(func())
3150-}) *MockKeybindingsProvider {
3151- mock := &MockKeybindingsProvider{}
3817+}) *MockFilterApplier {
3818+ mock := &MockFilterApplier{}
31523819 mock.Mock.Test(t)
31533820
31543821 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -3156,226 +3823,218 @@ func NewMockKeybindingsProvider(t interface {
31563823 return mock
31573824 }
31583825
3159-// MockKeybindingsProvider is an autogenerated mock type for the KeybindingsProvider type
3160-type MockKeybindingsProvider struct {
3826+// MockFilterApplier is an autogenerated mock type for the FilterApplier type
3827+type MockFilterApplier struct {
31613828 mock.Mock
31623829 }
31633830
3164-type MockKeybindingsProvider_Expecter struct {
3831+type MockFilterApplier_Expecter struct {
31653832 mock *mock.Mock
31663833 }
31673834
3168-func (_m *MockKeybindingsProvider) EXPECT() *MockKeybindingsProvider_Expecter {
3169- return &MockKeybindingsProvider_Expecter{mock: &_m.Mock}
3835+func (_m *MockFilterApplier) EXPECT() *MockFilterApplier_Expecter {
3836+ return &MockFilterApplier_Expecter{mock: &_m.Mock}
31703837 }
31713838
3172-// CheckConflicts provides a mock function for the type MockKeybindingsProvider
3173-func (_mock *MockKeybindingsProvider) CheckConflicts(ctx context.Context, mode string, action string, keys []string) ([]port.KeybindingConflict, error) {
3174- ret := _mock.Called(ctx, mode, action, keys)
3175-
3176- if len(ret) == 0 {
3177- panic("no return value specified for CheckConflicts")
3178- }
3179-
3180- var r0 []port.KeybindingConflict
3181- var r1 error
3182- if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []string) ([]port.KeybindingConflict, error)); ok {
3183- return returnFunc(ctx, mode, action, keys)
3184- }
3185- if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []string) []port.KeybindingConflict); ok {
3186- r0 = returnFunc(ctx, mode, action, keys)
3187- } else {
3188- if ret.Get(0) != nil {
3189- r0 = ret.Get(0).([]port.KeybindingConflict)
3190- }
3191- }
3192- if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, []string) error); ok {
3193- r1 = returnFunc(ctx, mode, action, keys)
3194- } else {
3195- r1 = ret.Error(1)
3196- }
3197- return r0, r1
3839+// ApplyToAll provides a mock function for the type MockFilterApplier
3840+func (_mock *MockFilterApplier) ApplyToAll(ctx context.Context, webviews []port.WebView) {
3841+ _mock.Called(ctx, webviews)
3842+ return
31983843 }
31993844
3200-// MockKeybindingsProvider_CheckConflicts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckConflicts'
3201-type MockKeybindingsProvider_CheckConflicts_Call struct {
3845+// MockFilterApplier_ApplyToAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyToAll'
3846+type MockFilterApplier_ApplyToAll_Call struct {
32023847 *mock.Call
32033848 }
32043849
3205-// CheckConflicts is a helper method to define mock.On call
3850+// ApplyToAll is a helper method to define mock.On call
32063851 // - ctx context.Context
3207-// - mode string
3208-// - action string
3209-// - keys []string
3210-func (_e *MockKeybindingsProvider_Expecter) CheckConflicts(ctx interface{}, mode interface{}, action interface{}, keys interface{}) *MockKeybindingsProvider_CheckConflicts_Call {
3211- return &MockKeybindingsProvider_CheckConflicts_Call{Call: _e.mock.On("CheckConflicts", ctx, mode, action, keys)}
3852+// - webviews []port.WebView
3853+func (_e *MockFilterApplier_Expecter) ApplyToAll(ctx interface{}, webviews interface{}) *MockFilterApplier_ApplyToAll_Call {
3854+ return &MockFilterApplier_ApplyToAll_Call{Call: _e.mock.On("ApplyToAll", ctx, webviews)}
32123855 }
32133856
3214-func (_c *MockKeybindingsProvider_CheckConflicts_Call) Run(run func(ctx context.Context, mode string, action string, keys []string)) *MockKeybindingsProvider_CheckConflicts_Call {
3857+func (_c *MockFilterApplier_ApplyToAll_Call) Run(run func(ctx context.Context, webviews []port.WebView)) *MockFilterApplier_ApplyToAll_Call {
32153858 _c.Call.Run(func(args mock.Arguments) {
32163859 var arg0 context.Context
32173860 if args[0] != nil {
32183861 arg0 = args[0].(context.Context)
32193862 }
3220- var arg1 string
3863+ var arg1 []port.WebView
32213864 if args[1] != nil {
3222- arg1 = args[1].(string)
3223- }
3224- var arg2 string
3225- if args[2] != nil {
3226- arg2 = args[2].(string)
3227- }
3228- var arg3 []string
3229- if args[3] != nil {
3230- arg3 = args[3].([]string)
3865+ arg1 = args[1].([]port.WebView)
32313866 }
32323867 run(
32333868 arg0,
32343869 arg1,
3235- arg2,
3236- arg3,
32373870 )
32383871 })
32393872 return _c
32403873 }
32413874
3242-func (_c *MockKeybindingsProvider_CheckConflicts_Call) Return(keybindingConflicts []port.KeybindingConflict, err error) *MockKeybindingsProvider_CheckConflicts_Call {
3243- _c.Call.Return(keybindingConflicts, err)
3875+func (_c *MockFilterApplier_ApplyToAll_Call) Return() *MockFilterApplier_ApplyToAll_Call {
3876+ _c.Call.Return()
32443877 return _c
32453878 }
32463879
3247-func (_c *MockKeybindingsProvider_CheckConflicts_Call) RunAndReturn(run func(ctx context.Context, mode string, action string, keys []string) ([]port.KeybindingConflict, error)) *MockKeybindingsProvider_CheckConflicts_Call {
3248- _c.Call.Return(run)
3880+func (_c *MockFilterApplier_ApplyToAll_Call) RunAndReturn(run func(ctx context.Context, webviews []port.WebView)) *MockFilterApplier_ApplyToAll_Call {
3881+ _c.Run(run)
32493882 return _c
32503883 }
32513884
3252-// GetDefaultKeybindings provides a mock function for the type MockKeybindingsProvider
3253-func (_mock *MockKeybindingsProvider) GetDefaultKeybindings(ctx context.Context) (port.KeybindingsConfig, error) {
3254- ret := _mock.Called(ctx)
3885+// 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)
32553893
3256- if len(ret) == 0 {
3257- panic("no return value specified for GetDefaultKeybindings")
3258- }
3894+ t.Cleanup(func() { mock.AssertExpectations(t) })
32593895
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
32763897 }
32773898
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
3900+type MockFaviconDatabase struct {
3901+ mock.Mock
3902+}
3903+
3904+type MockFaviconDatabase_Expecter struct {
3905+ mock *mock.Mock
3906+}
3907+
3908+func (_m *MockFaviconDatabase) EXPECT() *MockFaviconDatabase_Expecter {
3909+ return &MockFaviconDatabase_Expecter{mock: &_m.Mock}
3910+}
3911+
3912+// GetFaviconAsync provides a mock function for the type MockFaviconDatabase
3913+func (_mock *MockFaviconDatabase) GetFaviconAsync(pageURL string, callback func(port.Texture)) {
3914+ _mock.Called(pageURL, callback)
3915+ return
3916+}
3917+
3918+// MockFaviconDatabase_GetFaviconAsync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFaviconAsync'
3919+type MockFaviconDatabase_GetFaviconAsync_Call struct {
32803920 *mock.Call
32813921 }
32823922
3283-// GetDefaultKeybindings is a helper method to define mock.On call
3284-// - ctx context.Context
3285-func (_e *MockKeybindingsProvider_Expecter) GetDefaultKeybindings(ctx interface{}) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
3286- return &MockKeybindingsProvider_GetDefaultKeybindings_Call{Call: _e.mock.On("GetDefaultKeybindings", ctx)}
3923+// GetFaviconAsync is a helper method to define mock.On call
3924+// - pageURL string
3925+// - callback func(port.Texture)
3926+func (_e *MockFaviconDatabase_Expecter) GetFaviconAsync(pageURL interface{}, callback interface{}) *MockFaviconDatabase_GetFaviconAsync_Call {
3927+ return &MockFaviconDatabase_GetFaviconAsync_Call{Call: _e.mock.On("GetFaviconAsync", pageURL, callback)}
32873928 }
32883929
3289-func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
3930+func (_c *MockFaviconDatabase_GetFaviconAsync_Call) Run(run func(pageURL string, callback func(port.Texture))) *MockFaviconDatabase_GetFaviconAsync_Call {
32903931 _c.Call.Run(func(args mock.Arguments) {
3291- var arg0 context.Context
3932+ var arg0 string
32923933 if args[0] != nil {
3293- arg0 = args[0].(context.Context)
3934+ arg0 = args[0].(string)
3935+ }
3936+ var arg1 func(port.Texture)
3937+ if args[1] != nil {
3938+ arg1 = args[1].(func(port.Texture))
32943939 }
32953940 run(
32963941 arg0,
3942+ arg1,
32973943 )
32983944 })
32993945 return _c
33003946 }
33013947
3302-func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) Return(keybindingsConfig port.KeybindingsConfig, err error) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
3303- _c.Call.Return(keybindingsConfig, err)
3948+func (_c *MockFaviconDatabase_GetFaviconAsync_Call) Return() *MockFaviconDatabase_GetFaviconAsync_Call {
3949+ _c.Call.Return()
33043950 return _c
33053951 }
33063952
3307-func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) RunAndReturn(run func(ctx context.Context) (port.KeybindingsConfig, error)) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
3308- _c.Call.Return(run)
3953+func (_c *MockFaviconDatabase_GetFaviconAsync_Call) RunAndReturn(run func(pageURL string, callback func(port.Texture))) *MockFaviconDatabase_GetFaviconAsync_Call {
3954+ _c.Run(run)
33093955 return _c
33103956 }
33113957
3312-// GetKeybindings provides a mock function for the type MockKeybindingsProvider
3313-func (_mock *MockKeybindingsProvider) GetKeybindings(ctx context.Context) (port.KeybindingsConfig, error) {
3314- ret := _mock.Called(ctx)
3958+// 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)
33153966
3316- if len(ret) == 0 {
3317- panic("no return value specified for GetKeybindings")
3318- }
3967+ t.Cleanup(func() { mock.AssertExpectations(t) })
33193968
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
33363970 }
33373971
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
3973+type MockScriptRefresher struct {
3974+ mock.Mock
3975+}
3976+
3977+type MockScriptRefresher_Expecter struct {
3978+ mock *mock.Mock
3979+}
3980+
3981+func (_m *MockScriptRefresher) EXPECT() *MockScriptRefresher_Expecter {
3982+ return &MockScriptRefresher_Expecter{mock: &_m.Mock}
3983+}
3984+
3985+// RefreshAll provides a mock function for the type MockScriptRefresher
3986+func (_mock *MockScriptRefresher) RefreshAll(ctx context.Context, webviews []port.WebView) {
3987+ _mock.Called(ctx, webviews)
3988+ return
3989+}
3990+
3991+// MockScriptRefresher_RefreshAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshAll'
3992+type MockScriptRefresher_RefreshAll_Call struct {
33403993 *mock.Call
33413994 }
33423995
3343-// GetKeybindings is a helper method to define mock.On call
3996+// RefreshAll is a helper method to define mock.On call
33443997 // - ctx context.Context
3345-func (_e *MockKeybindingsProvider_Expecter) GetKeybindings(ctx interface{}) *MockKeybindingsProvider_GetKeybindings_Call {
3346- return &MockKeybindingsProvider_GetKeybindings_Call{Call: _e.mock.On("GetKeybindings", ctx)}
3998+// - webviews []port.WebView
3999+func (_e *MockScriptRefresher_Expecter) RefreshAll(ctx interface{}, webviews interface{}) *MockScriptRefresher_RefreshAll_Call {
4000+ return &MockScriptRefresher_RefreshAll_Call{Call: _e.mock.On("RefreshAll", ctx, webviews)}
33474001 }
33484002
3349-func (_c *MockKeybindingsProvider_GetKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsProvider_GetKeybindings_Call {
4003+func (_c *MockScriptRefresher_RefreshAll_Call) Run(run func(ctx context.Context, webviews []port.WebView)) *MockScriptRefresher_RefreshAll_Call {
33504004 _c.Call.Run(func(args mock.Arguments) {
33514005 var arg0 context.Context
33524006 if args[0] != nil {
33534007 arg0 = args[0].(context.Context)
33544008 }
4009+ var arg1 []port.WebView
4010+ if args[1] != nil {
4011+ arg1 = args[1].([]port.WebView)
4012+ }
33554013 run(
33564014 arg0,
4015+ arg1,
33574016 )
33584017 })
33594018 return _c
33604019 }
33614020
3362-func (_c *MockKeybindingsProvider_GetKeybindings_Call) Return(keybindingsConfig port.KeybindingsConfig, err error) *MockKeybindingsProvider_GetKeybindings_Call {
3363- _c.Call.Return(keybindingsConfig, err)
4021+func (_c *MockScriptRefresher_RefreshAll_Call) Return() *MockScriptRefresher_RefreshAll_Call {
4022+ _c.Call.Return()
33644023 return _c
33654024 }
33664025
3367-func (_c *MockKeybindingsProvider_GetKeybindings_Call) RunAndReturn(run func(ctx context.Context) (port.KeybindingsConfig, error)) *MockKeybindingsProvider_GetKeybindings_Call {
3368- _c.Call.Return(run)
4026+func (_c *MockScriptRefresher_RefreshAll_Call) RunAndReturn(run func(ctx context.Context, webviews []port.WebView)) *MockScriptRefresher_RefreshAll_Call {
4027+ _c.Run(run)
33694028 return _c
33704029 }
33714030
3372-// 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.
33734032 // The first argument is typically a *testing.T value.
3374-func NewMockKeybindingsSaver(t interface {
4033+func NewMockNativeWidgetProvider(t interface {
33754034 mock.TestingT
33764035 Cleanup(func())
3377-}) *MockKeybindingsSaver {
3378- mock := &MockKeybindingsSaver{}
4036+}) *MockNativeWidgetProvider {
4037+ mock := &MockNativeWidgetProvider{}
33794038 mock.Mock.Test(t)
33804039
33814040 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -3383,232 +4042,237 @@ func NewMockKeybindingsSaver(t interface {
33834042 return mock
33844043 }
33854044
3386-// MockKeybindingsSaver is an autogenerated mock type for the KeybindingsSaver type
3387-type MockKeybindingsSaver struct {
4045+// MockNativeWidgetProvider is an autogenerated mock type for the NativeWidgetProvider type
4046+type MockNativeWidgetProvider struct {
33884047 mock.Mock
33894048 }
33904049
3391-type MockKeybindingsSaver_Expecter struct {
4050+type MockNativeWidgetProvider_Expecter struct {
33924051 mock *mock.Mock
33934052 }
33944053
3395-func (_m *MockKeybindingsSaver) EXPECT() *MockKeybindingsSaver_Expecter {
3396- return &MockKeybindingsSaver_Expecter{mock: &_m.Mock}
4054+func (_m *MockNativeWidgetProvider) EXPECT() *MockNativeWidgetProvider_Expecter {
4055+ return &MockNativeWidgetProvider_Expecter{mock: &_m.Mock}
33974056 }
33984057
3399-// ResetAllKeybindings provides a mock function for the type MockKeybindingsSaver
3400-func (_mock *MockKeybindingsSaver) ResetAllKeybindings(ctx context.Context) error {
3401- ret := _mock.Called(ctx)
4058+// NativeWidget provides a mock function for the type MockNativeWidgetProvider
4059+func (_mock *MockNativeWidgetProvider) NativeWidget() uintptr {
4060+ ret := _mock.Called()
34024061
34034062 if len(ret) == 0 {
3404- panic("no return value specified for ResetAllKeybindings")
4063+ panic("no return value specified for NativeWidget")
34054064 }
34064065
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()
34104069 } else {
3411- r0 = ret.Error(0)
4070+ r0 = ret.Get(0).(uintptr)
34124071 }
34134072 return r0
34144073 }
34154074
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 {
34184077 *mock.Call
34194078 }
34204079
3421-// ResetAllKeybindings is a helper method to define mock.On call
3422-// - ctx context.Context
3423-func (_e *MockKeybindingsSaver_Expecter) ResetAllKeybindings(ctx interface{}) *MockKeybindingsSaver_ResetAllKeybindings_Call {
3424- return &MockKeybindingsSaver_ResetAllKeybindings_Call{Call: _e.mock.On("ResetAllKeybindings", ctx)}
4080+// NativeWidget is a helper method to define mock.On call
4081+func (_e *MockNativeWidgetProvider_Expecter) NativeWidget() *MockNativeWidgetProvider_NativeWidget_Call {
4082+ return &MockNativeWidgetProvider_NativeWidget_Call{Call: _e.mock.On("NativeWidget")}
34254083 }
34264084
3427-func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsSaver_ResetAllKeybindings_Call {
4085+func (_c *MockNativeWidgetProvider_NativeWidget_Call) Run(run func()) *MockNativeWidgetProvider_NativeWidget_Call {
34284086 _c.Call.Run(func(args mock.Arguments) {
3429- var arg0 context.Context
3430- if args[0] != nil {
3431- arg0 = args[0].(context.Context)
3432- }
3433- run(
3434- arg0,
3435- )
4087+ run()
34364088 })
34374089 return _c
34384090 }
34394091
3440-func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) Return(err error) *MockKeybindingsSaver_ResetAllKeybindings_Call {
3441- _c.Call.Return(err)
4092+func (_c *MockNativeWidgetProvider_NativeWidget_Call) Return(v uintptr) *MockNativeWidgetProvider_NativeWidget_Call {
4093+ _c.Call.Return(v)
34424094 return _c
34434095 }
34444096
3445-func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) RunAndReturn(run func(ctx context.Context) error) *MockKeybindingsSaver_ResetAllKeybindings_Call {
4097+func (_c *MockNativeWidgetProvider_NativeWidget_Call) RunAndReturn(run func() uintptr) *MockNativeWidgetProvider_NativeWidget_Call {
34464098 _c.Call.Return(run)
34474099 return _c
34484100 }
34494101
3450-// ResetKeybinding provides a mock function for the type MockKeybindingsSaver
3451-func (_mock *MockKeybindingsSaver) ResetKeybinding(ctx context.Context, req port.ResetKeybindingRequest) error {
3452- ret := _mock.Called(ctx, req)
4102+// 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)
34534110
3454- if len(ret) == 0 {
3455- panic("no return value specified for ResetKeybinding")
3456- }
4111+ t.Cleanup(func() { mock.AssertExpectations(t) })
34574112
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
34654114 }
34664115
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
4117+type MockFaviconService struct {
4118+ mock.Mock
4119+}
4120+
4121+type MockFaviconService_Expecter struct {
4122+ mock *mock.Mock
4123+}
4124+
4125+func (_m *MockFaviconService) EXPECT() *MockFaviconService_Expecter {
4126+ return &MockFaviconService_Expecter{mock: &_m.Mock}
4127+}
4128+
4129+// Close provides a mock function for the type MockFaviconService
4130+func (_mock *MockFaviconService) Close() {
4131+ _mock.Called()
4132+ return
4133+}
4134+
4135+// MockFaviconService_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
4136+type MockFaviconService_Close_Call struct {
34694137 *mock.Call
34704138 }
34714139
3472-// ResetKeybinding is a helper method to define mock.On call
3473-// - ctx context.Context
3474-// - req port.ResetKeybindingRequest
3475-func (_e *MockKeybindingsSaver_Expecter) ResetKeybinding(ctx interface{}, req interface{}) *MockKeybindingsSaver_ResetKeybinding_Call {
3476- return &MockKeybindingsSaver_ResetKeybinding_Call{Call: _e.mock.On("ResetKeybinding", ctx, req)}
4140+// Close is a helper method to define mock.On call
4141+func (_e *MockFaviconService_Expecter) Close() *MockFaviconService_Close_Call {
4142+ return &MockFaviconService_Close_Call{Call: _e.mock.On("Close")}
34774143 }
34784144
3479-func (_c *MockKeybindingsSaver_ResetKeybinding_Call) Run(run func(ctx context.Context, req port.ResetKeybindingRequest)) *MockKeybindingsSaver_ResetKeybinding_Call {
4145+func (_c *MockFaviconService_Close_Call) Run(run func()) *MockFaviconService_Close_Call {
34804146 _c.Call.Run(func(args mock.Arguments) {
3481- var arg0 context.Context
3482- if args[0] != nil {
3483- arg0 = args[0].(context.Context)
3484- }
3485- var arg1 port.ResetKeybindingRequest
3486- if args[1] != nil {
3487- arg1 = args[1].(port.ResetKeybindingRequest)
3488- }
3489- run(
3490- arg0,
3491- arg1,
3492- )
4147+ run()
34934148 })
34944149 return _c
34954150 }
34964151
3497-func (_c *MockKeybindingsSaver_ResetKeybinding_Call) Return(err error) *MockKeybindingsSaver_ResetKeybinding_Call {
3498- _c.Call.Return(err)
4152+func (_c *MockFaviconService_Close_Call) Return() *MockFaviconService_Close_Call {
4153+ _c.Call.Return()
34994154 return _c
35004155 }
35014156
3502-func (_c *MockKeybindingsSaver_ResetKeybinding_Call) RunAndReturn(run func(ctx context.Context, req port.ResetKeybindingRequest) error) *MockKeybindingsSaver_ResetKeybinding_Call {
3503- _c.Call.Return(run)
4157+func (_c *MockFaviconService_Close_Call) RunAndReturn(run func()) *MockFaviconService_Close_Call {
4158+ _c.Run(run)
35044159 return _c
35054160 }
35064161
3507-// SetKeybinding provides a mock function for the type MockKeybindingsSaver
3508-func (_mock *MockKeybindingsSaver) SetKeybinding(ctx context.Context, req port.SetKeybindingRequest) error {
3509- ret := _mock.Called(ctx, req)
4162+// DiskPathPNG provides a mock function for the type MockFaviconService
4163+func (_mock *MockFaviconService) DiskPathPNG(domain string) string {
4164+ ret := _mock.Called(domain)
35104165
35114166 if len(ret) == 0 {
3512- panic("no return value specified for SetKeybinding")
4167+ panic("no return value specified for DiskPathPNG")
35134168 }
35144169
3515- var r0 error
3516- if returnFunc, ok := ret.Get(0).(func(context.Context, port.SetKeybindingRequest) error); ok {
3517- r0 = returnFunc(ctx, req)
4170+ var r0 string
4171+ if returnFunc, ok := ret.Get(0).(func(string) string); ok {
4172+ r0 = returnFunc(domain)
35184173 } else {
3519- r0 = ret.Error(0)
4174+ r0 = ret.Get(0).(string)
35204175 }
35214176 return r0
35224177 }
35234178
3524-// MockKeybindingsSaver_SetKeybinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKeybinding'
3525-type MockKeybindingsSaver_SetKeybinding_Call struct {
4179+// MockFaviconService_DiskPathPNG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiskPathPNG'
4180+type MockFaviconService_DiskPathPNG_Call struct {
35264181 *mock.Call
35274182 }
35284183
3529-// SetKeybinding is a helper method to define mock.On call
3530-// - ctx context.Context
3531-// - req port.SetKeybindingRequest
3532-func (_e *MockKeybindingsSaver_Expecter) SetKeybinding(ctx interface{}, req interface{}) *MockKeybindingsSaver_SetKeybinding_Call {
3533- return &MockKeybindingsSaver_SetKeybinding_Call{Call: _e.mock.On("SetKeybinding", ctx, req)}
4184+// DiskPathPNG is a helper method to define mock.On call
4185+// - domain string
4186+func (_e *MockFaviconService_Expecter) DiskPathPNG(domain interface{}) *MockFaviconService_DiskPathPNG_Call {
4187+ return &MockFaviconService_DiskPathPNG_Call{Call: _e.mock.On("DiskPathPNG", domain)}
35344188 }
35354189
3536-func (_c *MockKeybindingsSaver_SetKeybinding_Call) Run(run func(ctx context.Context, req port.SetKeybindingRequest)) *MockKeybindingsSaver_SetKeybinding_Call {
4190+func (_c *MockFaviconService_DiskPathPNG_Call) Run(run func(domain string)) *MockFaviconService_DiskPathPNG_Call {
35374191 _c.Call.Run(func(args mock.Arguments) {
3538- var arg0 context.Context
4192+ var arg0 string
35394193 if args[0] != nil {
3540- arg0 = args[0].(context.Context)
3541- }
3542- var arg1 port.SetKeybindingRequest
3543- if args[1] != nil {
3544- arg1 = args[1].(port.SetKeybindingRequest)
4194+ arg0 = args[0].(string)
35454195 }
35464196 run(
35474197 arg0,
3548- arg1,
35494198 )
35504199 })
35514200 return _c
35524201 }
35534202
3554-func (_c *MockKeybindingsSaver_SetKeybinding_Call) Return(err error) *MockKeybindingsSaver_SetKeybinding_Call {
3555- _c.Call.Return(err)
4203+func (_c *MockFaviconService_DiskPathPNG_Call) Return(s string) *MockFaviconService_DiskPathPNG_Call {
4204+ _c.Call.Return(s)
35564205 return _c
35574206 }
35584207
3559-func (_c *MockKeybindingsSaver_SetKeybinding_Call) RunAndReturn(run func(ctx context.Context, req port.SetKeybindingRequest) error) *MockKeybindingsSaver_SetKeybinding_Call {
4208+func (_c *MockFaviconService_DiskPathPNG_Call) RunAndReturn(run func(domain string) string) *MockFaviconService_DiskPathPNG_Call {
35604209 _c.Call.Return(run)
35614210 return _c
35624211 }
35634212
3564-// 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.
3566-func NewMockPermissionDialogPresenter(t interface {
3567- mock.TestingT
3568- Cleanup(func())
3569-}) *MockPermissionDialogPresenter {
3570- mock := &MockPermissionDialogPresenter{}
3571- mock.Mock.Test(t)
4213+// EnsureCacheDir provides a mock function for the type MockFaviconService
4214+func (_mock *MockFaviconService) EnsureCacheDir() error {
4215+ ret := _mock.Called()
35724216
3573- t.Cleanup(func() { mock.AssertExpectations(t) })
4217+ if len(ret) == 0 {
4218+ panic("no return value specified for EnsureCacheDir")
4219+ }
35744220
3575- return mock
4221+ var r0 error
4222+ if returnFunc, ok := ret.Get(0).(func() error); ok {
4223+ r0 = returnFunc()
4224+ } else {
4225+ r0 = ret.Error(0)
4226+ }
4227+ return r0
35764228 }
35774229
3578-// MockPermissionDialogPresenter is an autogenerated mock type for the PermissionDialogPresenter type
3579-type MockPermissionDialogPresenter struct {
3580- mock.Mock
4230+// MockFaviconService_EnsureCacheDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureCacheDir'
4231+type MockFaviconService_EnsureCacheDir_Call struct {
4232+ *mock.Call
35814233 }
35824234
3583-type MockPermissionDialogPresenter_Expecter struct {
3584- mock *mock.Mock
4235+// EnsureCacheDir is a helper method to define mock.On call
4236+func (_e *MockFaviconService_Expecter) EnsureCacheDir() *MockFaviconService_EnsureCacheDir_Call {
4237+ return &MockFaviconService_EnsureCacheDir_Call{Call: _e.mock.On("EnsureCacheDir")}
35854238 }
35864239
3587-func (_m *MockPermissionDialogPresenter) EXPECT() *MockPermissionDialogPresenter_Expecter {
3588- return &MockPermissionDialogPresenter_Expecter{mock: &_m.Mock}
4240+func (_c *MockFaviconService_EnsureCacheDir_Call) Run(run func()) *MockFaviconService_EnsureCacheDir_Call {
4241+ _c.Call.Run(func(args mock.Arguments) {
4242+ run()
4243+ })
4244+ return _c
35894245 }
35904246
3591-// ShowPermissionDialog provides a mock function for the type MockPermissionDialogPresenter
3592-func (_mock *MockPermissionDialogPresenter) ShowPermissionDialog(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult)) {
3593- _mock.Called(ctx, origin, permTypes, callback)
4247+func (_c *MockFaviconService_EnsureCacheDir_Call) Return(err error) *MockFaviconService_EnsureCacheDir_Call {
4248+ _c.Call.Return(err)
4249+ return _c
4250+}
4251+
4252+func (_c *MockFaviconService_EnsureCacheDir_Call) RunAndReturn(run func() error) *MockFaviconService_EnsureCacheDir_Call {
4253+ _c.Call.Return(run)
4254+ return _c
4255+}
4256+
4257+// EnsureDiskCache provides a mock function for the type MockFaviconService
4258+func (_mock *MockFaviconService) EnsureDiskCache(ctx context.Context, domain string) {
4259+ _mock.Called(ctx, domain)
35944260 return
35954261 }
35964262
3597-// 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 {
35994265 *mock.Call
36004266 }
36014267
3602-// ShowPermissionDialog is a helper method to define mock.On call
4268+// EnsureDiskCache is a helper method to define mock.On call
36034269 // - ctx context.Context
3604-// - origin string
3605-// - permTypes []entity.PermissionType
3606-// - callback func(result port.PermissionDialogResult)
3607-func (_e *MockPermissionDialogPresenter_Expecter) ShowPermissionDialog(ctx interface{}, origin interface{}, permTypes interface{}, callback interface{}) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
3608- return &MockPermissionDialogPresenter_ShowPermissionDialog_Call{Call: _e.mock.On("ShowPermissionDialog", ctx, origin, permTypes, callback)}
4270+// - domain string
4271+func (_e *MockFaviconService_Expecter) EnsureDiskCache(ctx interface{}, domain interface{}) *MockFaviconService_EnsureDiskCache_Call {
4272+ return &MockFaviconService_EnsureDiskCache_Call{Call: _e.mock.On("EnsureDiskCache", ctx, domain)}
36094273 }
36104274
3611-func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Run(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
4275+func (_c *MockFaviconService_EnsureDiskCache_Call) Run(run func(ctx context.Context, domain string)) *MockFaviconService_EnsureDiskCache_Call {
36124276 _c.Call.Run(func(args mock.Arguments) {
36134277 var arg0 context.Context
36144278 if args[0] != nil {
@@ -3618,92 +4282,55 @@ func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Run(run func(
36184282 if args[1] != nil {
36194283 arg1 = args[1].(string)
36204284 }
3621- var arg2 []entity.PermissionType
3622- if args[2] != nil {
3623- arg2 = args[2].([]entity.PermissionType)
3624- }
3625- var arg3 func(result port.PermissionDialogResult)
3626- if args[3] != nil {
3627- arg3 = args[3].(func(result port.PermissionDialogResult))
3628- }
36294285 run(
36304286 arg0,
36314287 arg1,
3632- arg2,
3633- arg3,
36344288 )
36354289 })
36364290 return _c
36374291 }
36384292
3639-func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Return() *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
4293+func (_c *MockFaviconService_EnsureDiskCache_Call) Return() *MockFaviconService_EnsureDiskCache_Call {
36404294 _c.Call.Return()
36414295 return _c
36424296 }
36434297
3644-func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) RunAndReturn(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
4298+func (_c *MockFaviconService_EnsureDiskCache_Call) RunAndReturn(run func(ctx context.Context, domain string)) *MockFaviconService_EnsureDiskCache_Call {
36454299 _c.Run(run)
36464300 return _c
36474301 }
36484302
3649-// 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
3664-type MockPermissionRepository struct {
3665- mock.Mock
3666-}
3667-
3668-type MockPermissionRepository_Expecter struct {
3669- mock *mock.Mock
3670-}
3671-
3672-func (_m *MockPermissionRepository) EXPECT() *MockPermissionRepository_Expecter {
3673- return &MockPermissionRepository_Expecter{mock: &_m.Mock}
3674-}
3675-
3676-// Delete provides a mock function for the type MockPermissionRepository
3677-func (_mock *MockPermissionRepository) Delete(ctx context.Context, origin string, permType entity.PermissionType) error {
3678- ret := _mock.Called(ctx, origin, permType)
4303+// EnsureSizedPNG provides a mock function for the type MockFaviconService
4304+func (_mock *MockFaviconService) EnsureSizedPNG(ctx context.Context, domain string, size int) error {
4305+ ret := _mock.Called(ctx, domain, size)
36794306
36804307 if len(ret) == 0 {
3681- panic("no return value specified for Delete")
4308+ panic("no return value specified for EnsureSizedPNG")
36824309 }
36834310
36844311 var r0 error
3685- if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) error); ok {
3686- r0 = returnFunc(ctx, origin, permType)
4312+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, int) error); ok {
4313+ r0 = returnFunc(ctx, domain, size)
36874314 } else {
36884315 r0 = ret.Error(0)
36894316 }
36904317 return r0
36914318 }
36924319
3693-// MockPermissionRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
3694-type MockPermissionRepository_Delete_Call struct {
4320+// MockFaviconService_EnsureSizedPNG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureSizedPNG'
4321+type MockFaviconService_EnsureSizedPNG_Call struct {
36954322 *mock.Call
36964323 }
36974324
3698-// Delete is a helper method to define mock.On call
4325+// EnsureSizedPNG is a helper method to define mock.On call
36994326 // - ctx context.Context
3700-// - origin string
3701-// - permType entity.PermissionType
3702-func (_e *MockPermissionRepository_Expecter) Delete(ctx interface{}, origin interface{}, permType interface{}) *MockPermissionRepository_Delete_Call {
3703- return &MockPermissionRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, origin, permType)}
4327+// - domain string
4328+// - size int
4329+func (_e *MockFaviconService_Expecter) EnsureSizedPNG(ctx interface{}, domain interface{}, size interface{}) *MockFaviconService_EnsureSizedPNG_Call {
4330+ return &MockFaviconService_EnsureSizedPNG_Call{Call: _e.mock.On("EnsureSizedPNG", ctx, domain, size)}
37044331 }
37054332
3706-func (_c *MockPermissionRepository_Delete_Call) Run(run func(ctx context.Context, origin string, permType entity.PermissionType)) *MockPermissionRepository_Delete_Call {
4333+func (_c *MockFaviconService_EnsureSizedPNG_Call) Run(run func(ctx context.Context, domain string, size int)) *MockFaviconService_EnsureSizedPNG_Call {
37074334 _c.Call.Run(func(args mock.Arguments) {
37084335 var arg0 context.Context
37094336 if args[0] != nil {
@@ -3713,9 +4340,9 @@ func (_c *MockPermissionRepository_Delete_Call) Run(run func(ctx context.Context
37134340 if args[1] != nil {
37144341 arg1 = args[1].(string)
37154342 }
3716- var arg2 entity.PermissionType
4343+ var arg2 int
37174344 if args[2] != nil {
3718- arg2 = args[2].(entity.PermissionType)
4345+ arg2 = args[2].(int)
37194346 }
37204347 run(
37214348 arg0,
@@ -3726,58 +4353,57 @@ func (_c *MockPermissionRepository_Delete_Call) Run(run func(ctx context.Context
37264353 return _c
37274354 }
37284355
3729-func (_c *MockPermissionRepository_Delete_Call) Return(err error) *MockPermissionRepository_Delete_Call {
4356+func (_c *MockFaviconService_EnsureSizedPNG_Call) Return(err error) *MockFaviconService_EnsureSizedPNG_Call {
37304357 _c.Call.Return(err)
37314358 return _c
37324359 }
37334360
3734-func (_c *MockPermissionRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, origin string, permType entity.PermissionType) error) *MockPermissionRepository_Delete_Call {
4361+func (_c *MockFaviconService_EnsureSizedPNG_Call) RunAndReturn(run func(ctx context.Context, domain string, size int) error) *MockFaviconService_EnsureSizedPNG_Call {
37354362 _c.Call.Return(run)
37364363 return _c
37374364 }
37384365
3739-// Get provides a mock function for the type MockPermissionRepository
3740-func (_mock *MockPermissionRepository) Get(ctx context.Context, origin string, permType entity.PermissionType) (*entity.PermissionRecord, error) {
3741- ret := _mock.Called(ctx, origin, permType)
4366+// Get provides a mock function for the type MockFaviconService
4367+func (_mock *MockFaviconService) Get(ctx context.Context, domain string) ([]byte, error) {
4368+ ret := _mock.Called(ctx, domain)
37424369
37434370 if len(ret) == 0 {
37444371 panic("no return value specified for Get")
37454372 }
37464373
3747- var r0 *entity.PermissionRecord
4374+ var r0 []byte
37484375 var r1 error
3749- if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) (*entity.PermissionRecord, error)); ok {
3750- return returnFunc(ctx, origin, permType)
4376+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]byte, error)); ok {
4377+ return returnFunc(ctx, domain)
37514378 }
3752- if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) *entity.PermissionRecord); ok {
3753- r0 = returnFunc(ctx, origin, permType)
4379+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) []byte); ok {
4380+ r0 = returnFunc(ctx, domain)
37544381 } else {
37554382 if ret.Get(0) != nil {
3756- r0 = ret.Get(0).(*entity.PermissionRecord)
4383+ r0 = ret.Get(0).([]byte)
37574384 }
37584385 }
3759- if returnFunc, ok := ret.Get(1).(func(context.Context, string, entity.PermissionType) error); ok {
3760- r1 = returnFunc(ctx, origin, permType)
4386+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
4387+ r1 = returnFunc(ctx, domain)
37614388 } else {
37624389 r1 = ret.Error(1)
37634390 }
37644391 return r0, r1
37654392 }
37664393
3767-// MockPermissionRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
3768-type MockPermissionRepository_Get_Call struct {
4394+// MockFaviconService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
4395+type MockFaviconService_Get_Call struct {
37694396 *mock.Call
37704397 }
37714398
37724399 // Get is a helper method to define mock.On call
37734400 // - ctx context.Context
3774-// - origin string
3775-// - permType entity.PermissionType
3776-func (_e *MockPermissionRepository_Expecter) Get(ctx interface{}, origin interface{}, permType interface{}) *MockPermissionRepository_Get_Call {
3777- return &MockPermissionRepository_Get_Call{Call: _e.mock.On("Get", ctx, origin, permType)}
4401+// - domain string
4402+func (_e *MockFaviconService_Expecter) Get(ctx interface{}, domain interface{}) *MockFaviconService_Get_Call {
4403+ return &MockFaviconService_Get_Call{Call: _e.mock.On("Get", ctx, domain)}
37784404 }
37794405
3780-func (_c *MockPermissionRepository_Get_Call) Run(run func(ctx context.Context, origin string, permType entity.PermissionType)) *MockPermissionRepository_Get_Call {
4406+func (_c *MockFaviconService_Get_Call) Run(run func(ctx context.Context, domain string)) *MockFaviconService_Get_Call {
37814407 _c.Call.Run(func(args mock.Arguments) {
37824408 var arg0 context.Context
37834409 if args[0] != nil {
@@ -3787,268 +4413,201 @@ func (_c *MockPermissionRepository_Get_Call) Run(run func(ctx context.Context, o
37874413 if args[1] != nil {
37884414 arg1 = args[1].(string)
37894415 }
3790- var arg2 entity.PermissionType
3791- if args[2] != nil {
3792- arg2 = args[2].(entity.PermissionType)
3793- }
37944416 run(
37954417 arg0,
37964418 arg1,
3797- arg2,
37984419 )
37994420 })
38004421 return _c
38014422 }
38024423
3803-func (_c *MockPermissionRepository_Get_Call) Return(permissionRecord *entity.PermissionRecord, err error) *MockPermissionRepository_Get_Call {
3804- _c.Call.Return(permissionRecord, err)
4424+func (_c *MockFaviconService_Get_Call) Return(bytes []byte, err error) *MockFaviconService_Get_Call {
4425+ _c.Call.Return(bytes, err)
38054426 return _c
38064427 }
38074428
3808-func (_c *MockPermissionRepository_Get_Call) RunAndReturn(run func(ctx context.Context, origin string, permType entity.PermissionType) (*entity.PermissionRecord, error)) *MockPermissionRepository_Get_Call {
4429+func (_c *MockFaviconService_Get_Call) RunAndReturn(run func(ctx context.Context, domain string) ([]byte, error)) *MockFaviconService_Get_Call {
38094430 _c.Call.Return(run)
38104431 return _c
38114432 }
38124433
3813-// GetAll provides a mock function for the type MockPermissionRepository
3814-func (_mock *MockPermissionRepository) GetAll(ctx context.Context, origin string) ([]*entity.PermissionRecord, error) {
3815- ret := _mock.Called(ctx, origin)
4434+// GetCached provides a mock function for the type MockFaviconService
4435+func (_mock *MockFaviconService) GetCached(domain string) ([]byte, bool) {
4436+ ret := _mock.Called(domain)
38164437
38174438 if len(ret) == 0 {
3818- panic("no return value specified for GetAll")
4439+ panic("no return value specified for GetCached")
38194440 }
38204441
3821- var r0 []*entity.PermissionRecord
3822- var r1 error
3823- if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]*entity.PermissionRecord, error)); ok {
3824- return returnFunc(ctx, origin)
4442+ var r0 []byte
4443+ var r1 bool
4444+ if returnFunc, ok := ret.Get(0).(func(string) ([]byte, bool)); ok {
4445+ return returnFunc(domain)
38254446 }
3826- if returnFunc, ok := ret.Get(0).(func(context.Context, string) []*entity.PermissionRecord); ok {
3827- r0 = returnFunc(ctx, origin)
4447+ if returnFunc, ok := ret.Get(0).(func(string) []byte); ok {
4448+ r0 = returnFunc(domain)
38284449 } else {
38294450 if ret.Get(0) != nil {
3830- r0 = ret.Get(0).([]*entity.PermissionRecord)
4451+ r0 = ret.Get(0).([]byte)
38314452 }
38324453 }
3833- if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
3834- r1 = returnFunc(ctx, origin)
4454+ if returnFunc, ok := ret.Get(1).(func(string) bool); ok {
4455+ r1 = returnFunc(domain)
38354456 } else {
3836- r1 = ret.Error(1)
4457+ r1 = ret.Get(1).(bool)
38374458 }
38384459 return r0, r1
38394460 }
38404461
3841-// MockPermissionRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
3842-type MockPermissionRepository_GetAll_Call struct {
4462+// MockFaviconService_GetCached_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCached'
4463+type MockFaviconService_GetCached_Call struct {
38434464 *mock.Call
38444465 }
38454466
3846-// GetAll is a helper method to define mock.On call
3847-// - ctx context.Context
3848-// - origin string
3849-func (_e *MockPermissionRepository_Expecter) GetAll(ctx interface{}, origin interface{}) *MockPermissionRepository_GetAll_Call {
3850- return &MockPermissionRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx, origin)}
4467+// GetCached is a helper method to define mock.On call
4468+// - domain string
4469+func (_e *MockFaviconService_Expecter) GetCached(domain interface{}) *MockFaviconService_GetCached_Call {
4470+ return &MockFaviconService_GetCached_Call{Call: _e.mock.On("GetCached", domain)}
38514471 }
38524472
3853-func (_c *MockPermissionRepository_GetAll_Call) Run(run func(ctx context.Context, origin string)) *MockPermissionRepository_GetAll_Call {
4473+func (_c *MockFaviconService_GetCached_Call) Run(run func(domain string)) *MockFaviconService_GetCached_Call {
38544474 _c.Call.Run(func(args mock.Arguments) {
3855- var arg0 context.Context
4475+ var arg0 string
38564476 if args[0] != nil {
3857- arg0 = args[0].(context.Context)
3858- }
3859- var arg1 string
3860- if args[1] != nil {
3861- arg1 = args[1].(string)
4477+ arg0 = args[0].(string)
38624478 }
38634479 run(
38644480 arg0,
3865- arg1,
38664481 )
38674482 })
38684483 return _c
38694484 }
38704485
3871-func (_c *MockPermissionRepository_GetAll_Call) Return(permissionRecords []*entity.PermissionRecord, err error) *MockPermissionRepository_GetAll_Call {
3872- _c.Call.Return(permissionRecords, err)
4486+func (_c *MockFaviconService_GetCached_Call) Return(bytes []byte, b bool) *MockFaviconService_GetCached_Call {
4487+ _c.Call.Return(bytes, b)
38734488 return _c
38744489 }
38754490
3876-func (_c *MockPermissionRepository_GetAll_Call) RunAndReturn(run func(ctx context.Context, origin string) ([]*entity.PermissionRecord, error)) *MockPermissionRepository_GetAll_Call {
4491+func (_c *MockFaviconService_GetCached_Call) RunAndReturn(run func(domain string) ([]byte, bool)) *MockFaviconService_GetCached_Call {
38774492 _c.Call.Return(run)
38784493 return _c
38794494 }
38804495
3881-// Set provides a mock function for the type MockPermissionRepository
3882-func (_mock *MockPermissionRepository) Set(ctx context.Context, record *entity.PermissionRecord) error {
3883- ret := _mock.Called(ctx, record)
4496+// HasPNGOnDisk provides a mock function for the type MockFaviconService
4497+func (_mock *MockFaviconService) HasPNGOnDisk(domain string) bool {
4498+ ret := _mock.Called(domain)
38844499
38854500 if len(ret) == 0 {
3886- panic("no return value specified for Set")
4501+ panic("no return value specified for HasPNGOnDisk")
38874502 }
38884503
3889- var r0 error
3890- if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.PermissionRecord) error); ok {
3891- r0 = returnFunc(ctx, record)
4504+ var r0 bool
4505+ if returnFunc, ok := ret.Get(0).(func(string) bool); ok {
4506+ r0 = returnFunc(domain)
38924507 } else {
3893- r0 = ret.Error(0)
4508+ r0 = ret.Get(0).(bool)
38944509 }
38954510 return r0
38964511 }
38974512
3898-// MockPermissionRepository_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
3899-type MockPermissionRepository_Set_Call struct {
4513+// MockFaviconService_HasPNGOnDisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPNGOnDisk'
4514+type MockFaviconService_HasPNGOnDisk_Call struct {
39004515 *mock.Call
39014516 }
39024517
3903-// Set is a helper method to define mock.On call
3904-// - ctx context.Context
3905-// - record *entity.PermissionRecord
3906-func (_e *MockPermissionRepository_Expecter) Set(ctx interface{}, record interface{}) *MockPermissionRepository_Set_Call {
3907- return &MockPermissionRepository_Set_Call{Call: _e.mock.On("Set", ctx, record)}
4518+// HasPNGOnDisk is a helper method to define mock.On call
4519+// - domain string
4520+func (_e *MockFaviconService_Expecter) HasPNGOnDisk(domain interface{}) *MockFaviconService_HasPNGOnDisk_Call {
4521+ return &MockFaviconService_HasPNGOnDisk_Call{Call: _e.mock.On("HasPNGOnDisk", domain)}
39084522 }
39094523
3910-func (_c *MockPermissionRepository_Set_Call) Run(run func(ctx context.Context, record *entity.PermissionRecord)) *MockPermissionRepository_Set_Call {
4524+func (_c *MockFaviconService_HasPNGOnDisk_Call) Run(run func(domain string)) *MockFaviconService_HasPNGOnDisk_Call {
39114525 _c.Call.Run(func(args mock.Arguments) {
3912- var arg0 context.Context
4526+ var arg0 string
39134527 if args[0] != nil {
3914- arg0 = args[0].(context.Context)
3915- }
3916- var arg1 *entity.PermissionRecord
3917- if args[1] != nil {
3918- arg1 = args[1].(*entity.PermissionRecord)
4528+ arg0 = args[0].(string)
39194529 }
39204530 run(
39214531 arg0,
3922- arg1,
39234532 )
39244533 })
39254534 return _c
39264535 }
39274536
3928-func (_c *MockPermissionRepository_Set_Call) Return(err error) *MockPermissionRepository_Set_Call {
3929- _c.Call.Return(err)
4537+func (_c *MockFaviconService_HasPNGOnDisk_Call) Return(b bool) *MockFaviconService_HasPNGOnDisk_Call {
4538+ _c.Call.Return(b)
39304539 return _c
39314540 }
39324541
3933-func (_c *MockPermissionRepository_Set_Call) RunAndReturn(run func(ctx context.Context, record *entity.PermissionRecord) error) *MockPermissionRepository_Set_Call {
4542+func (_c *MockFaviconService_HasPNGOnDisk_Call) RunAndReturn(run func(domain string) bool) *MockFaviconService_HasPNGOnDisk_Call {
39344543 _c.Call.Return(run)
39354544 return _c
39364545 }
39374546
3938-// 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
4548+func (_mock *MockFaviconService) HasPNGSizedOnDisk(domain string, size int) bool {
4549+ ret := _mock.Called(domain, size)
39464550
3947- t.Cleanup(func() { mock.AssertExpectations(t) })
4551+ if len(ret) == 0 {
4552+ panic("no return value specified for HasPNGSizedOnDisk")
4553+ }
39484554
3949- return mock
4555+ var r0 bool
4556+ if returnFunc, ok := ret.Get(0).(func(string, int) bool); ok {
4557+ r0 = returnFunc(domain, size)
4558+ } else {
4559+ r0 = ret.Get(0).(bool)
4560+ }
4561+ return r0
39504562 }
39514563
3952-// MockSessionLogger is an autogenerated mock type for the SessionLogger type
3953-type MockSessionLogger struct {
3954- mock.Mock
3955-}
3956-
3957-type MockSessionLogger_Expecter struct {
3958- mock *mock.Mock
3959-}
3960-
3961-func (_m *MockSessionLogger) EXPECT() *MockSessionLogger_Expecter {
3962- return &MockSessionLogger_Expecter{mock: &_m.Mock}
3963-}
3964-
3965-// CreateLogger provides a mock function for the type MockSessionLogger
3966-func (_mock *MockSessionLogger) CreateLogger(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig) (zerolog.Logger, func(), error) {
3967- ret := _mock.Called(ctx, sessionID, cfg)
3968-
3969- if len(ret) == 0 {
3970- panic("no return value specified for CreateLogger")
3971- }
3972-
3973- var r0 zerolog.Logger
3974- var r1 func()
3975- var r2 error
3976- if returnFunc, ok := ret.Get(0).(func(context.Context, entity.SessionID, port.SessionLogConfig) (zerolog.Logger, func(), error)); ok {
3977- return returnFunc(ctx, sessionID, cfg)
3978- }
3979- if returnFunc, ok := ret.Get(0).(func(context.Context, entity.SessionID, port.SessionLogConfig) zerolog.Logger); ok {
3980- r0 = returnFunc(ctx, sessionID, cfg)
3981- } else {
3982- r0 = ret.Get(0).(zerolog.Logger)
3983- }
3984- if returnFunc, ok := ret.Get(1).(func(context.Context, entity.SessionID, port.SessionLogConfig) func()); ok {
3985- r1 = returnFunc(ctx, sessionID, cfg)
3986- } else {
3987- if ret.Get(1) != nil {
3988- r1 = ret.Get(1).(func())
3989- }
3990- }
3991- if returnFunc, ok := ret.Get(2).(func(context.Context, entity.SessionID, port.SessionLogConfig) error); ok {
3992- r2 = returnFunc(ctx, sessionID, cfg)
3993- } else {
3994- r2 = ret.Error(2)
3995- }
3996- return r0, r1, r2
3997-}
3998-
3999-// MockSessionLogger_CreateLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLogger'
4000-type MockSessionLogger_CreateLogger_Call struct {
4564+// MockFaviconService_HasPNGSizedOnDisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPNGSizedOnDisk'
4565+type MockFaviconService_HasPNGSizedOnDisk_Call struct {
40014566 *mock.Call
40024567 }
40034568
4004-// CreateLogger is a helper method to define mock.On call
4005-// - ctx context.Context
4006-// - sessionID entity.SessionID
4007-// - cfg port.SessionLogConfig
4008-func (_e *MockSessionLogger_Expecter) CreateLogger(ctx interface{}, sessionID interface{}, cfg interface{}) *MockSessionLogger_CreateLogger_Call {
4009- return &MockSessionLogger_CreateLogger_Call{Call: _e.mock.On("CreateLogger", ctx, sessionID, cfg)}
4569+// HasPNGSizedOnDisk is a helper method to define mock.On call
4570+// - domain string
4571+// - size int
4572+func (_e *MockFaviconService_Expecter) HasPNGSizedOnDisk(domain interface{}, size interface{}) *MockFaviconService_HasPNGSizedOnDisk_Call {
4573+ return &MockFaviconService_HasPNGSizedOnDisk_Call{Call: _e.mock.On("HasPNGSizedOnDisk", domain, size)}
40104574 }
40114575
4012-func (_c *MockSessionLogger_CreateLogger_Call) Run(run func(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig)) *MockSessionLogger_CreateLogger_Call {
4576+func (_c *MockFaviconService_HasPNGSizedOnDisk_Call) Run(run func(domain string, size int)) *MockFaviconService_HasPNGSizedOnDisk_Call {
40134577 _c.Call.Run(func(args mock.Arguments) {
4014- var arg0 context.Context
4578+ var arg0 string
40154579 if args[0] != nil {
4016- arg0 = args[0].(context.Context)
4580+ arg0 = args[0].(string)
40174581 }
4018- var arg1 entity.SessionID
4582+ var arg1 int
40194583 if args[1] != nil {
4020- arg1 = args[1].(entity.SessionID)
4021- }
4022- var arg2 port.SessionLogConfig
4023- if args[2] != nil {
4024- arg2 = args[2].(port.SessionLogConfig)
4584+ arg1 = args[1].(int)
40254585 }
40264586 run(
40274587 arg0,
40284588 arg1,
4029- arg2,
40304589 )
40314590 })
40324591 return _c
40334592 }
40344593
4035-func (_c *MockSessionLogger_CreateLogger_Call) Return(logger zerolog.Logger, fn func(), err error) *MockSessionLogger_CreateLogger_Call {
4036- _c.Call.Return(logger, fn, err)
4594+func (_c *MockFaviconService_HasPNGSizedOnDisk_Call) Return(b bool) *MockFaviconService_HasPNGSizedOnDisk_Call {
4595+ _c.Call.Return(b)
40374596 return _c
40384597 }
40394598
4040-func (_c *MockSessionLogger_CreateLogger_Call) RunAndReturn(run func(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig) (zerolog.Logger, func(), error)) *MockSessionLogger_CreateLogger_Call {
4599+func (_c *MockFaviconService_HasPNGSizedOnDisk_Call) RunAndReturn(run func(domain string, size int) bool) *MockFaviconService_HasPNGSizedOnDisk_Call {
40414600 _c.Call.Return(run)
40424601 return _c
40434602 }
40444603
4045-// 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.
40464605 // The first argument is typically a *testing.T value.
4047-func NewMockTabListProvider(t interface {
4606+func NewMockFileSystem(t interface {
40484607 mock.TestingT
40494608 Cleanup(func())
4050-}) *MockTabListProvider {
4051- mock := &MockTabListProvider{}
4609+}) *MockFileSystem {
4610+ mock := &MockFileSystem{}
40524611 mock.Mock.Test(t)
40534612
40544613 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -4056,194 +4615,281 @@ func NewMockTabListProvider(t interface {
40564615 return mock
40574616 }
40584617
4059-// MockTabListProvider is an autogenerated mock type for the TabListProvider type
4060-type MockTabListProvider struct {
4618+// MockFileSystem is an autogenerated mock type for the FileSystem type
4619+type MockFileSystem struct {
40614620 mock.Mock
40624621 }
40634622
4064-type MockTabListProvider_Expecter struct {
4623+type MockFileSystem_Expecter struct {
40654624 mock *mock.Mock
40664625 }
40674626
4068-func (_m *MockTabListProvider) EXPECT() *MockTabListProvider_Expecter {
4069- return &MockTabListProvider_Expecter{mock: &_m.Mock}
4627+func (_m *MockFileSystem) EXPECT() *MockFileSystem_Expecter {
4628+ return &MockFileSystem_Expecter{mock: &_m.Mock}
40704629 }
40714630
4072-// GetSessionID provides a mock function for the type MockTabListProvider
4073-func (_mock *MockTabListProvider) GetSessionID() entity.SessionID {
4074- ret := _mock.Called()
4631+// Exists provides a mock function for the type MockFileSystem
4632+func (_mock *MockFileSystem) Exists(ctx context.Context, path string) (bool, error) {
4633+ ret := _mock.Called(ctx, path)
40754634
40764635 if len(ret) == 0 {
4077- panic("no return value specified for GetSessionID")
4636+ panic("no return value specified for Exists")
40784637 }
40794638
4080- var r0 entity.SessionID
4081- if returnFunc, ok := ret.Get(0).(func() entity.SessionID); ok {
4082- r0 = returnFunc()
4639+ var r0 bool
4640+ var r1 error
4641+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) (bool, error)); ok {
4642+ return returnFunc(ctx, path)
4643+ }
4644+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) bool); ok {
4645+ r0 = returnFunc(ctx, path)
40834646 } else {
4084- r0 = ret.Get(0).(entity.SessionID)
4647+ r0 = ret.Get(0).(bool)
40854648 }
4086- return r0
4649+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
4650+ r1 = returnFunc(ctx, path)
4651+ } else {
4652+ r1 = ret.Error(1)
4653+ }
4654+ return r0, r1
40874655 }
40884656
4089-// MockTabListProvider_GetSessionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSessionID'
4090-type MockTabListProvider_GetSessionID_Call struct {
4657+// MockFileSystem_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
4658+type MockFileSystem_Exists_Call struct {
40914659 *mock.Call
40924660 }
40934661
4094-// GetSessionID is a helper method to define mock.On call
4095-func (_e *MockTabListProvider_Expecter) GetSessionID() *MockTabListProvider_GetSessionID_Call {
4096- return &MockTabListProvider_GetSessionID_Call{Call: _e.mock.On("GetSessionID")}
4662+// Exists is a helper method to define mock.On call
4663+// - ctx context.Context
4664+// - path string
4665+func (_e *MockFileSystem_Expecter) Exists(ctx interface{}, path interface{}) *MockFileSystem_Exists_Call {
4666+ return &MockFileSystem_Exists_Call{Call: _e.mock.On("Exists", ctx, path)}
40974667 }
40984668
4099-func (_c *MockTabListProvider_GetSessionID_Call) Run(run func()) *MockTabListProvider_GetSessionID_Call {
4669+func (_c *MockFileSystem_Exists_Call) Run(run func(ctx context.Context, path string)) *MockFileSystem_Exists_Call {
41004670 _c.Call.Run(func(args mock.Arguments) {
4101- run()
4671+ var arg0 context.Context
4672+ if args[0] != nil {
4673+ arg0 = args[0].(context.Context)
4674+ }
4675+ var arg1 string
4676+ if args[1] != nil {
4677+ arg1 = args[1].(string)
4678+ }
4679+ run(
4680+ arg0,
4681+ arg1,
4682+ )
41024683 })
41034684 return _c
41044685 }
41054686
4106-func (_c *MockTabListProvider_GetSessionID_Call) Return(sessionID entity.SessionID) *MockTabListProvider_GetSessionID_Call {
4107- _c.Call.Return(sessionID)
4687+func (_c *MockFileSystem_Exists_Call) Return(b bool, err error) *MockFileSystem_Exists_Call {
4688+ _c.Call.Return(b, err)
41084689 return _c
41094690 }
41104691
4111-func (_c *MockTabListProvider_GetSessionID_Call) RunAndReturn(run func() entity.SessionID) *MockTabListProvider_GetSessionID_Call {
4692+func (_c *MockFileSystem_Exists_Call) RunAndReturn(run func(ctx context.Context, path string) (bool, error)) *MockFileSystem_Exists_Call {
41124693 _c.Call.Return(run)
41134694 return _c
41144695 }
41154696
4116-// GetTabList provides a mock function for the type MockTabListProvider
4117-func (_mock *MockTabListProvider) GetTabList() *entity.TabList {
4118- ret := _mock.Called()
4697+// GetSize provides a mock function for the type MockFileSystem
4698+func (_mock *MockFileSystem) GetSize(ctx context.Context, path string) (int64, error) {
4699+ ret := _mock.Called(ctx, path)
41194700
41204701 if len(ret) == 0 {
4121- panic("no return value specified for GetTabList")
4702+ panic("no return value specified for GetSize")
41224703 }
41234704
4124- var r0 *entity.TabList
4125- if returnFunc, ok := ret.Get(0).(func() *entity.TabList); ok {
4126- r0 = returnFunc()
4705+ var r0 int64
4706+ var r1 error
4707+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) (int64, error)); ok {
4708+ return returnFunc(ctx, path)
4709+ }
4710+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) int64); ok {
4711+ r0 = returnFunc(ctx, path)
41274712 } else {
4128- if ret.Get(0) != nil {
4129- r0 = ret.Get(0).(*entity.TabList)
4130- }
4713+ r0 = ret.Get(0).(int64)
41314714 }
4132- return r0
4715+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
4716+ r1 = returnFunc(ctx, path)
4717+ } else {
4718+ r1 = ret.Error(1)
4719+ }
4720+ return r0, r1
41334721 }
41344722
4135-// MockTabListProvider_GetTabList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTabList'
4136-type MockTabListProvider_GetTabList_Call struct {
4723+// MockFileSystem_GetSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSize'
4724+type MockFileSystem_GetSize_Call struct {
41374725 *mock.Call
41384726 }
41394727
4140-// GetTabList is a helper method to define mock.On call
4141-func (_e *MockTabListProvider_Expecter) GetTabList() *MockTabListProvider_GetTabList_Call {
4142- return &MockTabListProvider_GetTabList_Call{Call: _e.mock.On("GetTabList")}
4728+// GetSize is a helper method to define mock.On call
4729+// - ctx context.Context
4730+// - path string
4731+func (_e *MockFileSystem_Expecter) GetSize(ctx interface{}, path interface{}) *MockFileSystem_GetSize_Call {
4732+ return &MockFileSystem_GetSize_Call{Call: _e.mock.On("GetSize", ctx, path)}
41434733 }
41444734
4145-func (_c *MockTabListProvider_GetTabList_Call) Run(run func()) *MockTabListProvider_GetTabList_Call {
4735+func (_c *MockFileSystem_GetSize_Call) Run(run func(ctx context.Context, path string)) *MockFileSystem_GetSize_Call {
41464736 _c.Call.Run(func(args mock.Arguments) {
4147- run()
4737+ var arg0 context.Context
4738+ if args[0] != nil {
4739+ arg0 = args[0].(context.Context)
4740+ }
4741+ var arg1 string
4742+ if args[1] != nil {
4743+ arg1 = args[1].(string)
4744+ }
4745+ run(
4746+ arg0,
4747+ arg1,
4748+ )
41484749 })
41494750 return _c
41504751 }
41514752
4152-func (_c *MockTabListProvider_GetTabList_Call) Return(tabList *entity.TabList) *MockTabListProvider_GetTabList_Call {
4153- _c.Call.Return(tabList)
4753+func (_c *MockFileSystem_GetSize_Call) Return(n int64, err error) *MockFileSystem_GetSize_Call {
4754+ _c.Call.Return(n, err)
41544755 return _c
41554756 }
41564757
4157-func (_c *MockTabListProvider_GetTabList_Call) RunAndReturn(run func() *entity.TabList) *MockTabListProvider_GetTabList_Call {
4758+func (_c *MockFileSystem_GetSize_Call) RunAndReturn(run func(ctx context.Context, path string) (int64, error)) *MockFileSystem_GetSize_Call {
41584759 _c.Call.Return(run)
41594760 return _c
41604761 }
41614762
4162-// 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
4764+func (_mock *MockFileSystem) IsDirectory(ctx context.Context, path string) (bool, error) {
4765+ ret := _mock.Called(ctx, path)
41704766
4171- t.Cleanup(func() { mock.AssertExpectations(t) })
4767+ if len(ret) == 0 {
4768+ panic("no return value specified for IsDirectory")
4769+ }
41724770
4173- return mock
4771+ var r0 bool
4772+ var r1 error
4773+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) (bool, error)); ok {
4774+ return returnFunc(ctx, path)
4775+ }
4776+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) bool); ok {
4777+ r0 = returnFunc(ctx, path)
4778+ } else {
4779+ r0 = ret.Get(0).(bool)
4780+ }
4781+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
4782+ r1 = returnFunc(ctx, path)
4783+ } else {
4784+ r1 = ret.Error(1)
4785+ }
4786+ return r0, r1
41744787 }
41754788
4176-// MockSessionSpawner is an autogenerated mock type for the SessionSpawner type
4177-type MockSessionSpawner struct {
4178- mock.Mock
4789+// MockFileSystem_IsDirectory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDirectory'
4790+type MockFileSystem_IsDirectory_Call struct {
4791+ *mock.Call
41794792 }
41804793
4181-type MockSessionSpawner_Expecter struct {
4182- mock *mock.Mock
4794+// IsDirectory is a helper method to define mock.On call
4795+// - ctx context.Context
4796+// - path string
4797+func (_e *MockFileSystem_Expecter) IsDirectory(ctx interface{}, path interface{}) *MockFileSystem_IsDirectory_Call {
4798+ return &MockFileSystem_IsDirectory_Call{Call: _e.mock.On("IsDirectory", ctx, path)}
41834799 }
41844800
4185-func (_m *MockSessionSpawner) EXPECT() *MockSessionSpawner_Expecter {
4186- return &MockSessionSpawner_Expecter{mock: &_m.Mock}
4801+func (_c *MockFileSystem_IsDirectory_Call) Run(run func(ctx context.Context, path string)) *MockFileSystem_IsDirectory_Call {
4802+ _c.Call.Run(func(args mock.Arguments) {
4803+ var arg0 context.Context
4804+ if args[0] != nil {
4805+ arg0 = args[0].(context.Context)
4806+ }
4807+ var arg1 string
4808+ if args[1] != nil {
4809+ arg1 = args[1].(string)
4810+ }
4811+ run(
4812+ arg0,
4813+ arg1,
4814+ )
4815+ })
4816+ return _c
41874817 }
41884818
4189-// SpawnWithSession provides a mock function for the type MockSessionSpawner
4190-func (_mock *MockSessionSpawner) SpawnWithSession(sessionID entity.SessionID) error {
4191- ret := _mock.Called(sessionID)
4819+func (_c *MockFileSystem_IsDirectory_Call) Return(b bool, err error) *MockFileSystem_IsDirectory_Call {
4820+ _c.Call.Return(b, err)
4821+ return _c
4822+}
4823+
4824+func (_c *MockFileSystem_IsDirectory_Call) RunAndReturn(run func(ctx context.Context, path string) (bool, error)) *MockFileSystem_IsDirectory_Call {
4825+ _c.Call.Return(run)
4826+ return _c
4827+}
4828+
4829+// RemoveAll provides a mock function for the type MockFileSystem
4830+func (_mock *MockFileSystem) RemoveAll(ctx context.Context, path string) error {
4831+ ret := _mock.Called(ctx, path)
41924832
41934833 if len(ret) == 0 {
4194- panic("no return value specified for SpawnWithSession")
4834+ panic("no return value specified for RemoveAll")
41954835 }
41964836
41974837 var r0 error
4198- if returnFunc, ok := ret.Get(0).(func(entity.SessionID) error); ok {
4199- r0 = returnFunc(sessionID)
4838+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
4839+ r0 = returnFunc(ctx, path)
42004840 } else {
42014841 r0 = ret.Error(0)
42024842 }
42034843 return r0
42044844 }
42054845
4206-// MockSessionSpawner_SpawnWithSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpawnWithSession'
4207-type MockSessionSpawner_SpawnWithSession_Call struct {
4846+// MockFileSystem_RemoveAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAll'
4847+type MockFileSystem_RemoveAll_Call struct {
42084848 *mock.Call
42094849 }
42104850
4211-// SpawnWithSession is a helper method to define mock.On call
4212-// - sessionID entity.SessionID
4213-func (_e *MockSessionSpawner_Expecter) SpawnWithSession(sessionID interface{}) *MockSessionSpawner_SpawnWithSession_Call {
4214- return &MockSessionSpawner_SpawnWithSession_Call{Call: _e.mock.On("SpawnWithSession", sessionID)}
4851+// RemoveAll is a helper method to define mock.On call
4852+// - ctx context.Context
4853+// - path string
4854+func (_e *MockFileSystem_Expecter) RemoveAll(ctx interface{}, path interface{}) *MockFileSystem_RemoveAll_Call {
4855+ return &MockFileSystem_RemoveAll_Call{Call: _e.mock.On("RemoveAll", ctx, path)}
42154856 }
42164857
4217-func (_c *MockSessionSpawner_SpawnWithSession_Call) Run(run func(sessionID entity.SessionID)) *MockSessionSpawner_SpawnWithSession_Call {
4858+func (_c *MockFileSystem_RemoveAll_Call) Run(run func(ctx context.Context, path string)) *MockFileSystem_RemoveAll_Call {
42184859 _c.Call.Run(func(args mock.Arguments) {
4219- var arg0 entity.SessionID
4860+ var arg0 context.Context
42204861 if args[0] != nil {
4221- arg0 = args[0].(entity.SessionID)
4862+ arg0 = args[0].(context.Context)
4863+ }
4864+ var arg1 string
4865+ if args[1] != nil {
4866+ arg1 = args[1].(string)
42224867 }
42234868 run(
42244869 arg0,
4870+ arg1,
42254871 )
42264872 })
42274873 return _c
42284874 }
42294875
4230-func (_c *MockSessionSpawner_SpawnWithSession_Call) Return(err error) *MockSessionSpawner_SpawnWithSession_Call {
4876+func (_c *MockFileSystem_RemoveAll_Call) Return(err error) *MockFileSystem_RemoveAll_Call {
42314877 _c.Call.Return(err)
42324878 return _c
42334879 }
42344880
4235-func (_c *MockSessionSpawner_SpawnWithSession_Call) RunAndReturn(run func(sessionID entity.SessionID) error) *MockSessionSpawner_SpawnWithSession_Call {
4881+func (_c *MockFileSystem_RemoveAll_Call) RunAndReturn(run func(ctx context.Context, path string) error) *MockFileSystem_RemoveAll_Call {
42364882 _c.Call.Return(run)
42374883 return _c
42384884 }
42394885
4240-// 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.
42414887 // The first argument is typically a *testing.T value.
4242-func NewMockTextInputTarget(t interface {
4888+func NewMockFilterManager(t interface {
42434889 mock.TestingT
42444890 Cleanup(func())
4245-}) *MockTextInputTarget {
4246- mock := &MockTextInputTarget{}
4891+}) *MockFilterManager {
4892+ mock := &MockFilterManager{}
42474893 mock.Mock.Test(t)
42484894
42494895 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -4251,140 +4897,106 @@ func NewMockTextInputTarget(t interface {
42514897 return mock
42524898 }
42534899
4254-// MockTextInputTarget is an autogenerated mock type for the TextInputTarget type
4255-type MockTextInputTarget struct {
4900+// MockFilterManager is an autogenerated mock type for the FilterManager type
4901+type MockFilterManager struct {
42564902 mock.Mock
42574903 }
42584904
4259-type MockTextInputTarget_Expecter struct {
4905+type MockFilterManager_Expecter struct {
42604906 mock *mock.Mock
42614907 }
42624908
4263-func (_m *MockTextInputTarget) EXPECT() *MockTextInputTarget_Expecter {
4264- return &MockTextInputTarget_Expecter{mock: &_m.Mock}
4909+func (_m *MockFilterManager) EXPECT() *MockFilterManager_Expecter {
4910+ return &MockFilterManager_Expecter{mock: &_m.Mock}
42654911 }
42664912
4267-// DeleteBeforeCursor provides a mock function for the type MockTextInputTarget
4268-func (_mock *MockTextInputTarget) DeleteBeforeCursor(ctx context.Context, n int) error {
4269- ret := _mock.Called(ctx, n)
4913+// LoadAsync provides a mock function for the type MockFilterManager
4914+func (_mock *MockFilterManager) LoadAsync(ctx context.Context) {
4915+ _mock.Called(ctx)
4916+ return
4917+}
42704918
4271- if len(ret) == 0 {
4272- 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 {
42864921 *mock.Call
42874922 }
42884923
4289-// DeleteBeforeCursor is a helper method to define mock.On call
4924+// LoadAsync is a helper method to define mock.On call
42904925 // - ctx context.Context
4291-// - n int
4292-func (_e *MockTextInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockTextInputTarget_DeleteBeforeCursor_Call {
4293- return &MockTextInputTarget_DeleteBeforeCursor_Call{Call: _e.mock.On("DeleteBeforeCursor", ctx, n)}
4926+func (_e *MockFilterManager_Expecter) LoadAsync(ctx interface{}) *MockFilterManager_LoadAsync_Call {
4927+ return &MockFilterManager_LoadAsync_Call{Call: _e.mock.On("LoadAsync", ctx)}
42944928 }
42954929
4296-func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Run(run func(ctx context.Context, n int)) *MockTextInputTarget_DeleteBeforeCursor_Call {
4930+func (_c *MockFilterManager_LoadAsync_Call) Run(run func(ctx context.Context)) *MockFilterManager_LoadAsync_Call {
42974931 _c.Call.Run(func(args mock.Arguments) {
42984932 var arg0 context.Context
42994933 if args[0] != nil {
43004934 arg0 = args[0].(context.Context)
43014935 }
4302- var arg1 int
4303- if args[1] != nil {
4304- arg1 = args[1].(int)
4305- }
43064936 run(
43074937 arg0,
4308- arg1,
43094938 )
43104939 })
43114940 return _c
43124941 }
43134942
4314-func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Return(err error) *MockTextInputTarget_DeleteBeforeCursor_Call {
4315- _c.Call.Return(err)
4943+func (_c *MockFilterManager_LoadAsync_Call) Return() *MockFilterManager_LoadAsync_Call {
4944+ _c.Call.Return()
43164945 return _c
43174946 }
43184947
4319-func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) RunAndReturn(run func(ctx context.Context, n int) error) *MockTextInputTarget_DeleteBeforeCursor_Call {
4320- _c.Call.Return(run)
4948+func (_c *MockFilterManager_LoadAsync_Call) RunAndReturn(run func(ctx context.Context)) *MockFilterManager_LoadAsync_Call {
4949+ _c.Run(run)
43214950 return _c
43224951 }
43234952
4324-// InsertText provides a mock function for the type MockTextInputTarget
4325-func (_mock *MockTextInputTarget) InsertText(ctx context.Context, text string) error {
4326- ret := _mock.Called(ctx, text)
4327-
4328- if len(ret) == 0 {
4329- panic("no return value specified for InsertText")
4330- }
4331-
4332- var r0 error
4333- if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
4334- r0 = returnFunc(ctx, text)
4335- } else {
4336- r0 = ret.Error(0)
4337- }
4338- return r0
4953+// SetStatusCallback provides a mock function for the type MockFilterManager
4954+func (_mock *MockFilterManager) SetStatusCallback(fn func(port.FilterStatus)) {
4955+ _mock.Called(fn)
4956+ return
43394957 }
43404958
4341-// MockTextInputTarget_InsertText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertText'
4342-type MockTextInputTarget_InsertText_Call struct {
4959+// MockFilterManager_SetStatusCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusCallback'
4960+type MockFilterManager_SetStatusCallback_Call struct {
43434961 *mock.Call
43444962 }
43454963
4346-// InsertText is a helper method to define mock.On call
4347-// - ctx context.Context
4348-// - text string
4349-func (_e *MockTextInputTarget_Expecter) InsertText(ctx interface{}, text interface{}) *MockTextInputTarget_InsertText_Call {
4350- return &MockTextInputTarget_InsertText_Call{Call: _e.mock.On("InsertText", ctx, text)}
4964+// SetStatusCallback is a helper method to define mock.On call
4965+// - fn func(port.FilterStatus)
4966+func (_e *MockFilterManager_Expecter) SetStatusCallback(fn interface{}) *MockFilterManager_SetStatusCallback_Call {
4967+ return &MockFilterManager_SetStatusCallback_Call{Call: _e.mock.On("SetStatusCallback", fn)}
43514968 }
43524969
4353-func (_c *MockTextInputTarget_InsertText_Call) Run(run func(ctx context.Context, text string)) *MockTextInputTarget_InsertText_Call {
4970+func (_c *MockFilterManager_SetStatusCallback_Call) Run(run func(fn func(port.FilterStatus))) *MockFilterManager_SetStatusCallback_Call {
43544971 _c.Call.Run(func(args mock.Arguments) {
4355- var arg0 context.Context
4972+ var arg0 func(port.FilterStatus)
43564973 if args[0] != nil {
4357- arg0 = args[0].(context.Context)
4358- }
4359- var arg1 string
4360- if args[1] != nil {
4361- arg1 = args[1].(string)
4974+ arg0 = args[0].(func(port.FilterStatus))
43624975 }
43634976 run(
43644977 arg0,
4365- arg1,
43664978 )
43674979 })
43684980 return _c
43694981 }
43704982
4371-func (_c *MockTextInputTarget_InsertText_Call) Return(err error) *MockTextInputTarget_InsertText_Call {
4372- _c.Call.Return(err)
4983+func (_c *MockFilterManager_SetStatusCallback_Call) Return() *MockFilterManager_SetStatusCallback_Call {
4984+ _c.Call.Return()
43734985 return _c
43744986 }
43754987
4376-func (_c *MockTextInputTarget_InsertText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockTextInputTarget_InsertText_Call {
4377- _c.Call.Return(run)
4988+func (_c *MockFilterManager_SetStatusCallback_Call) RunAndReturn(run func(fn func(port.FilterStatus))) *MockFilterManager_SetStatusCallback_Call {
4989+ _c.Run(run)
43784990 return _c
43794991 }
43804992
4381-// 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.
43824994 // The first argument is typically a *testing.T value.
4383-func NewMockFocusedInputProvider(t interface {
4995+func NewMockFontDetector(t interface {
43844996 mock.TestingT
43854997 Cleanup(func())
4386-}) *MockFocusedInputProvider {
4387- mock := &MockFocusedInputProvider{}
4998+}) *MockFontDetector {
4999+ mock := &MockFontDetector{}
43885000 mock.Mock.Test(t)
43895001
43905002 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -4392,87 +5004,63 @@ func NewMockFocusedInputProvider(t interface {
43925004 return mock
43935005 }
43945006
4395-// MockFocusedInputProvider is an autogenerated mock type for the FocusedInputProvider type
4396-type MockFocusedInputProvider struct {
5007+// MockFontDetector is an autogenerated mock type for the FontDetector type
5008+type MockFontDetector struct {
43975009 mock.Mock
43985010 }
43995011
4400-type MockFocusedInputProvider_Expecter struct {
5012+type MockFontDetector_Expecter struct {
44015013 mock *mock.Mock
44025014 }
44035015
4404-func (_m *MockFocusedInputProvider) EXPECT() *MockFocusedInputProvider_Expecter {
4405- return &MockFocusedInputProvider_Expecter{mock: &_m.Mock}
5016+func (_m *MockFontDetector) EXPECT() *MockFontDetector_Expecter {
5017+ return &MockFontDetector_Expecter{mock: &_m.Mock}
44065018 }
44075019
4408-// GetFocusedInput provides a mock function for the type MockFocusedInputProvider
4409-func (_mock *MockFocusedInputProvider) GetFocusedInput() port.TextInputTarget {
4410- ret := _mock.Called()
5020+// GetAvailableFonts provides a mock function for the type MockFontDetector
5021+func (_mock *MockFontDetector) GetAvailableFonts(ctx context.Context) ([]string, error) {
5022+ ret := _mock.Called(ctx)
44115023
44125024 if len(ret) == 0 {
4413- panic("no return value specified for GetFocusedInput")
5025+ panic("no return value specified for GetAvailableFonts")
44145026 }
44155027
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)
44195035 } else {
44205036 if ret.Get(0) != nil {
4421- r0 = ret.Get(0).(port.TextInputTarget)
5037+ r0 = ret.Get(0).([]string)
44225038 }
44235039 }
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
4433-func (_e *MockFocusedInputProvider_Expecter) GetFocusedInput() *MockFocusedInputProvider_GetFocusedInput_Call {
4434- return &MockFocusedInputProvider_GetFocusedInput_Call{Call: _e.mock.On("GetFocusedInput")}
4435-}
4436-
4437-func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Run(run func()) *MockFocusedInputProvider_GetFocusedInput_Call {
4438- _c.Call.Run(func(args mock.Arguments) {
4439- run()
4440- })
4441- return _c
4442-}
4443-
4444-func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Return(textInputTarget port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call {
4445- _c.Call.Return(textInputTarget)
4446- return _c
4447-}
4448-
4449-func (_c *MockFocusedInputProvider_GetFocusedInput_Call) RunAndReturn(run func() port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call {
4450- _c.Call.Return(run)
4451- return _c
4452-}
4453-
4454-// SetFocusedInput provides a mock function for the type MockFocusedInputProvider
4455-func (_mock *MockFocusedInputProvider) SetFocusedInput(target port.TextInputTarget) {
4456- _mock.Called(target)
4457- return
5040+ 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
44585046 }
44595047
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 {
44625050 *mock.Call
44635051 }
44645052
4465-// SetFocusedInput is a helper method to define mock.On call
4466-// - target port.TextInputTarget
4467-func (_e *MockFocusedInputProvider_Expecter) SetFocusedInput(target interface{}) *MockFocusedInputProvider_SetFocusedInput_Call {
4468- return &MockFocusedInputProvider_SetFocusedInput_Call{Call: _e.mock.On("SetFocusedInput", target)}
5053+// GetAvailableFonts is a helper method to define mock.On call
5054+// - ctx context.Context
5055+func (_e *MockFontDetector_Expecter) GetAvailableFonts(ctx interface{}) *MockFontDetector_GetAvailableFonts_Call {
5056+ return &MockFontDetector_GetAvailableFonts_Call{Call: _e.mock.On("GetAvailableFonts", ctx)}
44695057 }
44705058
4471-func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Run(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call {
5059+func (_c *MockFontDetector_GetAvailableFonts_Call) Run(run func(ctx context.Context)) *MockFontDetector_GetAvailableFonts_Call {
44725060 _c.Call.Run(func(args mock.Arguments) {
4473- var arg0 port.TextInputTarget
5061+ var arg0 context.Context
44745062 if args[0] != nil {
4475- arg0 = args[0].(port.TextInputTarget)
5063+ arg0 = args[0].(context.Context)
44765064 }
44775065 run(
44785066 arg0,
@@ -4481,417 +5069,479 @@ func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Run(run func(target por
44815069 return _c
44825070 }
44835071
4484-func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Return() *MockFocusedInputProvider_SetFocusedInput_Call {
4485- _c.Call.Return()
5072+func (_c *MockFontDetector_GetAvailableFonts_Call) Return(strings []string, err error) *MockFontDetector_GetAvailableFonts_Call {
5073+ _c.Call.Return(strings, err)
44865074 return _c
44875075 }
44885076
4489-func (_c *MockFocusedInputProvider_SetFocusedInput_Call) RunAndReturn(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call {
4490- _c.Run(run)
5077+func (_c *MockFontDetector_GetAvailableFonts_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockFontDetector_GetAvailableFonts_Call {
5078+ _c.Call.Return(run)
44915079 return _c
44925080 }
44935081
4494-// 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
4509-type MockWebView struct {
4510- mock.Mock
4511-}
4512-
4513-type MockWebView_Expecter struct {
4514- mock *mock.Mock
4515-}
4516-
4517-func (_m *MockWebView) EXPECT() *MockWebView_Expecter {
4518- return &MockWebView_Expecter{mock: &_m.Mock}
4519-}
4520-
4521-// CanGoBack provides a mock function for the type MockWebView
4522-func (_mock *MockWebView) CanGoBack() bool {
4523- ret := _mock.Called()
5082+// IsAvailable provides a mock function for the type MockFontDetector
5083+func (_mock *MockFontDetector) IsAvailable(ctx context.Context) bool {
5084+ ret := _mock.Called(ctx)
45245085
45255086 if len(ret) == 0 {
4526- panic("no return value specified for CanGoBack")
5087+ panic("no return value specified for IsAvailable")
45275088 }
45285089
45295090 var r0 bool
4530- if returnFunc, ok := ret.Get(0).(func() bool); ok {
4531- r0 = returnFunc()
5091+ if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
5092+ r0 = returnFunc(ctx)
45325093 } else {
45335094 r0 = ret.Get(0).(bool)
45345095 }
45355096 return r0
45365097 }
45375098
4538-// MockWebView_CanGoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoBack'
4539-type MockWebView_CanGoBack_Call struct {
5099+// MockFontDetector_IsAvailable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAvailable'
5100+type MockFontDetector_IsAvailable_Call struct {
45405101 *mock.Call
45415102 }
45425103
4543-// CanGoBack is a helper method to define mock.On call
4544-func (_e *MockWebView_Expecter) CanGoBack() *MockWebView_CanGoBack_Call {
4545- return &MockWebView_CanGoBack_Call{Call: _e.mock.On("CanGoBack")}
5104+// IsAvailable is a helper method to define mock.On call
5105+// - ctx context.Context
5106+func (_e *MockFontDetector_Expecter) IsAvailable(ctx interface{}) *MockFontDetector_IsAvailable_Call {
5107+ return &MockFontDetector_IsAvailable_Call{Call: _e.mock.On("IsAvailable", ctx)}
45465108 }
45475109
4548-func (_c *MockWebView_CanGoBack_Call) Run(run func()) *MockWebView_CanGoBack_Call {
5110+func (_c *MockFontDetector_IsAvailable_Call) Run(run func(ctx context.Context)) *MockFontDetector_IsAvailable_Call {
45495111 _c.Call.Run(func(args mock.Arguments) {
4550- run()
5112+ var arg0 context.Context
5113+ if args[0] != nil {
5114+ arg0 = args[0].(context.Context)
5115+ }
5116+ run(
5117+ arg0,
5118+ )
45515119 })
45525120 return _c
45535121 }
45545122
4555-func (_c *MockWebView_CanGoBack_Call) Return(b bool) *MockWebView_CanGoBack_Call {
5123+func (_c *MockFontDetector_IsAvailable_Call) Return(b bool) *MockFontDetector_IsAvailable_Call {
45565124 _c.Call.Return(b)
45575125 return _c
45585126 }
45595127
4560-func (_c *MockWebView_CanGoBack_Call) RunAndReturn(run func() bool) *MockWebView_CanGoBack_Call {
5128+func (_c *MockFontDetector_IsAvailable_Call) RunAndReturn(run func(ctx context.Context) bool) *MockFontDetector_IsAvailable_Call {
45615129 _c.Call.Return(run)
45625130 return _c
45635131 }
45645132
4565-// CanGoForward provides a mock function for the type MockWebView
4566-func (_mock *MockWebView) CanGoForward() bool {
4567- ret := _mock.Called()
5133+// SelectBestFont provides a mock function for the type MockFontDetector
5134+func (_mock *MockFontDetector) SelectBestFont(ctx context.Context, category port.FontCategory, fallbackChain []string) string {
5135+ ret := _mock.Called(ctx, category, fallbackChain)
45685136
45695137 if len(ret) == 0 {
4570- panic("no return value specified for CanGoForward")
5138+ panic("no return value specified for SelectBestFont")
45715139 }
45725140
4573- var r0 bool
4574- if returnFunc, ok := ret.Get(0).(func() bool); ok {
4575- r0 = returnFunc()
5141+ var r0 string
5142+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.FontCategory, []string) string); ok {
5143+ r0 = returnFunc(ctx, category, fallbackChain)
45765144 } else {
4577- r0 = ret.Get(0).(bool)
5145+ r0 = ret.Get(0).(string)
45785146 }
45795147 return r0
45805148 }
45815149
4582-// MockWebView_CanGoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoForward'
4583-type MockWebView_CanGoForward_Call struct {
5150+// MockFontDetector_SelectBestFont_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectBestFont'
5151+type MockFontDetector_SelectBestFont_Call struct {
45845152 *mock.Call
45855153 }
45865154
4587-// CanGoForward is a helper method to define mock.On call
4588-func (_e *MockWebView_Expecter) CanGoForward() *MockWebView_CanGoForward_Call {
4589- return &MockWebView_CanGoForward_Call{Call: _e.mock.On("CanGoForward")}
5155+// SelectBestFont is a helper method to define mock.On call
5156+// - ctx context.Context
5157+// - category port.FontCategory
5158+// - fallbackChain []string
5159+func (_e *MockFontDetector_Expecter) SelectBestFont(ctx interface{}, category interface{}, fallbackChain interface{}) *MockFontDetector_SelectBestFont_Call {
5160+ return &MockFontDetector_SelectBestFont_Call{Call: _e.mock.On("SelectBestFont", ctx, category, fallbackChain)}
45905161 }
45915162
4592-func (_c *MockWebView_CanGoForward_Call) Run(run func()) *MockWebView_CanGoForward_Call {
5163+func (_c *MockFontDetector_SelectBestFont_Call) Run(run func(ctx context.Context, category port.FontCategory, fallbackChain []string)) *MockFontDetector_SelectBestFont_Call {
45935164 _c.Call.Run(func(args mock.Arguments) {
4594- run()
5165+ var arg0 context.Context
5166+ if args[0] != nil {
5167+ arg0 = args[0].(context.Context)
5168+ }
5169+ var arg1 port.FontCategory
5170+ if args[1] != nil {
5171+ arg1 = args[1].(port.FontCategory)
5172+ }
5173+ var arg2 []string
5174+ if args[2] != nil {
5175+ arg2 = args[2].([]string)
5176+ }
5177+ run(
5178+ arg0,
5179+ arg1,
5180+ arg2,
5181+ )
45955182 })
45965183 return _c
45975184 }
45985185
4599-func (_c *MockWebView_CanGoForward_Call) Return(b bool) *MockWebView_CanGoForward_Call {
4600- _c.Call.Return(b)
5186+func (_c *MockFontDetector_SelectBestFont_Call) Return(s string) *MockFontDetector_SelectBestFont_Call {
5187+ _c.Call.Return(s)
46015188 return _c
46025189 }
46035190
4604-func (_c *MockWebView_CanGoForward_Call) RunAndReturn(run func() bool) *MockWebView_CanGoForward_Call {
5191+func (_c *MockFontDetector_SelectBestFont_Call) RunAndReturn(run func(ctx context.Context, category port.FontCategory, fallbackChain []string) string) *MockFontDetector_SelectBestFont_Call {
46055192 _c.Call.Return(run)
46065193 return _c
46075194 }
46085195
4609-// 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)
46145204
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) })
46195206
4620-// Destroy is a helper method to define mock.On call
4621-func (_e *MockWebView_Expecter) Destroy() *MockWebView_Destroy_Call {
4622- return &MockWebView_Destroy_Call{Call: _e.mock.On("Destroy")}
5207+ return mock
46235208 }
46245209
4625-func (_c *MockWebView_Destroy_Call) Run(run func()) *MockWebView_Destroy_Call {
4626- _c.Call.Run(func(args mock.Arguments) {
4627- run()
4628- })
4629- return _c
5210+// MockAccentKeyHandler is an autogenerated mock type for the AccentKeyHandler type
5211+type MockAccentKeyHandler struct {
5212+ mock.Mock
46305213 }
46315214
4632-func (_c *MockWebView_Destroy_Call) Return() *MockWebView_Destroy_Call {
4633- _c.Call.Return()
4634- return _c
5215+type MockAccentKeyHandler_Expecter struct {
5216+ mock *mock.Mock
46355217 }
46365218
4637-func (_c *MockWebView_Destroy_Call) RunAndReturn(run func()) *MockWebView_Destroy_Call {
4638- _c.Run(run)
4639- return _c
5219+func (_m *MockAccentKeyHandler) EXPECT() *MockAccentKeyHandler_Expecter {
5220+ return &MockAccentKeyHandler_Expecter{mock: &_m.Mock}
46405221 }
46415222
4642-// EstimatedProgress provides a mock function for the type MockWebView
4643-func (_mock *MockWebView) EstimatedProgress() float64 {
4644- ret := _mock.Called()
5223+// OnKeyPressed provides a mock function for the type MockAccentKeyHandler
5224+func (_mock *MockAccentKeyHandler) OnKeyPressed(ctx context.Context, char rune, shiftHeld bool) bool {
5225+ ret := _mock.Called(ctx, char, shiftHeld)
46455226
46465227 if len(ret) == 0 {
4647- panic("no return value specified for EstimatedProgress")
5228+ panic("no return value specified for OnKeyPressed")
46485229 }
46495230
4650- var r0 float64
4651- if returnFunc, ok := ret.Get(0).(func() float64); ok {
4652- r0 = returnFunc()
5231+ var r0 bool
5232+ if returnFunc, ok := ret.Get(0).(func(context.Context, rune, bool) bool); ok {
5233+ r0 = returnFunc(ctx, char, shiftHeld)
46535234 } else {
4654- r0 = ret.Get(0).(float64)
5235+ r0 = ret.Get(0).(bool)
46555236 }
46565237 return r0
46575238 }
46585239
4659-// MockWebView_EstimatedProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatedProgress'
4660-type MockWebView_EstimatedProgress_Call struct {
5240+// MockAccentKeyHandler_OnKeyPressed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnKeyPressed'
5241+type MockAccentKeyHandler_OnKeyPressed_Call struct {
46615242 *mock.Call
46625243 }
46635244
4664-// EstimatedProgress is a helper method to define mock.On call
4665-func (_e *MockWebView_Expecter) EstimatedProgress() *MockWebView_EstimatedProgress_Call {
4666- return &MockWebView_EstimatedProgress_Call{Call: _e.mock.On("EstimatedProgress")}
5245+// OnKeyPressed is a helper method to define mock.On call
5246+// - ctx context.Context
5247+// - char rune
5248+// - shiftHeld bool
5249+func (_e *MockAccentKeyHandler_Expecter) OnKeyPressed(ctx interface{}, char interface{}, shiftHeld interface{}) *MockAccentKeyHandler_OnKeyPressed_Call {
5250+ return &MockAccentKeyHandler_OnKeyPressed_Call{Call: _e.mock.On("OnKeyPressed", ctx, char, shiftHeld)}
46675251 }
46685252
4669-func (_c *MockWebView_EstimatedProgress_Call) Run(run func()) *MockWebView_EstimatedProgress_Call {
5253+func (_c *MockAccentKeyHandler_OnKeyPressed_Call) Run(run func(ctx context.Context, char rune, shiftHeld bool)) *MockAccentKeyHandler_OnKeyPressed_Call {
46705254 _c.Call.Run(func(args mock.Arguments) {
4671- run()
5255+ var arg0 context.Context
5256+ if args[0] != nil {
5257+ arg0 = args[0].(context.Context)
5258+ }
5259+ var arg1 rune
5260+ if args[1] != nil {
5261+ arg1 = args[1].(rune)
5262+ }
5263+ var arg2 bool
5264+ if args[2] != nil {
5265+ arg2 = args[2].(bool)
5266+ }
5267+ run(
5268+ arg0,
5269+ arg1,
5270+ arg2,
5271+ )
46725272 })
46735273 return _c
46745274 }
46755275
4676-func (_c *MockWebView_EstimatedProgress_Call) Return(f float64) *MockWebView_EstimatedProgress_Call {
4677- _c.Call.Return(f)
5276+func (_c *MockAccentKeyHandler_OnKeyPressed_Call) Return(b bool) *MockAccentKeyHandler_OnKeyPressed_Call {
5277+ _c.Call.Return(b)
46785278 return _c
46795279 }
46805280
4681-func (_c *MockWebView_EstimatedProgress_Call) RunAndReturn(run func() float64) *MockWebView_EstimatedProgress_Call {
5281+func (_c *MockAccentKeyHandler_OnKeyPressed_Call) RunAndReturn(run func(ctx context.Context, char rune, shiftHeld bool) bool) *MockAccentKeyHandler_OnKeyPressed_Call {
46825282 _c.Call.Return(run)
46835283 return _c
46845284 }
46855285
4686-// Favicon provides a mock function for the type MockWebView
4687-func (_mock *MockWebView) Favicon() port.Texture {
4688- ret := _mock.Called()
4689-
4690- if len(ret) == 0 {
4691- panic("no return value specified for Favicon")
4692- }
4693-
4694- var r0 port.Texture
4695- if returnFunc, ok := ret.Get(0).(func() port.Texture); ok {
4696- r0 = returnFunc()
4697- } else {
4698- if ret.Get(0) != nil {
4699- r0 = ret.Get(0).(port.Texture)
4700- }
4701- }
4702- return r0
5286+// OnKeyReleased provides a mock function for the type MockAccentKeyHandler
5287+func (_mock *MockAccentKeyHandler) OnKeyReleased(ctx context.Context, char rune) {
5288+ _mock.Called(ctx, char)
5289+ return
47035290 }
47045291
4705-// MockWebView_Favicon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Favicon'
4706-type MockWebView_Favicon_Call struct {
5292+// MockAccentKeyHandler_OnKeyReleased_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnKeyReleased'
5293+type MockAccentKeyHandler_OnKeyReleased_Call struct {
47075294 *mock.Call
47085295 }
47095296
4710-// Favicon is a helper method to define mock.On call
4711-func (_e *MockWebView_Expecter) Favicon() *MockWebView_Favicon_Call {
4712- return &MockWebView_Favicon_Call{Call: _e.mock.On("Favicon")}
5297+// OnKeyReleased is a helper method to define mock.On call
5298+// - ctx context.Context
5299+// - char rune
5300+func (_e *MockAccentKeyHandler_Expecter) OnKeyReleased(ctx interface{}, char interface{}) *MockAccentKeyHandler_OnKeyReleased_Call {
5301+ return &MockAccentKeyHandler_OnKeyReleased_Call{Call: _e.mock.On("OnKeyReleased", ctx, char)}
47135302 }
47145303
4715-func (_c *MockWebView_Favicon_Call) Run(run func()) *MockWebView_Favicon_Call {
5304+func (_c *MockAccentKeyHandler_OnKeyReleased_Call) Run(run func(ctx context.Context, char rune)) *MockAccentKeyHandler_OnKeyReleased_Call {
47165305 _c.Call.Run(func(args mock.Arguments) {
4717- run()
5306+ var arg0 context.Context
5307+ if args[0] != nil {
5308+ arg0 = args[0].(context.Context)
5309+ }
5310+ var arg1 rune
5311+ if args[1] != nil {
5312+ arg1 = args[1].(rune)
5313+ }
5314+ run(
5315+ arg0,
5316+ arg1,
5317+ )
47185318 })
47195319 return _c
47205320 }
47215321
4722-func (_c *MockWebView_Favicon_Call) Return(texture port.Texture) *MockWebView_Favicon_Call {
4723- _c.Call.Return(texture)
5322+func (_c *MockAccentKeyHandler_OnKeyReleased_Call) Return() *MockAccentKeyHandler_OnKeyReleased_Call {
5323+ _c.Call.Return()
47245324 return _c
47255325 }
47265326
4727-func (_c *MockWebView_Favicon_Call) RunAndReturn(run func() port.Texture) *MockWebView_Favicon_Call {
4728- _c.Call.Return(run)
5327+func (_c *MockAccentKeyHandler_OnKeyReleased_Call) RunAndReturn(run func(ctx context.Context, char rune)) *MockAccentKeyHandler_OnKeyReleased_Call {
5328+ _c.Run(run)
47295329 return _c
47305330 }
47315331
4732-// 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)
47485340
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) })
47535342
4754-// Generation is a helper method to define mock.On call
4755-func (_e *MockWebView_Expecter) Generation() *MockWebView_Generation_Call {
4756- return &MockWebView_Generation_Call{Call: _e.mock.On("Generation")}
5343+ return mock
47575344 }
47585345
4759-func (_c *MockWebView_Generation_Call) Run(run func()) *MockWebView_Generation_Call {
4760- _c.Call.Run(func(args mock.Arguments) {
4761- run()
4762- })
4763- return _c
5346+// MockDownloadPreparer is an autogenerated mock type for the DownloadPreparer type
5347+type MockDownloadPreparer struct {
5348+ mock.Mock
47645349 }
47655350
4766-func (_c *MockWebView_Generation_Call) Return(v uint64) *MockWebView_Generation_Call {
4767- _c.Call.Return(v)
4768- return _c
5351+type MockDownloadPreparer_Expecter struct {
5352+ mock *mock.Mock
47695353 }
47705354
4771-func (_c *MockWebView_Generation_Call) RunAndReturn(run func() uint64) *MockWebView_Generation_Call {
4772- _c.Call.Return(run)
4773- return _c
5355+func (_m *MockDownloadPreparer) EXPECT() *MockDownloadPreparer_Expecter {
5356+ return &MockDownloadPreparer_Expecter{mock: &_m.Mock}
47745357 }
47755358
4776-// GetFindController provides a mock function for the type MockWebView
4777-func (_mock *MockWebView) GetFindController() port.FindController {
4778- ret := _mock.Called()
5359+// Execute provides a mock function for the type MockDownloadPreparer
5360+func (_mock *MockDownloadPreparer) Execute(ctx context.Context, input port.DownloadPrepareInput) *port.DownloadPrepareOutput {
5361+ ret := _mock.Called(ctx, input)
47795362
47805363 if len(ret) == 0 {
4781- panic("no return value specified for GetFindController")
5364+ panic("no return value specified for Execute")
47825365 }
47835366
4784- var r0 port.FindController
4785- if returnFunc, ok := ret.Get(0).(func() port.FindController); ok {
4786- r0 = returnFunc()
5367+ var r0 *port.DownloadPrepareOutput
5368+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.DownloadPrepareInput) *port.DownloadPrepareOutput); ok {
5369+ r0 = returnFunc(ctx, input)
47875370 } else {
47885371 if ret.Get(0) != nil {
4789- r0 = ret.Get(0).(port.FindController)
5372+ r0 = ret.Get(0).(*port.DownloadPrepareOutput)
47905373 }
47915374 }
47925375 return r0
47935376 }
47945377
4795-// MockWebView_GetFindController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFindController'
4796-type MockWebView_GetFindController_Call struct {
5378+// MockDownloadPreparer_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
5379+type MockDownloadPreparer_Execute_Call struct {
47975380 *mock.Call
47985381 }
47995382
4800-// GetFindController is a helper method to define mock.On call
4801-func (_e *MockWebView_Expecter) GetFindController() *MockWebView_GetFindController_Call {
4802- return &MockWebView_GetFindController_Call{Call: _e.mock.On("GetFindController")}
5383+// Execute is a helper method to define mock.On call
5384+// - ctx context.Context
5385+// - input port.DownloadPrepareInput
5386+func (_e *MockDownloadPreparer_Expecter) Execute(ctx interface{}, input interface{}) *MockDownloadPreparer_Execute_Call {
5387+ return &MockDownloadPreparer_Execute_Call{Call: _e.mock.On("Execute", ctx, input)}
48035388 }
48045389
4805-func (_c *MockWebView_GetFindController_Call) Run(run func()) *MockWebView_GetFindController_Call {
5390+func (_c *MockDownloadPreparer_Execute_Call) Run(run func(ctx context.Context, input port.DownloadPrepareInput)) *MockDownloadPreparer_Execute_Call {
48065391 _c.Call.Run(func(args mock.Arguments) {
4807- run()
5392+ var arg0 context.Context
5393+ if args[0] != nil {
5394+ arg0 = args[0].(context.Context)
5395+ }
5396+ var arg1 port.DownloadPrepareInput
5397+ if args[1] != nil {
5398+ arg1 = args[1].(port.DownloadPrepareInput)
5399+ }
5400+ run(
5401+ arg0,
5402+ arg1,
5403+ )
48085404 })
48095405 return _c
48105406 }
48115407
4812-func (_c *MockWebView_GetFindController_Call) Return(findController port.FindController) *MockWebView_GetFindController_Call {
4813- _c.Call.Return(findController)
5408+func (_c *MockDownloadPreparer_Execute_Call) Return(downloadPrepareOutput *port.DownloadPrepareOutput) *MockDownloadPreparer_Execute_Call {
5409+ _c.Call.Return(downloadPrepareOutput)
48145410 return _c
48155411 }
48165412
4817-func (_c *MockWebView_GetFindController_Call) RunAndReturn(run func() port.FindController) *MockWebView_GetFindController_Call {
5413+func (_c *MockDownloadPreparer_Execute_Call) RunAndReturn(run func(ctx context.Context, input port.DownloadPrepareInput) *port.DownloadPrepareOutput) *MockDownloadPreparer_Execute_Call {
48185414 _c.Call.Return(run)
48195415 return _c
48205416 }
48215417
4822-// GetZoomLevel provides a mock function for the type MockWebView
4823-func (_mock *MockWebView) GetZoomLevel() float64 {
5418+// 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
5433+type MockAutoCopyConfig struct {
5434+ mock.Mock
5435+}
5436+
5437+type MockAutoCopyConfig_Expecter struct {
5438+ mock *mock.Mock
5439+}
5440+
5441+func (_m *MockAutoCopyConfig) EXPECT() *MockAutoCopyConfig_Expecter {
5442+ return &MockAutoCopyConfig_Expecter{mock: &_m.Mock}
5443+}
5444+
5445+// IsAutoCopyEnabled provides a mock function for the type MockAutoCopyConfig
5446+func (_mock *MockAutoCopyConfig) IsAutoCopyEnabled() bool {
48245447 ret := _mock.Called()
48255448
48265449 if len(ret) == 0 {
4827- panic("no return value specified for GetZoomLevel")
5450+ panic("no return value specified for IsAutoCopyEnabled")
48285451 }
48295452
4830- var r0 float64
4831- if returnFunc, ok := ret.Get(0).(func() float64); ok {
5453+ var r0 bool
5454+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
48325455 r0 = returnFunc()
48335456 } else {
4834- r0 = ret.Get(0).(float64)
5457+ r0 = ret.Get(0).(bool)
48355458 }
48365459 return r0
48375460 }
48385461
4839-// MockWebView_GetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZoomLevel'
4840-type MockWebView_GetZoomLevel_Call struct {
5462+// MockAutoCopyConfig_IsAutoCopyEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoCopyEnabled'
5463+type MockAutoCopyConfig_IsAutoCopyEnabled_Call struct {
48415464 *mock.Call
48425465 }
48435466
4844-// GetZoomLevel is a helper method to define mock.On call
4845-func (_e *MockWebView_Expecter) GetZoomLevel() *MockWebView_GetZoomLevel_Call {
4846- return &MockWebView_GetZoomLevel_Call{Call: _e.mock.On("GetZoomLevel")}
5467+// IsAutoCopyEnabled is a helper method to define mock.On call
5468+func (_e *MockAutoCopyConfig_Expecter) IsAutoCopyEnabled() *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
5469+ return &MockAutoCopyConfig_IsAutoCopyEnabled_Call{Call: _e.mock.On("IsAutoCopyEnabled")}
48475470 }
48485471
4849-func (_c *MockWebView_GetZoomLevel_Call) Run(run func()) *MockWebView_GetZoomLevel_Call {
5472+func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) Run(run func()) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
48505473 _c.Call.Run(func(args mock.Arguments) {
48515474 run()
48525475 })
48535476 return _c
48545477 }
48555478
4856-func (_c *MockWebView_GetZoomLevel_Call) Return(f float64) *MockWebView_GetZoomLevel_Call {
4857- _c.Call.Return(f)
5479+func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) Return(b bool) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
5480+ _c.Call.Return(b)
48585481 return _c
48595482 }
48605483
4861-func (_c *MockWebView_GetZoomLevel_Call) RunAndReturn(run func() float64) *MockWebView_GetZoomLevel_Call {
5484+func (_c *MockAutoCopyConfig_IsAutoCopyEnabled_Call) RunAndReturn(run func() bool) *MockAutoCopyConfig_IsAutoCopyEnabled_Call {
48625485 _c.Call.Return(run)
48635486 return _c
48645487 }
48655488
4866-// GoBack provides a mock function for the type MockWebView
4867-func (_mock *MockWebView) GoBack(ctx context.Context) error {
4868- ret := _mock.Called(ctx)
4869-
4870- if len(ret) == 0 {
4871- panic("no return value specified for GoBack")
5489+// 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
5504+type MockHardwareSurveyor struct {
5505+ mock.Mock
5506+}
5507+
5508+type MockHardwareSurveyor_Expecter struct {
5509+ mock *mock.Mock
5510+}
5511+
5512+func (_m *MockHardwareSurveyor) EXPECT() *MockHardwareSurveyor_Expecter {
5513+ return &MockHardwareSurveyor_Expecter{mock: &_m.Mock}
5514+}
5515+
5516+// Survey provides a mock function for the type MockHardwareSurveyor
5517+func (_mock *MockHardwareSurveyor) Survey(ctx context.Context) port.HardwareInfo {
5518+ ret := _mock.Called(ctx)
5519+
5520+ if len(ret) == 0 {
5521+ panic("no return value specified for Survey")
48725522 }
48735523
4874- var r0 error
4875- if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
5524+ var r0 port.HardwareInfo
5525+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.HardwareInfo); ok {
48765526 r0 = returnFunc(ctx)
48775527 } else {
4878- r0 = ret.Error(0)
5528+ r0 = ret.Get(0).(port.HardwareInfo)
48795529 }
48805530 return r0
48815531 }
48825532
4883-// MockWebView_GoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoBack'
4884-type MockWebView_GoBack_Call struct {
5533+// MockHardwareSurveyor_Survey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Survey'
5534+type MockHardwareSurveyor_Survey_Call struct {
48855535 *mock.Call
48865536 }
48875537
4888-// GoBack is a helper method to define mock.On call
5538+// Survey is a helper method to define mock.On call
48895539 // - ctx context.Context
4890-func (_e *MockWebView_Expecter) GoBack(ctx interface{}) *MockWebView_GoBack_Call {
4891- return &MockWebView_GoBack_Call{Call: _e.mock.On("GoBack", ctx)}
5540+func (_e *MockHardwareSurveyor_Expecter) Survey(ctx interface{}) *MockHardwareSurveyor_Survey_Call {
5541+ return &MockHardwareSurveyor_Survey_Call{Call: _e.mock.On("Survey", ctx)}
48925542 }
48935543
4894-func (_c *MockWebView_GoBack_Call) Run(run func(ctx context.Context)) *MockWebView_GoBack_Call {
5544+func (_c *MockHardwareSurveyor_Survey_Call) Run(run func(ctx context.Context)) *MockHardwareSurveyor_Survey_Call {
48955545 _c.Call.Run(func(args mock.Arguments) {
48965546 var arg0 context.Context
48975547 if args[0] != nil {
@@ -4904,22 +5554,49 @@ func (_c *MockWebView_GoBack_Call) Run(run func(ctx context.Context)) *MockWebVi
49045554 return _c
49055555 }
49065556
4907-func (_c *MockWebView_GoBack_Call) Return(err error) *MockWebView_GoBack_Call {
4908- _c.Call.Return(err)
5557+func (_c *MockHardwareSurveyor_Survey_Call) Return(hardwareInfo port.HardwareInfo) *MockHardwareSurveyor_Survey_Call {
5558+ _c.Call.Return(hardwareInfo)
49095559 return _c
49105560 }
49115561
4912-func (_c *MockWebView_GoBack_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoBack_Call {
5562+func (_c *MockHardwareSurveyor_Survey_Call) RunAndReturn(run func(ctx context.Context) port.HardwareInfo) *MockHardwareSurveyor_Survey_Call {
49135563 _c.Call.Return(run)
49145564 return _c
49155565 }
49165566
4917-// GoForward provides a mock function for the type MockWebView
4918-func (_mock *MockWebView) GoForward(ctx context.Context) error {
5567+// 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
5582+type MockHomepageHistory struct {
5583+ mock.Mock
5584+}
5585+
5586+type MockHomepageHistory_Expecter struct {
5587+ mock *mock.Mock
5588+}
5589+
5590+func (_m *MockHomepageHistory) EXPECT() *MockHomepageHistory_Expecter {
5591+ return &MockHomepageHistory_Expecter{mock: &_m.Mock}
5592+}
5593+
5594+// ClearAll provides a mock function for the type MockHomepageHistory
5595+func (_mock *MockHomepageHistory) ClearAll(ctx context.Context) error {
49195596 ret := _mock.Called(ctx)
49205597
49215598 if len(ret) == 0 {
4922- panic("no return value specified for GoForward")
5599+ panic("no return value specified for ClearAll")
49235600 }
49245601
49255602 var r0 error
@@ -4931,18 +5608,18 @@ func (_mock *MockWebView) GoForward(ctx context.Context) error {
49315608 return r0
49325609 }
49335610
4934-// MockWebView_GoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoForward'
4935-type MockWebView_GoForward_Call struct {
5611+// MockHomepageHistory_ClearAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearAll'
5612+type MockHomepageHistory_ClearAll_Call struct {
49365613 *mock.Call
49375614 }
49385615
4939-// GoForward is a helper method to define mock.On call
5616+// ClearAll is a helper method to define mock.On call
49405617 // - ctx context.Context
4941-func (_e *MockWebView_Expecter) GoForward(ctx interface{}) *MockWebView_GoForward_Call {
4942- return &MockWebView_GoForward_Call{Call: _e.mock.On("GoForward", ctx)}
5618+func (_e *MockHomepageHistory_Expecter) ClearAll(ctx interface{}) *MockHomepageHistory_ClearAll_Call {
5619+ return &MockHomepageHistory_ClearAll_Call{Call: _e.mock.On("ClearAll", ctx)}
49435620 }
49445621
4945-func (_c *MockWebView_GoForward_Call) Run(run func(ctx context.Context)) *MockWebView_GoForward_Call {
5622+func (_c *MockHomepageHistory_ClearAll_Call) Run(run func(ctx context.Context)) *MockHomepageHistory_ClearAll_Call {
49465623 _c.Call.Run(func(args mock.Arguments) {
49475624 var arg0 context.Context
49485625 if args[0] != nil {
@@ -4955,279 +5632,371 @@ func (_c *MockWebView_GoForward_Call) Run(run func(ctx context.Context)) *MockWe
49555632 return _c
49565633 }
49575634
4958-func (_c *MockWebView_GoForward_Call) Return(err error) *MockWebView_GoForward_Call {
5635+func (_c *MockHomepageHistory_ClearAll_Call) Return(err error) *MockHomepageHistory_ClearAll_Call {
49595636 _c.Call.Return(err)
49605637 return _c
49615638 }
49625639
4963-func (_c *MockWebView_GoForward_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoForward_Call {
5640+func (_c *MockHomepageHistory_ClearAll_Call) RunAndReturn(run func(ctx context.Context) error) *MockHomepageHistory_ClearAll_Call {
49645641 _c.Call.Return(run)
49655642 return _c
49665643 }
49675644
4968-// ID provides a mock function for the type MockWebView
4969-func (_mock *MockWebView) ID() port.WebViewID {
4970- ret := _mock.Called()
5645+// ClearOlderThan provides a mock function for the type MockHomepageHistory
5646+func (_mock *MockHomepageHistory) ClearOlderThan(ctx context.Context, before time.Time) error {
5647+ ret := _mock.Called(ctx, before)
49715648
49725649 if len(ret) == 0 {
4973- panic("no return value specified for ID")
5650+ panic("no return value specified for ClearOlderThan")
49745651 }
49755652
4976- var r0 port.WebViewID
4977- if returnFunc, ok := ret.Get(0).(func() port.WebViewID); ok {
4978- r0 = returnFunc()
5653+ var r0 error
5654+ if returnFunc, ok := ret.Get(0).(func(context.Context, time.Time) error); ok {
5655+ r0 = returnFunc(ctx, before)
49795656 } else {
4980- r0 = ret.Get(0).(port.WebViewID)
5657+ r0 = ret.Error(0)
49815658 }
49825659 return r0
49835660 }
49845661
4985-// MockWebView_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
4986-type MockWebView_ID_Call struct {
5662+// MockHomepageHistory_ClearOlderThan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearOlderThan'
5663+type MockHomepageHistory_ClearOlderThan_Call struct {
49875664 *mock.Call
49885665 }
49895666
4990-// ID is a helper method to define mock.On call
4991-func (_e *MockWebView_Expecter) ID() *MockWebView_ID_Call {
4992- return &MockWebView_ID_Call{Call: _e.mock.On("ID")}
5667+// ClearOlderThan is a helper method to define mock.On call
5668+// - ctx context.Context
5669+// - before time.Time
5670+func (_e *MockHomepageHistory_Expecter) ClearOlderThan(ctx interface{}, before interface{}) *MockHomepageHistory_ClearOlderThan_Call {
5671+ return &MockHomepageHistory_ClearOlderThan_Call{Call: _e.mock.On("ClearOlderThan", ctx, before)}
49935672 }
49945673
4995-func (_c *MockWebView_ID_Call) Run(run func()) *MockWebView_ID_Call {
5674+func (_c *MockHomepageHistory_ClearOlderThan_Call) Run(run func(ctx context.Context, before time.Time)) *MockHomepageHistory_ClearOlderThan_Call {
49965675 _c.Call.Run(func(args mock.Arguments) {
4997- run()
5676+ var arg0 context.Context
5677+ if args[0] != nil {
5678+ arg0 = args[0].(context.Context)
5679+ }
5680+ var arg1 time.Time
5681+ if args[1] != nil {
5682+ arg1 = args[1].(time.Time)
5683+ }
5684+ run(
5685+ arg0,
5686+ arg1,
5687+ )
49985688 })
49995689 return _c
50005690 }
50015691
5002-func (_c *MockWebView_ID_Call) Return(webViewID port.WebViewID) *MockWebView_ID_Call {
5003- _c.Call.Return(webViewID)
5692+func (_c *MockHomepageHistory_ClearOlderThan_Call) Return(err error) *MockHomepageHistory_ClearOlderThan_Call {
5693+ _c.Call.Return(err)
50045694 return _c
50055695 }
50065696
5007-func (_c *MockWebView_ID_Call) RunAndReturn(run func() port.WebViewID) *MockWebView_ID_Call {
5697+func (_c *MockHomepageHistory_ClearOlderThan_Call) RunAndReturn(run func(ctx context.Context, before time.Time) error) *MockHomepageHistory_ClearOlderThan_Call {
50085698 _c.Call.Return(run)
50095699 return _c
50105700 }
50115701
5012-// IsDestroyed provides a mock function for the type MockWebView
5013-func (_mock *MockWebView) IsDestroyed() bool {
5014- ret := _mock.Called()
5702+// Delete provides a mock function for the type MockHomepageHistory
5703+func (_mock *MockHomepageHistory) Delete(ctx context.Context, id int64) error {
5704+ ret := _mock.Called(ctx, id)
50155705
50165706 if len(ret) == 0 {
5017- panic("no return value specified for IsDestroyed")
5707+ panic("no return value specified for Delete")
50185708 }
50195709
5020- var r0 bool
5021- if returnFunc, ok := ret.Get(0).(func() bool); ok {
5022- r0 = returnFunc()
5710+ var r0 error
5711+ if returnFunc, ok := ret.Get(0).(func(context.Context, int64) error); ok {
5712+ r0 = returnFunc(ctx, id)
50235713 } else {
5024- r0 = ret.Get(0).(bool)
5714+ r0 = ret.Error(0)
50255715 }
50265716 return r0
50275717 }
50285718
5029-// MockWebView_IsDestroyed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDestroyed'
5030-type MockWebView_IsDestroyed_Call struct {
5719+// MockHomepageHistory_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
5720+type MockHomepageHistory_Delete_Call struct {
50315721 *mock.Call
50325722 }
50335723
5034-// IsDestroyed is a helper method to define mock.On call
5035-func (_e *MockWebView_Expecter) IsDestroyed() *MockWebView_IsDestroyed_Call {
5036- return &MockWebView_IsDestroyed_Call{Call: _e.mock.On("IsDestroyed")}
5724+// Delete is a helper method to define mock.On call
5725+// - ctx context.Context
5726+// - id int64
5727+func (_e *MockHomepageHistory_Expecter) Delete(ctx interface{}, id interface{}) *MockHomepageHistory_Delete_Call {
5728+ return &MockHomepageHistory_Delete_Call{Call: _e.mock.On("Delete", ctx, id)}
50375729 }
50385730
5039-func (_c *MockWebView_IsDestroyed_Call) Run(run func()) *MockWebView_IsDestroyed_Call {
5731+func (_c *MockHomepageHistory_Delete_Call) Run(run func(ctx context.Context, id int64)) *MockHomepageHistory_Delete_Call {
50405732 _c.Call.Run(func(args mock.Arguments) {
5041- run()
5733+ var arg0 context.Context
5734+ if args[0] != nil {
5735+ arg0 = args[0].(context.Context)
5736+ }
5737+ var arg1 int64
5738+ if args[1] != nil {
5739+ arg1 = args[1].(int64)
5740+ }
5741+ run(
5742+ arg0,
5743+ arg1,
5744+ )
50425745 })
50435746 return _c
50445747 }
50455748
5046-func (_c *MockWebView_IsDestroyed_Call) Return(b bool) *MockWebView_IsDestroyed_Call {
5047- _c.Call.Return(b)
5749+func (_c *MockHomepageHistory_Delete_Call) Return(err error) *MockHomepageHistory_Delete_Call {
5750+ _c.Call.Return(err)
50485751 return _c
50495752 }
50505753
5051-func (_c *MockWebView_IsDestroyed_Call) RunAndReturn(run func() bool) *MockWebView_IsDestroyed_Call {
5754+func (_c *MockHomepageHistory_Delete_Call) RunAndReturn(run func(ctx context.Context, id int64) error) *MockHomepageHistory_Delete_Call {
50525755 _c.Call.Return(run)
50535756 return _c
50545757 }
50555758
5056-// IsFullscreen provides a mock function for the type MockWebView
5057-func (_mock *MockWebView) IsFullscreen() bool {
5058- ret := _mock.Called()
5759+// DeleteByDomain provides a mock function for the type MockHomepageHistory
5760+func (_mock *MockHomepageHistory) DeleteByDomain(ctx context.Context, domain string) error {
5761+ ret := _mock.Called(ctx, domain)
50595762
50605763 if len(ret) == 0 {
5061- panic("no return value specified for IsFullscreen")
5764+ panic("no return value specified for DeleteByDomain")
50625765 }
50635766
5064- var r0 bool
5065- if returnFunc, ok := ret.Get(0).(func() bool); ok {
5066- r0 = returnFunc()
5767+ var r0 error
5768+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
5769+ r0 = returnFunc(ctx, domain)
50675770 } else {
5068- r0 = ret.Get(0).(bool)
5771+ r0 = ret.Error(0)
50695772 }
50705773 return r0
50715774 }
50725775
5073-// MockWebView_IsFullscreen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsFullscreen'
5074-type MockWebView_IsFullscreen_Call struct {
5776+// MockHomepageHistory_DeleteByDomain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByDomain'
5777+type MockHomepageHistory_DeleteByDomain_Call struct {
50755778 *mock.Call
50765779 }
50775780
5078-// IsFullscreen is a helper method to define mock.On call
5079-func (_e *MockWebView_Expecter) IsFullscreen() *MockWebView_IsFullscreen_Call {
5080- return &MockWebView_IsFullscreen_Call{Call: _e.mock.On("IsFullscreen")}
5781+// DeleteByDomain is a helper method to define mock.On call
5782+// - ctx context.Context
5783+// - domain string
5784+func (_e *MockHomepageHistory_Expecter) DeleteByDomain(ctx interface{}, domain interface{}) *MockHomepageHistory_DeleteByDomain_Call {
5785+ return &MockHomepageHistory_DeleteByDomain_Call{Call: _e.mock.On("DeleteByDomain", ctx, domain)}
50815786 }
50825787
5083-func (_c *MockWebView_IsFullscreen_Call) Run(run func()) *MockWebView_IsFullscreen_Call {
5788+func (_c *MockHomepageHistory_DeleteByDomain_Call) Run(run func(ctx context.Context, domain string)) *MockHomepageHistory_DeleteByDomain_Call {
50845789 _c.Call.Run(func(args mock.Arguments) {
5085- run()
5790+ var arg0 context.Context
5791+ if args[0] != nil {
5792+ arg0 = args[0].(context.Context)
5793+ }
5794+ var arg1 string
5795+ if args[1] != nil {
5796+ arg1 = args[1].(string)
5797+ }
5798+ run(
5799+ arg0,
5800+ arg1,
5801+ )
50865802 })
50875803 return _c
50885804 }
50895805
5090-func (_c *MockWebView_IsFullscreen_Call) Return(b bool) *MockWebView_IsFullscreen_Call {
5091- _c.Call.Return(b)
5806+func (_c *MockHomepageHistory_DeleteByDomain_Call) Return(err error) *MockHomepageHistory_DeleteByDomain_Call {
5807+ _c.Call.Return(err)
50925808 return _c
50935809 }
50945810
5095-func (_c *MockWebView_IsFullscreen_Call) RunAndReturn(run func() bool) *MockWebView_IsFullscreen_Call {
5811+func (_c *MockHomepageHistory_DeleteByDomain_Call) RunAndReturn(run func(ctx context.Context, domain string) error) *MockHomepageHistory_DeleteByDomain_Call {
50965812 _c.Call.Return(run)
50975813 return _c
50985814 }
50995815
5100-// IsLoading provides a mock function for the type MockWebView
5101-func (_mock *MockWebView) IsLoading() bool {
5102- ret := _mock.Called()
5816+// GetAnalytics provides a mock function for the type MockHomepageHistory
5817+func (_mock *MockHomepageHistory) GetAnalytics(ctx context.Context) (*entity.HistoryAnalytics, error) {
5818+ ret := _mock.Called(ctx)
51035819
51045820 if len(ret) == 0 {
5105- panic("no return value specified for IsLoading")
5821+ panic("no return value specified for GetAnalytics")
51065822 }
51075823
5108- var r0 bool
5109- if returnFunc, ok := ret.Get(0).(func() bool); ok {
5110- r0 = returnFunc()
5824+ var r0 *entity.HistoryAnalytics
5825+ var r1 error
5826+ if returnFunc, ok := ret.Get(0).(func(context.Context) (*entity.HistoryAnalytics, error)); ok {
5827+ return returnFunc(ctx)
5828+ }
5829+ if returnFunc, ok := ret.Get(0).(func(context.Context) *entity.HistoryAnalytics); ok {
5830+ r0 = returnFunc(ctx)
51115831 } else {
5112- r0 = ret.Get(0).(bool)
5832+ if ret.Get(0) != nil {
5833+ r0 = ret.Get(0).(*entity.HistoryAnalytics)
5834+ }
51135835 }
5114- return r0
5836+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
5837+ r1 = returnFunc(ctx)
5838+ } else {
5839+ r1 = ret.Error(1)
5840+ }
5841+ return r0, r1
51155842 }
51165843
5117-// MockWebView_IsLoading_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoading'
5118-type MockWebView_IsLoading_Call struct {
5844+// MockHomepageHistory_GetAnalytics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAnalytics'
5845+type MockHomepageHistory_GetAnalytics_Call struct {
51195846 *mock.Call
51205847 }
51215848
5122-// IsLoading is a helper method to define mock.On call
5123-func (_e *MockWebView_Expecter) IsLoading() *MockWebView_IsLoading_Call {
5124- return &MockWebView_IsLoading_Call{Call: _e.mock.On("IsLoading")}
5849+// GetAnalytics is a helper method to define mock.On call
5850+// - ctx context.Context
5851+func (_e *MockHomepageHistory_Expecter) GetAnalytics(ctx interface{}) *MockHomepageHistory_GetAnalytics_Call {
5852+ return &MockHomepageHistory_GetAnalytics_Call{Call: _e.mock.On("GetAnalytics", ctx)}
51255853 }
51265854
5127-func (_c *MockWebView_IsLoading_Call) Run(run func()) *MockWebView_IsLoading_Call {
5855+func (_c *MockHomepageHistory_GetAnalytics_Call) Run(run func(ctx context.Context)) *MockHomepageHistory_GetAnalytics_Call {
51285856 _c.Call.Run(func(args mock.Arguments) {
5129- run()
5857+ var arg0 context.Context
5858+ if args[0] != nil {
5859+ arg0 = args[0].(context.Context)
5860+ }
5861+ run(
5862+ arg0,
5863+ )
51305864 })
51315865 return _c
51325866 }
51335867
5134-func (_c *MockWebView_IsLoading_Call) Return(b bool) *MockWebView_IsLoading_Call {
5135- _c.Call.Return(b)
5868+func (_c *MockHomepageHistory_GetAnalytics_Call) Return(historyAnalytics *entity.HistoryAnalytics, err error) *MockHomepageHistory_GetAnalytics_Call {
5869+ _c.Call.Return(historyAnalytics, err)
51365870 return _c
51375871 }
51385872
5139-func (_c *MockWebView_IsLoading_Call) RunAndReturn(run func() bool) *MockWebView_IsLoading_Call {
5873+func (_c *MockHomepageHistory_GetAnalytics_Call) RunAndReturn(run func(ctx context.Context) (*entity.HistoryAnalytics, error)) *MockHomepageHistory_GetAnalytics_Call {
51405874 _c.Call.Return(run)
51415875 return _c
51425876 }
51435877
5144-// IsPlayingAudio provides a mock function for the type MockWebView
5145-func (_mock *MockWebView) IsPlayingAudio() bool {
5146- ret := _mock.Called()
5878+// GetDomainStats provides a mock function for the type MockHomepageHistory
5879+func (_mock *MockHomepageHistory) GetDomainStats(ctx context.Context, limit int) ([]*entity.DomainStat, error) {
5880+ ret := _mock.Called(ctx, limit)
51475881
51485882 if len(ret) == 0 {
5149- panic("no return value specified for IsPlayingAudio")
5883+ panic("no return value specified for GetDomainStats")
51505884 }
51515885
5152- var r0 bool
5153- if returnFunc, ok := ret.Get(0).(func() bool); ok {
5154- r0 = returnFunc()
5886+ var r0 []*entity.DomainStat
5887+ var r1 error
5888+ if returnFunc, ok := ret.Get(0).(func(context.Context, int) ([]*entity.DomainStat, error)); ok {
5889+ return returnFunc(ctx, limit)
5890+ }
5891+ if returnFunc, ok := ret.Get(0).(func(context.Context, int) []*entity.DomainStat); ok {
5892+ r0 = returnFunc(ctx, limit)
51555893 } else {
5156- r0 = ret.Get(0).(bool)
5894+ if ret.Get(0) != nil {
5895+ r0 = ret.Get(0).([]*entity.DomainStat)
5896+ }
51575897 }
5158- return r0
5898+ if returnFunc, ok := ret.Get(1).(func(context.Context, int) error); ok {
5899+ r1 = returnFunc(ctx, limit)
5900+ } else {
5901+ r1 = ret.Error(1)
5902+ }
5903+ return r0, r1
51595904 }
51605905
5161-// MockWebView_IsPlayingAudio_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPlayingAudio'
5162-type MockWebView_IsPlayingAudio_Call struct {
5906+// MockHomepageHistory_GetDomainStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainStats'
5907+type MockHomepageHistory_GetDomainStats_Call struct {
51635908 *mock.Call
51645909 }
51655910
5166-// IsPlayingAudio is a helper method to define mock.On call
5167-func (_e *MockWebView_Expecter) IsPlayingAudio() *MockWebView_IsPlayingAudio_Call {
5168- return &MockWebView_IsPlayingAudio_Call{Call: _e.mock.On("IsPlayingAudio")}
5911+// GetDomainStats is a helper method to define mock.On call
5912+// - ctx context.Context
5913+// - limit int
5914+func (_e *MockHomepageHistory_Expecter) GetDomainStats(ctx interface{}, limit interface{}) *MockHomepageHistory_GetDomainStats_Call {
5915+ return &MockHomepageHistory_GetDomainStats_Call{Call: _e.mock.On("GetDomainStats", ctx, limit)}
51695916 }
51705917
5171-func (_c *MockWebView_IsPlayingAudio_Call) Run(run func()) *MockWebView_IsPlayingAudio_Call {
5918+func (_c *MockHomepageHistory_GetDomainStats_Call) Run(run func(ctx context.Context, limit int)) *MockHomepageHistory_GetDomainStats_Call {
51725919 _c.Call.Run(func(args mock.Arguments) {
5173- run()
5174- })
5175- return _c
5176-}
5920+ var arg0 context.Context
5921+ if args[0] != nil {
5922+ arg0 = args[0].(context.Context)
5923+ }
5924+ var arg1 int
5925+ if args[1] != nil {
5926+ arg1 = args[1].(int)
5927+ }
5928+ run(
5929+ arg0,
5930+ arg1,
5931+ )
5932+ })
5933+ return _c
5934+}
51775935
5178-func (_c *MockWebView_IsPlayingAudio_Call) Return(b bool) *MockWebView_IsPlayingAudio_Call {
5179- _c.Call.Return(b)
5936+func (_c *MockHomepageHistory_GetDomainStats_Call) Return(domainStats []*entity.DomainStat, err error) *MockHomepageHistory_GetDomainStats_Call {
5937+ _c.Call.Return(domainStats, err)
51805938 return _c
51815939 }
51825940
5183-func (_c *MockWebView_IsPlayingAudio_Call) RunAndReturn(run func() bool) *MockWebView_IsPlayingAudio_Call {
5941+func (_c *MockHomepageHistory_GetDomainStats_Call) RunAndReturn(run func(ctx context.Context, limit int) ([]*entity.DomainStat, error)) *MockHomepageHistory_GetDomainStats_Call {
51845942 _c.Call.Return(run)
51855943 return _c
51865944 }
51875945
5188-// LoadHTML provides a mock function for the type MockWebView
5189-func (_mock *MockWebView) LoadHTML(ctx context.Context, content string, baseURI string) error {
5190- ret := _mock.Called(ctx, content, baseURI)
5946+// GetRecent provides a mock function for the type MockHomepageHistory
5947+func (_mock *MockHomepageHistory) GetRecent(ctx context.Context, limit int, offset int) ([]*entity.HistoryEntry, error) {
5948+ ret := _mock.Called(ctx, limit, offset)
51915949
51925950 if len(ret) == 0 {
5193- panic("no return value specified for LoadHTML")
5951+ panic("no return value specified for GetRecent")
51945952 }
51955953
5196- var r0 error
5197- if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
5198- r0 = returnFunc(ctx, content, baseURI)
5954+ var r0 []*entity.HistoryEntry
5955+ var r1 error
5956+ if returnFunc, ok := ret.Get(0).(func(context.Context, int, int) ([]*entity.HistoryEntry, error)); ok {
5957+ return returnFunc(ctx, limit, offset)
5958+ }
5959+ if returnFunc, ok := ret.Get(0).(func(context.Context, int, int) []*entity.HistoryEntry); ok {
5960+ r0 = returnFunc(ctx, limit, offset)
51995961 } else {
5200- r0 = ret.Error(0)
5962+ if ret.Get(0) != nil {
5963+ r0 = ret.Get(0).([]*entity.HistoryEntry)
5964+ }
52015965 }
5202- return r0
5966+ if returnFunc, ok := ret.Get(1).(func(context.Context, int, int) error); ok {
5967+ r1 = returnFunc(ctx, limit, offset)
5968+ } else {
5969+ r1 = ret.Error(1)
5970+ }
5971+ return r0, r1
52035972 }
52045973
5205-// MockWebView_LoadHTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadHTML'
5206-type MockWebView_LoadHTML_Call struct {
5974+// MockHomepageHistory_GetRecent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecent'
5975+type MockHomepageHistory_GetRecent_Call struct {
52075976 *mock.Call
52085977 }
52095978
5210-// LoadHTML is a helper method to define mock.On call
5979+// GetRecent is a helper method to define mock.On call
52115980 // - ctx context.Context
5212-// - content string
5213-// - baseURI string
5214-func (_e *MockWebView_Expecter) LoadHTML(ctx interface{}, content interface{}, baseURI interface{}) *MockWebView_LoadHTML_Call {
5215- return &MockWebView_LoadHTML_Call{Call: _e.mock.On("LoadHTML", ctx, content, baseURI)}
5981+// - limit int
5982+// - offset int
5983+func (_e *MockHomepageHistory_Expecter) GetRecent(ctx interface{}, limit interface{}, offset interface{}) *MockHomepageHistory_GetRecent_Call {
5984+ return &MockHomepageHistory_GetRecent_Call{Call: _e.mock.On("GetRecent", ctx, limit, offset)}
52165985 }
52175986
5218-func (_c *MockWebView_LoadHTML_Call) Run(run func(ctx context.Context, content string, baseURI string)) *MockWebView_LoadHTML_Call {
5987+func (_c *MockHomepageHistory_GetRecent_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockHomepageHistory_GetRecent_Call {
52195988 _c.Call.Run(func(args mock.Arguments) {
52205989 var arg0 context.Context
52215990 if args[0] != nil {
52225991 arg0 = args[0].(context.Context)
52235992 }
5224- var arg1 string
5993+ var arg1 int
52255994 if args[1] != nil {
5226- arg1 = args[1].(string)
5995+ arg1 = args[1].(int)
52275996 }
5228- var arg2 string
5997+ var arg2 int
52295998 if args[2] != nil {
5230- arg2 = args[2].(string)
5999+ arg2 = args[2].(int)
52316000 }
52326001 run(
52336002 arg0,
@@ -5238,54 +6007,65 @@ func (_c *MockWebView_LoadHTML_Call) Run(run func(ctx context.Context, content s
52386007 return _c
52396008 }
52406009
5241-func (_c *MockWebView_LoadHTML_Call) Return(err error) *MockWebView_LoadHTML_Call {
5242- _c.Call.Return(err)
6010+func (_c *MockHomepageHistory_GetRecent_Call) Return(historyEntrys []*entity.HistoryEntry, err error) *MockHomepageHistory_GetRecent_Call {
6011+ _c.Call.Return(historyEntrys, err)
52436012 return _c
52446013 }
52456014
5246-func (_c *MockWebView_LoadHTML_Call) RunAndReturn(run func(ctx context.Context, content string, baseURI string) error) *MockWebView_LoadHTML_Call {
6015+func (_c *MockHomepageHistory_GetRecent_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*entity.HistoryEntry, error)) *MockHomepageHistory_GetRecent_Call {
52476016 _c.Call.Return(run)
52486017 return _c
52496018 }
52506019
5251-// LoadURI provides a mock function for the type MockWebView
5252-func (_mock *MockWebView) LoadURI(ctx context.Context, uri string) error {
5253- ret := _mock.Called(ctx, uri)
6020+// Search provides a mock function for the type MockHomepageHistory
6021+func (_mock *MockHomepageHistory) Search(ctx context.Context, input port.HistorySearchInput) (*port.HistorySearchOutput, error) {
6022+ ret := _mock.Called(ctx, input)
52546023
52556024 if len(ret) == 0 {
5256- panic("no return value specified for LoadURI")
6025+ panic("no return value specified for Search")
52576026 }
52586027
5259- var r0 error
5260- if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
5261- r0 = returnFunc(ctx, uri)
6028+ var r0 *port.HistorySearchOutput
6029+ var r1 error
6030+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.HistorySearchInput) (*port.HistorySearchOutput, error)); ok {
6031+ return returnFunc(ctx, input)
6032+ }
6033+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.HistorySearchInput) *port.HistorySearchOutput); ok {
6034+ r0 = returnFunc(ctx, input)
52626035 } else {
5263- r0 = ret.Error(0)
6036+ if ret.Get(0) != nil {
6037+ r0 = ret.Get(0).(*port.HistorySearchOutput)
6038+ }
52646039 }
5265- return r0
6040+ if returnFunc, ok := ret.Get(1).(func(context.Context, port.HistorySearchInput) error); ok {
6041+ r1 = returnFunc(ctx, input)
6042+ } else {
6043+ r1 = ret.Error(1)
6044+ }
6045+ return r0, r1
52666046 }
52676047
5268-// MockWebView_LoadURI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadURI'
5269-type MockWebView_LoadURI_Call struct {
6048+// MockHomepageHistory_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
6049+type MockHomepageHistory_Search_Call struct {
52706050 *mock.Call
52716051 }
52726052
5273-// LoadURI is a helper method to define mock.On call
6053+// Search is a helper method to define mock.On call
52746054 // - ctx context.Context
5275-// - uri string
5276-func (_e *MockWebView_Expecter) LoadURI(ctx interface{}, uri interface{}) *MockWebView_LoadURI_Call {
5277- return &MockWebView_LoadURI_Call{Call: _e.mock.On("LoadURI", ctx, uri)}
6055+// - input port.HistorySearchInput
6056+func (_e *MockHomepageHistory_Expecter) Search(ctx interface{}, input interface{}) *MockHomepageHistory_Search_Call {
6057+ return &MockHomepageHistory_Search_Call{Call: _e.mock.On("Search", ctx, input)}
52786058 }
52796059
5280-func (_c *MockWebView_LoadURI_Call) Run(run func(ctx context.Context, uri string)) *MockWebView_LoadURI_Call {
6060+func (_c *MockHomepageHistory_Search_Call) Run(run func(ctx context.Context, input port.HistorySearchInput)) *MockHomepageHistory_Search_Call {
52816061 _c.Call.Run(func(args mock.Arguments) {
52826062 var arg0 context.Context
52836063 if args[0] != nil {
52846064 arg0 = args[0].(context.Context)
52856065 }
5286- var arg1 string
6066+ var arg1 port.HistorySearchInput
52876067 if args[1] != nil {
5288- arg1 = args[1].(string)
6068+ arg1 = args[1].(port.HistorySearchInput)
52896069 }
52906070 run(
52916071 arg0,
@@ -5295,178 +6075,286 @@ func (_c *MockWebView_LoadURI_Call) Run(run func(ctx context.Context, uri string
52956075 return _c
52966076 }
52976077
5298-func (_c *MockWebView_LoadURI_Call) Return(err error) *MockWebView_LoadURI_Call {
5299- _c.Call.Return(err)
6078+func (_c *MockHomepageHistory_Search_Call) Return(historySearchOutput *port.HistorySearchOutput, err error) *MockHomepageHistory_Search_Call {
6079+ _c.Call.Return(historySearchOutput, err)
53006080 return _c
53016081 }
53026082
5303-func (_c *MockWebView_LoadURI_Call) RunAndReturn(run func(ctx context.Context, uri string) error) *MockWebView_LoadURI_Call {
6083+func (_c *MockHomepageHistory_Search_Call) RunAndReturn(run func(ctx context.Context, input port.HistorySearchInput) (*port.HistorySearchOutput, error)) *MockHomepageHistory_Search_Call {
53046084 _c.Call.Return(run)
53056085 return _c
53066086 }
53076087
5308-// Reload provides a mock function for the type MockWebView
5309-func (_mock *MockWebView) Reload(ctx context.Context) error {
5310- ret := _mock.Called(ctx)
6088+// 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
6103+type MockHomepageFavorites struct {
6104+ mock.Mock
6105+}
6106+
6107+type MockHomepageFavorites_Expecter struct {
6108+ mock *mock.Mock
6109+}
6110+
6111+func (_m *MockHomepageFavorites) EXPECT() *MockHomepageFavorites_Expecter {
6112+ return &MockHomepageFavorites_Expecter{mock: &_m.Mock}
6113+}
6114+
6115+// AddTag provides a mock function for the type MockHomepageFavorites
6116+func (_mock *MockHomepageFavorites) AddTag(ctx context.Context, name string, color string) (*entity.Tag, error) {
6117+ ret := _mock.Called(ctx, name, color)
53116118
53126119 if len(ret) == 0 {
5313- panic("no return value specified for Reload")
6120+ panic("no return value specified for AddTag")
53146121 }
53156122
5316- var r0 error
5317- if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
5318- r0 = returnFunc(ctx)
6123+ var r0 *entity.Tag
6124+ var r1 error
6125+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (*entity.Tag, error)); ok {
6126+ return returnFunc(ctx, name, color)
6127+ }
6128+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) *entity.Tag); ok {
6129+ r0 = returnFunc(ctx, name, color)
53196130 } else {
5320- r0 = ret.Error(0)
6131+ if ret.Get(0) != nil {
6132+ r0 = ret.Get(0).(*entity.Tag)
6133+ }
53216134 }
5322- return r0
6135+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
6136+ r1 = returnFunc(ctx, name, color)
6137+ } else {
6138+ r1 = ret.Error(1)
6139+ }
6140+ return r0, r1
53236141 }
53246142
5325-// MockWebView_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
5326-type MockWebView_Reload_Call struct {
6143+// MockHomepageFavorites_AddTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTag'
6144+type MockHomepageFavorites_AddTag_Call struct {
53276145 *mock.Call
53286146 }
53296147
5330-// Reload is a helper method to define mock.On call
6148+// AddTag is a helper method to define mock.On call
53316149 // - ctx context.Context
5332-func (_e *MockWebView_Expecter) Reload(ctx interface{}) *MockWebView_Reload_Call {
5333- return &MockWebView_Reload_Call{Call: _e.mock.On("Reload", ctx)}
6150+// - name string
6151+// - color string
6152+func (_e *MockHomepageFavorites_Expecter) AddTag(ctx interface{}, name interface{}, color interface{}) *MockHomepageFavorites_AddTag_Call {
6153+ return &MockHomepageFavorites_AddTag_Call{Call: _e.mock.On("AddTag", ctx, name, color)}
53346154 }
53356155
5336-func (_c *MockWebView_Reload_Call) Run(run func(ctx context.Context)) *MockWebView_Reload_Call {
6156+func (_c *MockHomepageFavorites_AddTag_Call) Run(run func(ctx context.Context, name string, color string)) *MockHomepageFavorites_AddTag_Call {
53376157 _c.Call.Run(func(args mock.Arguments) {
53386158 var arg0 context.Context
53396159 if args[0] != nil {
53406160 arg0 = args[0].(context.Context)
53416161 }
6162+ var arg1 string
6163+ if args[1] != nil {
6164+ arg1 = args[1].(string)
6165+ }
6166+ var arg2 string
6167+ if args[2] != nil {
6168+ arg2 = args[2].(string)
6169+ }
53426170 run(
53436171 arg0,
6172+ arg1,
6173+ arg2,
53446174 )
53456175 })
53466176 return _c
53476177 }
53486178
5349-func (_c *MockWebView_Reload_Call) Return(err error) *MockWebView_Reload_Call {
5350- _c.Call.Return(err)
6179+func (_c *MockHomepageFavorites_AddTag_Call) Return(tag *entity.Tag, err error) *MockHomepageFavorites_AddTag_Call {
6180+ _c.Call.Return(tag, err)
53516181 return _c
53526182 }
53536183
5354-func (_c *MockWebView_Reload_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Reload_Call {
6184+func (_c *MockHomepageFavorites_AddTag_Call) RunAndReturn(run func(ctx context.Context, name string, color string) (*entity.Tag, error)) *MockHomepageFavorites_AddTag_Call {
53556185 _c.Call.Return(run)
53566186 return _c
53576187 }
53586188
5359-// ReloadBypassCache provides a mock function for the type MockWebView
5360-func (_mock *MockWebView) ReloadBypassCache(ctx context.Context) error {
5361- ret := _mock.Called(ctx)
6189+// CreateFolder provides a mock function for the type MockHomepageFavorites
6190+func (_mock *MockHomepageFavorites) CreateFolder(ctx context.Context, name string, parentID *entity.FolderID) (*entity.Folder, error) {
6191+ ret := _mock.Called(ctx, name, parentID)
53626192
53636193 if len(ret) == 0 {
5364- panic("no return value specified for ReloadBypassCache")
6194+ panic("no return value specified for CreateFolder")
53656195 }
53666196
5367- var r0 error
5368- if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
5369- r0 = returnFunc(ctx)
6197+ var r0 *entity.Folder
6198+ var r1 error
6199+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, *entity.FolderID) (*entity.Folder, error)); ok {
6200+ return returnFunc(ctx, name, parentID)
6201+ }
6202+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, *entity.FolderID) *entity.Folder); ok {
6203+ r0 = returnFunc(ctx, name, parentID)
53706204 } else {
5371- r0 = ret.Error(0)
6205+ if ret.Get(0) != nil {
6206+ r0 = ret.Get(0).(*entity.Folder)
6207+ }
53726208 }
5373- return r0
6209+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, *entity.FolderID) error); ok {
6210+ r1 = returnFunc(ctx, name, parentID)
6211+ } else {
6212+ r1 = ret.Error(1)
6213+ }
6214+ return r0, r1
53746215 }
53756216
5376-// MockWebView_ReloadBypassCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReloadBypassCache'
5377-type MockWebView_ReloadBypassCache_Call struct {
6217+// MockHomepageFavorites_CreateFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFolder'
6218+type MockHomepageFavorites_CreateFolder_Call struct {
53786219 *mock.Call
53796220 }
53806221
5381-// ReloadBypassCache is a helper method to define mock.On call
6222+// CreateFolder is a helper method to define mock.On call
53826223 // - ctx context.Context
5383-func (_e *MockWebView_Expecter) ReloadBypassCache(ctx interface{}) *MockWebView_ReloadBypassCache_Call {
5384- return &MockWebView_ReloadBypassCache_Call{Call: _e.mock.On("ReloadBypassCache", ctx)}
6224+// - name string
6225+// - parentID *entity.FolderID
6226+func (_e *MockHomepageFavorites_Expecter) CreateFolder(ctx interface{}, name interface{}, parentID interface{}) *MockHomepageFavorites_CreateFolder_Call {
6227+ return &MockHomepageFavorites_CreateFolder_Call{Call: _e.mock.On("CreateFolder", ctx, name, parentID)}
53856228 }
53866229
5387-func (_c *MockWebView_ReloadBypassCache_Call) Run(run func(ctx context.Context)) *MockWebView_ReloadBypassCache_Call {
6230+func (_c *MockHomepageFavorites_CreateFolder_Call) Run(run func(ctx context.Context, name string, parentID *entity.FolderID)) *MockHomepageFavorites_CreateFolder_Call {
53886231 _c.Call.Run(func(args mock.Arguments) {
53896232 var arg0 context.Context
53906233 if args[0] != nil {
53916234 arg0 = args[0].(context.Context)
53926235 }
6236+ var arg1 string
6237+ if args[1] != nil {
6238+ arg1 = args[1].(string)
6239+ }
6240+ var arg2 *entity.FolderID
6241+ if args[2] != nil {
6242+ arg2 = args[2].(*entity.FolderID)
6243+ }
53936244 run(
53946245 arg0,
6246+ arg1,
6247+ arg2,
53956248 )
53966249 })
53976250 return _c
53986251 }
53996252
5400-func (_c *MockWebView_ReloadBypassCache_Call) Return(err error) *MockWebView_ReloadBypassCache_Call {
5401- _c.Call.Return(err)
6253+func (_c *MockHomepageFavorites_CreateFolder_Call) Return(folder *entity.Folder, err error) *MockHomepageFavorites_CreateFolder_Call {
6254+ _c.Call.Return(folder, err)
54026255 return _c
54036256 }
54046257
5405-func (_c *MockWebView_ReloadBypassCache_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_ReloadBypassCache_Call {
6258+func (_c *MockHomepageFavorites_CreateFolder_Call) RunAndReturn(run func(ctx context.Context, name string, parentID *entity.FolderID) (*entity.Folder, error)) *MockHomepageFavorites_CreateFolder_Call {
54066259 _c.Call.Return(run)
54076260 return _c
54086261 }
54096262
5410-// ResetBackgroundToDefault provides a mock function for the type MockWebView
5411-func (_mock *MockWebView) ResetBackgroundToDefault() {
5412- _mock.Called()
5413- return
6263+// 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
54146278 }
54156279
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 {
54186282 *mock.Call
54196283 }
54206284
5421-// ResetBackgroundToDefault is a helper method to define mock.On call
5422-func (_e *MockWebView_Expecter) ResetBackgroundToDefault() *MockWebView_ResetBackgroundToDefault_Call {
5423- return &MockWebView_ResetBackgroundToDefault_Call{Call: _e.mock.On("ResetBackgroundToDefault")}
6285+// DeleteFolder is a helper method to define mock.On call
6286+// - ctx context.Context
6287+// - id entity.FolderID
6288+func (_e *MockHomepageFavorites_Expecter) DeleteFolder(ctx interface{}, id interface{}) *MockHomepageFavorites_DeleteFolder_Call {
6289+ return &MockHomepageFavorites_DeleteFolder_Call{Call: _e.mock.On("DeleteFolder", ctx, id)}
54246290 }
54256291
5426-func (_c *MockWebView_ResetBackgroundToDefault_Call) Run(run func()) *MockWebView_ResetBackgroundToDefault_Call {
6292+func (_c *MockHomepageFavorites_DeleteFolder_Call) Run(run func(ctx context.Context, id entity.FolderID)) *MockHomepageFavorites_DeleteFolder_Call {
54276293 _c.Call.Run(func(args mock.Arguments) {
5428- run()
6294+ var arg0 context.Context
6295+ if args[0] != nil {
6296+ arg0 = args[0].(context.Context)
6297+ }
6298+ var arg1 entity.FolderID
6299+ if args[1] != nil {
6300+ arg1 = args[1].(entity.FolderID)
6301+ }
6302+ run(
6303+ arg0,
6304+ arg1,
6305+ )
54296306 })
54306307 return _c
54316308 }
54326309
5433-func (_c *MockWebView_ResetBackgroundToDefault_Call) Return() *MockWebView_ResetBackgroundToDefault_Call {
5434- _c.Call.Return()
6310+func (_c *MockHomepageFavorites_DeleteFolder_Call) Return(err error) *MockHomepageFavorites_DeleteFolder_Call {
6311+ _c.Call.Return(err)
54356312 return _c
54366313 }
54376314
5438-func (_c *MockWebView_ResetBackgroundToDefault_Call) RunAndReturn(run func()) *MockWebView_ResetBackgroundToDefault_Call {
5439- _c.Run(run)
6315+func (_c *MockHomepageFavorites_DeleteFolder_Call) RunAndReturn(run func(ctx context.Context, id entity.FolderID) error) *MockHomepageFavorites_DeleteFolder_Call {
6316+ _c.Call.Return(run)
54406317 return _c
54416318 }
54426319
5443-// RunJavaScript provides a mock function for the type MockWebView
5444-func (_mock *MockWebView) RunJavaScript(ctx context.Context, script string) {
5445- _mock.Called(ctx, script)
5446- return
6320+// DeleteTag provides a mock function for the type MockHomepageFavorites
6321+func (_mock *MockHomepageFavorites) DeleteTag(ctx context.Context, id entity.TagID) error {
6322+ ret := _mock.Called(ctx, id)
6323+
6324+ if len(ret) == 0 {
6325+ panic("no return value specified for DeleteTag")
6326+ }
6327+
6328+ var r0 error
6329+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.TagID) error); ok {
6330+ r0 = returnFunc(ctx, id)
6331+ } else {
6332+ r0 = ret.Error(0)
6333+ }
6334+ return r0
54476335 }
54486336
5449-// MockWebView_RunJavaScript_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunJavaScript'
5450-type MockWebView_RunJavaScript_Call struct {
6337+// MockHomepageFavorites_DeleteTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTag'
6338+type MockHomepageFavorites_DeleteTag_Call struct {
54516339 *mock.Call
54526340 }
54536341
5454-// RunJavaScript is a helper method to define mock.On call
6342+// DeleteTag is a helper method to define mock.On call
54556343 // - ctx context.Context
5456-// - script string
5457-func (_e *MockWebView_Expecter) RunJavaScript(ctx interface{}, script interface{}) *MockWebView_RunJavaScript_Call {
5458- return &MockWebView_RunJavaScript_Call{Call: _e.mock.On("RunJavaScript", ctx, script)}
6344+// - id entity.TagID
6345+func (_e *MockHomepageFavorites_Expecter) DeleteTag(ctx interface{}, id interface{}) *MockHomepageFavorites_DeleteTag_Call {
6346+ return &MockHomepageFavorites_DeleteTag_Call{Call: _e.mock.On("DeleteTag", ctx, id)}
54596347 }
54606348
5461-func (_c *MockWebView_RunJavaScript_Call) Run(run func(ctx context.Context, script string)) *MockWebView_RunJavaScript_Call {
6349+func (_c *MockHomepageFavorites_DeleteTag_Call) Run(run func(ctx context.Context, id entity.TagID)) *MockHomepageFavorites_DeleteTag_Call {
54626350 _c.Call.Run(func(args mock.Arguments) {
54636351 var arg0 context.Context
54646352 if args[0] != nil {
54656353 arg0 = args[0].(context.Context)
54666354 }
5467- var arg1 string
6355+ var arg1 entity.TagID
54686356 if args[1] != nil {
5469- arg1 = args[1].(string)
6357+ arg1 = args[1].(entity.TagID)
54706358 }
54716359 run(
54726360 arg0,
@@ -5476,96 +6364,122 @@ func (_c *MockWebView_RunJavaScript_Call) Run(run func(ctx context.Context, scri
54766364 return _c
54776365 }
54786366
5479-func (_c *MockWebView_RunJavaScript_Call) Return() *MockWebView_RunJavaScript_Call {
5480- _c.Call.Return()
6367+func (_c *MockHomepageFavorites_DeleteTag_Call) Return(err error) *MockHomepageFavorites_DeleteTag_Call {
6368+ _c.Call.Return(err)
54816369 return _c
54826370 }
54836371
5484-func (_c *MockWebView_RunJavaScript_Call) RunAndReturn(run func(ctx context.Context, script string)) *MockWebView_RunJavaScript_Call {
5485- _c.Run(run)
6372+func (_c *MockHomepageFavorites_DeleteTag_Call) RunAndReturn(run func(ctx context.Context, id entity.TagID) error) *MockHomepageFavorites_DeleteTag_Call {
6373+ _c.Call.Return(run)
54866374 return _c
54876375 }
54886376
5489-// SetBackgroundColor provides a mock function for the type MockWebView
5490-func (_mock *MockWebView) SetBackgroundColor(r float64, g float64, b float64, a float64) {
5491- _mock.Called(r, g, b, a)
5492- return
5493-}
6377+// GetAll provides a mock function for the type MockHomepageFavorites
6378+func (_mock *MockHomepageFavorites) GetAll(ctx context.Context) ([]*entity.Favorite, error) {
6379+ ret := _mock.Called(ctx)
54946380
5495-// MockWebView_SetBackgroundColor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBackgroundColor'
5496-type MockWebView_SetBackgroundColor_Call struct {
5497- *mock.Call
5498-}
6381+ if len(ret) == 0 {
6382+ panic("no return value specified for GetAll")
6383+ }
54996384
5500-// SetBackgroundColor is a helper method to define mock.On call
5501-// - r float64
5502-// - g float64
5503-// - b float64
5504-// - a float64
5505-func (_e *MockWebView_Expecter) SetBackgroundColor(r interface{}, g interface{}, b interface{}, a interface{}) *MockWebView_SetBackgroundColor_Call {
5506- return &MockWebView_SetBackgroundColor_Call{Call: _e.mock.On("SetBackgroundColor", r, g, b, a)}
6385+ var r0 []*entity.Favorite
6386+ var r1 error
6387+ if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*entity.Favorite, error)); ok {
6388+ return returnFunc(ctx)
6389+ }
6390+ if returnFunc, ok := ret.Get(0).(func(context.Context) []*entity.Favorite); ok {
6391+ r0 = returnFunc(ctx)
6392+ } else {
6393+ if ret.Get(0) != nil {
6394+ r0 = ret.Get(0).([]*entity.Favorite)
6395+ }
6396+ }
6397+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
6398+ r1 = returnFunc(ctx)
6399+ } else {
6400+ r1 = ret.Error(1)
6401+ }
6402+ return r0, r1
55076403 }
55086404
5509-func (_c *MockWebView_SetBackgroundColor_Call) Run(run func(r float64, g float64, b float64, a float64)) *MockWebView_SetBackgroundColor_Call {
6405+// MockHomepageFavorites_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
6406+type MockHomepageFavorites_GetAll_Call struct {
6407+ *mock.Call
6408+}
6409+
6410+// GetAll is a helper method to define mock.On call
6411+// - ctx context.Context
6412+func (_e *MockHomepageFavorites_Expecter) GetAll(ctx interface{}) *MockHomepageFavorites_GetAll_Call {
6413+ return &MockHomepageFavorites_GetAll_Call{Call: _e.mock.On("GetAll", ctx)}
6414+}
6415+
6416+func (_c *MockHomepageFavorites_GetAll_Call) Run(run func(ctx context.Context)) *MockHomepageFavorites_GetAll_Call {
55106417 _c.Call.Run(func(args mock.Arguments) {
5511- var arg0 float64
6418+ var arg0 context.Context
55126419 if args[0] != nil {
5513- arg0 = args[0].(float64)
5514- }
5515- var arg1 float64
5516- if args[1] != nil {
5517- arg1 = args[1].(float64)
5518- }
5519- var arg2 float64
5520- if args[2] != nil {
5521- arg2 = args[2].(float64)
5522- }
5523- var arg3 float64
5524- if args[3] != nil {
5525- arg3 = args[3].(float64)
6420+ arg0 = args[0].(context.Context)
55266421 }
55276422 run(
55286423 arg0,
5529- arg1,
5530- arg2,
5531- arg3,
55326424 )
55336425 })
55346426 return _c
55356427 }
55366428
5537-func (_c *MockWebView_SetBackgroundColor_Call) Return() *MockWebView_SetBackgroundColor_Call {
5538- _c.Call.Return()
6429+func (_c *MockHomepageFavorites_GetAll_Call) Return(favorites []*entity.Favorite, err error) *MockHomepageFavorites_GetAll_Call {
6430+ _c.Call.Return(favorites, err)
55396431 return _c
55406432 }
55416433
5542-func (_c *MockWebView_SetBackgroundColor_Call) RunAndReturn(run func(r float64, g float64, b float64, a float64)) *MockWebView_SetBackgroundColor_Call {
5543- _c.Run(run)
6434+func (_c *MockHomepageFavorites_GetAll_Call) RunAndReturn(run func(ctx context.Context) ([]*entity.Favorite, error)) *MockHomepageFavorites_GetAll_Call {
6435+ _c.Call.Return(run)
55446436 return _c
55456437 }
55466438
5547-// SetCallbacks provides a mock function for the type MockWebView
5548-func (_mock *MockWebView) SetCallbacks(callbacks *port.WebViewCallbacks) {
5549- _mock.Called(callbacks)
5550- return
6439+// GetAllFolders provides a mock function for the type MockHomepageFavorites
6440+func (_mock *MockHomepageFavorites) GetAllFolders(ctx context.Context) ([]*entity.Folder, error) {
6441+ ret := _mock.Called(ctx)
6442+
6443+ if len(ret) == 0 {
6444+ panic("no return value specified for GetAllFolders")
6445+ }
6446+
6447+ var r0 []*entity.Folder
6448+ var r1 error
6449+ if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*entity.Folder, error)); ok {
6450+ return returnFunc(ctx)
6451+ }
6452+ if returnFunc, ok := ret.Get(0).(func(context.Context) []*entity.Folder); ok {
6453+ r0 = returnFunc(ctx)
6454+ } else {
6455+ if ret.Get(0) != nil {
6456+ r0 = ret.Get(0).([]*entity.Folder)
6457+ }
6458+ }
6459+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
6460+ r1 = returnFunc(ctx)
6461+ } else {
6462+ r1 = ret.Error(1)
6463+ }
6464+ return r0, r1
55516465 }
55526466
5553-// MockWebView_SetCallbacks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbacks'
5554-type MockWebView_SetCallbacks_Call struct {
6467+// MockHomepageFavorites_GetAllFolders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllFolders'
6468+type MockHomepageFavorites_GetAllFolders_Call struct {
55556469 *mock.Call
55566470 }
55576471
5558-// SetCallbacks is a helper method to define mock.On call
5559-// - callbacks *port.WebViewCallbacks
5560-func (_e *MockWebView_Expecter) SetCallbacks(callbacks interface{}) *MockWebView_SetCallbacks_Call {
5561- return &MockWebView_SetCallbacks_Call{Call: _e.mock.On("SetCallbacks", callbacks)}
6472+// GetAllFolders is a helper method to define mock.On call
6473+// - ctx context.Context
6474+func (_e *MockHomepageFavorites_Expecter) GetAllFolders(ctx interface{}) *MockHomepageFavorites_GetAllFolders_Call {
6475+ return &MockHomepageFavorites_GetAllFolders_Call{Call: _e.mock.On("GetAllFolders", ctx)}
55626476 }
55636477
5564-func (_c *MockWebView_SetCallbacks_Call) Run(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
6478+func (_c *MockHomepageFavorites_GetAllFolders_Call) Run(run func(ctx context.Context)) *MockHomepageFavorites_GetAllFolders_Call {
55656479 _c.Call.Run(func(args mock.Arguments) {
5566- var arg0 *port.WebViewCallbacks
6480+ var arg0 context.Context
55676481 if args[0] != nil {
5568- arg0 = args[0].(*port.WebViewCallbacks)
6482+ arg0 = args[0].(context.Context)
55696483 }
55706484 run(
55716485 arg0,
@@ -5574,666 +6488,6984 @@ func (_c *MockWebView_SetCallbacks_Call) Run(run func(callbacks *port.WebViewCal
55746488 return _c
55756489 }
55766490
5577-func (_c *MockWebView_SetCallbacks_Call) Return() *MockWebView_SetCallbacks_Call {
5578- _c.Call.Return()
6491+func (_c *MockHomepageFavorites_GetAllFolders_Call) Return(folders []*entity.Folder, err error) *MockHomepageFavorites_GetAllFolders_Call {
6492+ _c.Call.Return(folders, err)
55796493 return _c
55806494 }
55816495
5582-func (_c *MockWebView_SetCallbacks_Call) RunAndReturn(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
5583- _c.Run(run)
6496+func (_c *MockHomepageFavorites_GetAllFolders_Call) RunAndReturn(run func(ctx context.Context) ([]*entity.Folder, error)) *MockHomepageFavorites_GetAllFolders_Call {
6497+ _c.Call.Return(run)
55846498 return _c
55856499 }
55866500
5587-// SetZoomLevel provides a mock function for the type MockWebView
5588-func (_mock *MockWebView) SetZoomLevel(ctx context.Context, level float64) error {
5589- ret := _mock.Called(ctx, level)
6501+// GetAllTags provides a mock function for the type MockHomepageFavorites
6502+func (_mock *MockHomepageFavorites) GetAllTags(ctx context.Context) ([]*entity.Tag, error) {
6503+ ret := _mock.Called(ctx)
55906504
55916505 if len(ret) == 0 {
5592- panic("no return value specified for SetZoomLevel")
6506+ panic("no return value specified for GetAllTags")
55936507 }
55946508
5595- var r0 error
5596- if returnFunc, ok := ret.Get(0).(func(context.Context, float64) error); ok {
5597- r0 = returnFunc(ctx, level)
6509+ var r0 []*entity.Tag
6510+ var r1 error
6511+ if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*entity.Tag, error)); ok {
6512+ return returnFunc(ctx)
6513+ }
6514+ if returnFunc, ok := ret.Get(0).(func(context.Context) []*entity.Tag); ok {
6515+ r0 = returnFunc(ctx)
55986516 } else {
5599- r0 = ret.Error(0)
6517+ if ret.Get(0) != nil {
6518+ r0 = ret.Get(0).([]*entity.Tag)
6519+ }
56006520 }
5601- return r0
6521+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
6522+ r1 = returnFunc(ctx)
6523+ } else {
6524+ r1 = ret.Error(1)
6525+ }
6526+ return r0, r1
56026527 }
56036528
5604-// MockWebView_SetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetZoomLevel'
5605-type MockWebView_SetZoomLevel_Call struct {
6529+// MockHomepageFavorites_GetAllTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllTags'
6530+type MockHomepageFavorites_GetAllTags_Call struct {
56066531 *mock.Call
56076532 }
56086533
5609-// SetZoomLevel is a helper method to define mock.On call
6534+// GetAllTags is a helper method to define mock.On call
56106535 // - ctx context.Context
5611-// - level float64
5612-func (_e *MockWebView_Expecter) SetZoomLevel(ctx interface{}, level interface{}) *MockWebView_SetZoomLevel_Call {
5613- return &MockWebView_SetZoomLevel_Call{Call: _e.mock.On("SetZoomLevel", ctx, level)}
6536+func (_e *MockHomepageFavorites_Expecter) GetAllTags(ctx interface{}) *MockHomepageFavorites_GetAllTags_Call {
6537+ return &MockHomepageFavorites_GetAllTags_Call{Call: _e.mock.On("GetAllTags", ctx)}
56146538 }
56156539
5616-func (_c *MockWebView_SetZoomLevel_Call) Run(run func(ctx context.Context, level float64)) *MockWebView_SetZoomLevel_Call {
6540+func (_c *MockHomepageFavorites_GetAllTags_Call) Run(run func(ctx context.Context)) *MockHomepageFavorites_GetAllTags_Call {
56176541 _c.Call.Run(func(args mock.Arguments) {
56186542 var arg0 context.Context
56196543 if args[0] != nil {
56206544 arg0 = args[0].(context.Context)
56216545 }
5622- var arg1 float64
5623- if args[1] != nil {
5624- arg1 = args[1].(float64)
5625- }
56266546 run(
56276547 arg0,
5628- arg1,
56296548 )
56306549 })
56316550 return _c
56326551 }
56336552
5634-func (_c *MockWebView_SetZoomLevel_Call) Return(err error) *MockWebView_SetZoomLevel_Call {
5635- _c.Call.Return(err)
6553+func (_c *MockHomepageFavorites_GetAllTags_Call) Return(tags []*entity.Tag, err error) *MockHomepageFavorites_GetAllTags_Call {
6554+ _c.Call.Return(tags, err)
56366555 return _c
56376556 }
56386557
5639-func (_c *MockWebView_SetZoomLevel_Call) RunAndReturn(run func(ctx context.Context, level float64) error) *MockWebView_SetZoomLevel_Call {
6558+func (_c *MockHomepageFavorites_GetAllTags_Call) RunAndReturn(run func(ctx context.Context) ([]*entity.Tag, error)) *MockHomepageFavorites_GetAllTags_Call {
56406559 _c.Call.Return(run)
56416560 return _c
56426561 }
56436562
5644-// State provides a mock function for the type MockWebView
5645-func (_mock *MockWebView) State() port.WebViewState {
5646- ret := _mock.Called()
6563+// GetByShortcut provides a mock function for the type MockHomepageFavorites
6564+func (_mock *MockHomepageFavorites) GetByShortcut(ctx context.Context, key int) (*entity.Favorite, error) {
6565+ ret := _mock.Called(ctx, key)
56476566
56486567 if len(ret) == 0 {
5649- panic("no return value specified for State")
6568+ panic("no return value specified for GetByShortcut")
56506569 }
56516570
5652- var r0 port.WebViewState
5653- if returnFunc, ok := ret.Get(0).(func() port.WebViewState); ok {
5654- r0 = returnFunc()
6571+ var r0 *entity.Favorite
6572+ var r1 error
6573+ if returnFunc, ok := ret.Get(0).(func(context.Context, int) (*entity.Favorite, error)); ok {
6574+ return returnFunc(ctx, key)
6575+ }
6576+ if returnFunc, ok := ret.Get(0).(func(context.Context, int) *entity.Favorite); ok {
6577+ r0 = returnFunc(ctx, key)
56556578 } else {
5656- r0 = ret.Get(0).(port.WebViewState)
6579+ if ret.Get(0) != nil {
6580+ r0 = ret.Get(0).(*entity.Favorite)
6581+ }
56576582 }
5658- return r0
6583+ if returnFunc, ok := ret.Get(1).(func(context.Context, int) error); ok {
6584+ r1 = returnFunc(ctx, key)
6585+ } else {
6586+ r1 = ret.Error(1)
6587+ }
6588+ return r0, r1
56596589 }
56606590
5661-// MockWebView_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'
5662-type MockWebView_State_Call struct {
6591+// MockHomepageFavorites_GetByShortcut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByShortcut'
6592+type MockHomepageFavorites_GetByShortcut_Call struct {
56636593 *mock.Call
56646594 }
56656595
5666-// State is a helper method to define mock.On call
5667-func (_e *MockWebView_Expecter) State() *MockWebView_State_Call {
5668- return &MockWebView_State_Call{Call: _e.mock.On("State")}
6596+// GetByShortcut is a helper method to define mock.On call
6597+// - ctx context.Context
6598+// - key int
6599+func (_e *MockHomepageFavorites_Expecter) GetByShortcut(ctx interface{}, key interface{}) *MockHomepageFavorites_GetByShortcut_Call {
6600+ return &MockHomepageFavorites_GetByShortcut_Call{Call: _e.mock.On("GetByShortcut", ctx, key)}
56696601 }
56706602
5671-func (_c *MockWebView_State_Call) Run(run func()) *MockWebView_State_Call {
6603+func (_c *MockHomepageFavorites_GetByShortcut_Call) Run(run func(ctx context.Context, key int)) *MockHomepageFavorites_GetByShortcut_Call {
56726604 _c.Call.Run(func(args mock.Arguments) {
5673- run()
6605+ var arg0 context.Context
6606+ if args[0] != nil {
6607+ arg0 = args[0].(context.Context)
6608+ }
6609+ var arg1 int
6610+ if args[1] != nil {
6611+ arg1 = args[1].(int)
6612+ }
6613+ run(
6614+ arg0,
6615+ arg1,
6616+ )
56746617 })
56756618 return _c
56766619 }
56776620
5678-func (_c *MockWebView_State_Call) Return(webViewState port.WebViewState) *MockWebView_State_Call {
5679- _c.Call.Return(webViewState)
6621+func (_c *MockHomepageFavorites_GetByShortcut_Call) Return(favorite *entity.Favorite, err error) *MockHomepageFavorites_GetByShortcut_Call {
6622+ _c.Call.Return(favorite, err)
56806623 return _c
56816624 }
56826625
5683-func (_c *MockWebView_State_Call) RunAndReturn(run func() port.WebViewState) *MockWebView_State_Call {
6626+func (_c *MockHomepageFavorites_GetByShortcut_Call) RunAndReturn(run func(ctx context.Context, key int) (*entity.Favorite, error)) *MockHomepageFavorites_GetByShortcut_Call {
56846627 _c.Call.Return(run)
56856628 return _c
56866629 }
56876630
5688-// Stop provides a mock function for the type MockWebView
5689-func (_mock *MockWebView) Stop(ctx context.Context) error {
5690- ret := _mock.Called(ctx)
6631+// Move provides a mock function for the type MockHomepageFavorites
6632+func (_mock *MockHomepageFavorites) Move(ctx context.Context, id entity.FavoriteID, folderID *entity.FolderID) error {
6633+ ret := _mock.Called(ctx, id, folderID)
56916634
56926635 if len(ret) == 0 {
5693- panic("no return value specified for Stop")
6636+ panic("no return value specified for Move")
56946637 }
56956638
56966639 var r0 error
5697- if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
5698- r0 = returnFunc(ctx)
6640+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, *entity.FolderID) error); ok {
6641+ r0 = returnFunc(ctx, id, folderID)
56996642 } else {
57006643 r0 = ret.Error(0)
57016644 }
57026645 return r0
57036646 }
57046647
5705-// MockWebView_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
5706-type MockWebView_Stop_Call struct {
6648+// MockHomepageFavorites_Move_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Move'
6649+type MockHomepageFavorites_Move_Call struct {
57076650 *mock.Call
57086651 }
57096652
5710-// Stop is a helper method to define mock.On call
6653+// Move is a helper method to define mock.On call
57116654 // - ctx context.Context
5712-func (_e *MockWebView_Expecter) Stop(ctx interface{}) *MockWebView_Stop_Call {
5713- return &MockWebView_Stop_Call{Call: _e.mock.On("Stop", ctx)}
6655+// - id entity.FavoriteID
6656+// - folderID *entity.FolderID
6657+func (_e *MockHomepageFavorites_Expecter) Move(ctx interface{}, id interface{}, folderID interface{}) *MockHomepageFavorites_Move_Call {
6658+ return &MockHomepageFavorites_Move_Call{Call: _e.mock.On("Move", ctx, id, folderID)}
57146659 }
57156660
5716-func (_c *MockWebView_Stop_Call) Run(run func(ctx context.Context)) *MockWebView_Stop_Call {
6661+func (_c *MockHomepageFavorites_Move_Call) Run(run func(ctx context.Context, id entity.FavoriteID, folderID *entity.FolderID)) *MockHomepageFavorites_Move_Call {
57176662 _c.Call.Run(func(args mock.Arguments) {
57186663 var arg0 context.Context
57196664 if args[0] != nil {
57206665 arg0 = args[0].(context.Context)
57216666 }
6667+ var arg1 entity.FavoriteID
6668+ if args[1] != nil {
6669+ arg1 = args[1].(entity.FavoriteID)
6670+ }
6671+ var arg2 *entity.FolderID
6672+ if args[2] != nil {
6673+ arg2 = args[2].(*entity.FolderID)
6674+ }
57226675 run(
57236676 arg0,
6677+ arg1,
6678+ arg2,
57246679 )
57256680 })
57266681 return _c
57276682 }
57286683
5729-func (_c *MockWebView_Stop_Call) Return(err error) *MockWebView_Stop_Call {
6684+func (_c *MockHomepageFavorites_Move_Call) Return(err error) *MockHomepageFavorites_Move_Call {
57306685 _c.Call.Return(err)
57316686 return _c
57326687 }
57336688
5734-func (_c *MockWebView_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Stop_Call {
6689+func (_c *MockHomepageFavorites_Move_Call) RunAndReturn(run func(ctx context.Context, id entity.FavoriteID, folderID *entity.FolderID) error) *MockHomepageFavorites_Move_Call {
57356690 _c.Call.Return(run)
57366691 return _c
57376692 }
57386693
5739-// Title provides a mock function for the type MockWebView
5740-func (_mock *MockWebView) Title() string {
5741- ret := _mock.Called()
6694+// SetShortcut provides a mock function for the type MockHomepageFavorites
6695+func (_mock *MockHomepageFavorites) SetShortcut(ctx context.Context, id entity.FavoriteID, key *int) error {
6696+ ret := _mock.Called(ctx, id, key)
57426697
57436698 if len(ret) == 0 {
5744- panic("no return value specified for Title")
6699+ panic("no return value specified for SetShortcut")
57456700 }
57466701
5747- var r0 string
5748- if returnFunc, ok := ret.Get(0).(func() string); ok {
5749- r0 = returnFunc()
6702+ var r0 error
6703+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, *int) error); ok {
6704+ r0 = returnFunc(ctx, id, key)
57506705 } else {
5751- r0 = ret.Get(0).(string)
6706+ r0 = ret.Error(0)
57526707 }
57536708 return r0
57546709 }
57556710
5756-// MockWebView_Title_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Title'
5757-type MockWebView_Title_Call struct {
6711+// MockHomepageFavorites_SetShortcut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetShortcut'
6712+type MockHomepageFavorites_SetShortcut_Call struct {
57586713 *mock.Call
57596714 }
57606715
5761-// Title is a helper method to define mock.On call
5762-func (_e *MockWebView_Expecter) Title() *MockWebView_Title_Call {
5763- return &MockWebView_Title_Call{Call: _e.mock.On("Title")}
6716+// SetShortcut is a helper method to define mock.On call
6717+// - ctx context.Context
6718+// - id entity.FavoriteID
6719+// - key *int
6720+func (_e *MockHomepageFavorites_Expecter) SetShortcut(ctx interface{}, id interface{}, key interface{}) *MockHomepageFavorites_SetShortcut_Call {
6721+ return &MockHomepageFavorites_SetShortcut_Call{Call: _e.mock.On("SetShortcut", ctx, id, key)}
57646722 }
57656723
5766-func (_c *MockWebView_Title_Call) Run(run func()) *MockWebView_Title_Call {
6724+func (_c *MockHomepageFavorites_SetShortcut_Call) Run(run func(ctx context.Context, id entity.FavoriteID, key *int)) *MockHomepageFavorites_SetShortcut_Call {
57676725 _c.Call.Run(func(args mock.Arguments) {
5768- run()
6726+ var arg0 context.Context
6727+ if args[0] != nil {
6728+ arg0 = args[0].(context.Context)
6729+ }
6730+ var arg1 entity.FavoriteID
6731+ if args[1] != nil {
6732+ arg1 = args[1].(entity.FavoriteID)
6733+ }
6734+ var arg2 *int
6735+ if args[2] != nil {
6736+ arg2 = args[2].(*int)
6737+ }
6738+ run(
6739+ arg0,
6740+ arg1,
6741+ arg2,
6742+ )
57696743 })
57706744 return _c
57716745 }
57726746
5773-func (_c *MockWebView_Title_Call) Return(s string) *MockWebView_Title_Call {
5774- _c.Call.Return(s)
6747+func (_c *MockHomepageFavorites_SetShortcut_Call) Return(err error) *MockHomepageFavorites_SetShortcut_Call {
6748+ _c.Call.Return(err)
57756749 return _c
57766750 }
57776751
5778-func (_c *MockWebView_Title_Call) RunAndReturn(run func() string) *MockWebView_Title_Call {
6752+func (_c *MockHomepageFavorites_SetShortcut_Call) RunAndReturn(run func(ctx context.Context, id entity.FavoriteID, key *int) error) *MockHomepageFavorites_SetShortcut_Call {
57796753 _c.Call.Return(run)
57806754 return _c
57816755 }
57826756
5783-// URI provides a mock function for the type MockWebView
5784-func (_mock *MockWebView) URI() string {
5785- ret := _mock.Called()
6757+// TagFavorite provides a mock function for the type MockHomepageFavorites
6758+func (_mock *MockHomepageFavorites) TagFavorite(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID) error {
6759+ ret := _mock.Called(ctx, favID, tagID)
57866760
57876761 if len(ret) == 0 {
5788- panic("no return value specified for URI")
6762+ panic("no return value specified for TagFavorite")
57896763 }
57906764
5791- var r0 string
5792- if returnFunc, ok := ret.Get(0).(func() string); ok {
5793- r0 = returnFunc()
6765+ var r0 error
6766+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, entity.TagID) error); ok {
6767+ r0 = returnFunc(ctx, favID, tagID)
57946768 } else {
5795- r0 = ret.Get(0).(string)
6769+ r0 = ret.Error(0)
57966770 }
57976771 return r0
57986772 }
57996773
5800-// MockWebView_URI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URI'
5801-type MockWebView_URI_Call struct {
6774+// MockHomepageFavorites_TagFavorite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TagFavorite'
6775+type MockHomepageFavorites_TagFavorite_Call struct {
58026776 *mock.Call
58036777 }
58046778
5805-// URI is a helper method to define mock.On call
5806-func (_e *MockWebView_Expecter) URI() *MockWebView_URI_Call {
5807- return &MockWebView_URI_Call{Call: _e.mock.On("URI")}
6779+// TagFavorite is a helper method to define mock.On call
6780+// - ctx context.Context
6781+// - favID entity.FavoriteID
6782+// - tagID entity.TagID
6783+func (_e *MockHomepageFavorites_Expecter) TagFavorite(ctx interface{}, favID interface{}, tagID interface{}) *MockHomepageFavorites_TagFavorite_Call {
6784+ return &MockHomepageFavorites_TagFavorite_Call{Call: _e.mock.On("TagFavorite", ctx, favID, tagID)}
58086785 }
58096786
5810-func (_c *MockWebView_URI_Call) Run(run func()) *MockWebView_URI_Call {
6787+func (_c *MockHomepageFavorites_TagFavorite_Call) Run(run func(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID)) *MockHomepageFavorites_TagFavorite_Call {
58116788 _c.Call.Run(func(args mock.Arguments) {
5812- run()
6789+ var arg0 context.Context
6790+ if args[0] != nil {
6791+ arg0 = args[0].(context.Context)
6792+ }
6793+ var arg1 entity.FavoriteID
6794+ if args[1] != nil {
6795+ arg1 = args[1].(entity.FavoriteID)
6796+ }
6797+ var arg2 entity.TagID
6798+ if args[2] != nil {
6799+ arg2 = args[2].(entity.TagID)
6800+ }
6801+ run(
6802+ arg0,
6803+ arg1,
6804+ arg2,
6805+ )
58136806 })
58146807 return _c
58156808 }
58166809
5817-func (_c *MockWebView_URI_Call) Return(s string) *MockWebView_URI_Call {
5818- _c.Call.Return(s)
6810+func (_c *MockHomepageFavorites_TagFavorite_Call) Return(err error) *MockHomepageFavorites_TagFavorite_Call {
6811+ _c.Call.Return(err)
58196812 return _c
58206813 }
58216814
5822-func (_c *MockWebView_URI_Call) RunAndReturn(run func() string) *MockWebView_URI_Call {
6815+func (_c *MockHomepageFavorites_TagFavorite_Call) RunAndReturn(run func(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID) error) *MockHomepageFavorites_TagFavorite_Call {
58236816 _c.Call.Return(run)
58246817 return _c
58256818 }
58266819
5827-// 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
5842-type MockWebViewPool struct {
5843- mock.Mock
5844-}
5845-
5846-type MockWebViewPool_Expecter struct {
5847- mock *mock.Mock
5848-}
5849-
5850-func (_m *MockWebViewPool) EXPECT() *MockWebViewPool_Expecter {
5851- return &MockWebViewPool_Expecter{mock: &_m.Mock}
5852-}
5853-
5854-// Acquire provides a mock function for the type MockWebViewPool
5855-func (_mock *MockWebViewPool) Acquire(ctx context.Context) (port.WebView, error) {
5856- ret := _mock.Called(ctx)
6820+// UntagFavorite provides a mock function for the type MockHomepageFavorites
6821+func (_mock *MockHomepageFavorites) UntagFavorite(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID) error {
6822+ ret := _mock.Called(ctx, favID, tagID)
58576823
58586824 if len(ret) == 0 {
5859- panic("no return value specified for Acquire")
6825+ panic("no return value specified for UntagFavorite")
58606826 }
58616827
5862- var r0 port.WebView
5863- var r1 error
5864- if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
5865- return returnFunc(ctx)
5866- }
5867- if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
5868- r0 = returnFunc(ctx)
5869- } else {
5870- if ret.Get(0) != nil {
5871- r0 = ret.Get(0).(port.WebView)
5872- }
5873- }
5874- if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
5875- r1 = returnFunc(ctx)
6828+ var r0 error
6829+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FavoriteID, entity.TagID) error); ok {
6830+ r0 = returnFunc(ctx, favID, tagID)
58766831 } else {
5877- r1 = ret.Error(1)
6832+ r0 = ret.Error(0)
58786833 }
5879- return r0, r1
6834+ return r0
58806835 }
58816836
5882-// MockWebViewPool_Acquire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Acquire'
5883-type MockWebViewPool_Acquire_Call struct {
6837+// MockHomepageFavorites_UntagFavorite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UntagFavorite'
6838+type MockHomepageFavorites_UntagFavorite_Call struct {
58846839 *mock.Call
58856840 }
58866841
5887-// Acquire is a helper method to define mock.On call
6842+// UntagFavorite is a helper method to define mock.On call
58886843 // - ctx context.Context
5889-func (_e *MockWebViewPool_Expecter) Acquire(ctx interface{}) *MockWebViewPool_Acquire_Call {
5890- return &MockWebViewPool_Acquire_Call{Call: _e.mock.On("Acquire", ctx)}
6844+// - favID entity.FavoriteID
6845+// - tagID entity.TagID
6846+func (_e *MockHomepageFavorites_Expecter) UntagFavorite(ctx interface{}, favID interface{}, tagID interface{}) *MockHomepageFavorites_UntagFavorite_Call {
6847+ return &MockHomepageFavorites_UntagFavorite_Call{Call: _e.mock.On("UntagFavorite", ctx, favID, tagID)}
58916848 }
58926849
5893-func (_c *MockWebViewPool_Acquire_Call) Run(run func(ctx context.Context)) *MockWebViewPool_Acquire_Call {
6850+func (_c *MockHomepageFavorites_UntagFavorite_Call) Run(run func(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID)) *MockHomepageFavorites_UntagFavorite_Call {
58946851 _c.Call.Run(func(args mock.Arguments) {
58956852 var arg0 context.Context
58966853 if args[0] != nil {
58976854 arg0 = args[0].(context.Context)
58986855 }
6856+ var arg1 entity.FavoriteID
6857+ if args[1] != nil {
6858+ arg1 = args[1].(entity.FavoriteID)
6859+ }
6860+ var arg2 entity.TagID
6861+ if args[2] != nil {
6862+ arg2 = args[2].(entity.TagID)
6863+ }
58996864 run(
59006865 arg0,
6866+ arg1,
6867+ arg2,
59016868 )
59026869 })
59036870 return _c
59046871 }
59056872
5906-func (_c *MockWebViewPool_Acquire_Call) Return(webView port.WebView, err error) *MockWebViewPool_Acquire_Call {
5907- _c.Call.Return(webView, err)
6873+func (_c *MockHomepageFavorites_UntagFavorite_Call) Return(err error) *MockHomepageFavorites_UntagFavorite_Call {
6874+ _c.Call.Return(err)
59086875 return _c
59096876 }
59106877
5911-func (_c *MockWebViewPool_Acquire_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewPool_Acquire_Call {
6878+func (_c *MockHomepageFavorites_UntagFavorite_Call) RunAndReturn(run func(ctx context.Context, favID entity.FavoriteID, tagID entity.TagID) error) *MockHomepageFavorites_UntagFavorite_Call {
59126879 _c.Call.Return(run)
59136880 return _c
59146881 }
59156882
5916-// Close provides a mock function for the type MockWebViewPool
5917-func (_mock *MockWebViewPool) Close() {
5918- _mock.Called()
5919- return
6883+// UpdateFolder provides a mock function for the type MockHomepageFavorites
6884+func (_mock *MockHomepageFavorites) UpdateFolder(ctx context.Context, id entity.FolderID, name string, icon string) error {
6885+ ret := _mock.Called(ctx, id, name, icon)
6886+
6887+ if len(ret) == 0 {
6888+ panic("no return value specified for UpdateFolder")
6889+ }
6890+
6891+ var r0 error
6892+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.FolderID, string, string) error); ok {
6893+ r0 = returnFunc(ctx, id, name, icon)
6894+ } else {
6895+ r0 = ret.Error(0)
6896+ }
6897+ return r0
59206898 }
59216899
5922-// MockWebViewPool_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
5923-type MockWebViewPool_Close_Call struct {
6900+// MockHomepageFavorites_UpdateFolder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFolder'
6901+type MockHomepageFavorites_UpdateFolder_Call struct {
59246902 *mock.Call
59256903 }
59266904
5927-// Close is a helper method to define mock.On call
5928-func (_e *MockWebViewPool_Expecter) Close() *MockWebViewPool_Close_Call {
5929- return &MockWebViewPool_Close_Call{Call: _e.mock.On("Close")}
6905+// UpdateFolder is a helper method to define mock.On call
6906+// - ctx context.Context
6907+// - id entity.FolderID
6908+// - name string
6909+// - icon string
6910+func (_e *MockHomepageFavorites_Expecter) UpdateFolder(ctx interface{}, id interface{}, name interface{}, icon interface{}) *MockHomepageFavorites_UpdateFolder_Call {
6911+ return &MockHomepageFavorites_UpdateFolder_Call{Call: _e.mock.On("UpdateFolder", ctx, id, name, icon)}
59306912 }
59316913
5932-func (_c *MockWebViewPool_Close_Call) Run(run func()) *MockWebViewPool_Close_Call {
6914+func (_c *MockHomepageFavorites_UpdateFolder_Call) Run(run func(ctx context.Context, id entity.FolderID, name string, icon string)) *MockHomepageFavorites_UpdateFolder_Call {
59336915 _c.Call.Run(func(args mock.Arguments) {
5934- run()
6916+ var arg0 context.Context
6917+ if args[0] != nil {
6918+ arg0 = args[0].(context.Context)
6919+ }
6920+ var arg1 entity.FolderID
6921+ if args[1] != nil {
6922+ arg1 = args[1].(entity.FolderID)
6923+ }
6924+ var arg2 string
6925+ if args[2] != nil {
6926+ arg2 = args[2].(string)
6927+ }
6928+ var arg3 string
6929+ if args[3] != nil {
6930+ arg3 = args[3].(string)
6931+ }
6932+ run(
6933+ arg0,
6934+ arg1,
6935+ arg2,
6936+ arg3,
6937+ )
59356938 })
59366939 return _c
59376940 }
59386941
5939-func (_c *MockWebViewPool_Close_Call) Return() *MockWebViewPool_Close_Call {
5940- _c.Call.Return()
6942+func (_c *MockHomepageFavorites_UpdateFolder_Call) Return(err error) *MockHomepageFavorites_UpdateFolder_Call {
6943+ _c.Call.Return(err)
59416944 return _c
59426945 }
59436946
5944-func (_c *MockWebViewPool_Close_Call) RunAndReturn(run func()) *MockWebViewPool_Close_Call {
5945- _c.Run(run)
6947+func (_c *MockHomepageFavorites_UpdateFolder_Call) RunAndReturn(run func(ctx context.Context, id entity.FolderID, name string, icon string) error) *MockHomepageFavorites_UpdateFolder_Call {
6948+ _c.Call.Return(run)
59466949 return _c
59476950 }
59486951
5949-// Prewarm provides a mock function for the type MockWebViewPool
5950-func (_mock *MockWebViewPool) Prewarm(count int) {
5951- _mock.Called(count)
5952- return
6952+// UpdateTag provides a mock function for the type MockHomepageFavorites
6953+func (_mock *MockHomepageFavorites) UpdateTag(ctx context.Context, id entity.TagID, name string, color string) error {
6954+ ret := _mock.Called(ctx, id, name, color)
6955+
6956+ if len(ret) == 0 {
6957+ panic("no return value specified for UpdateTag")
6958+ }
6959+
6960+ var r0 error
6961+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.TagID, string, string) error); ok {
6962+ r0 = returnFunc(ctx, id, name, color)
6963+ } else {
6964+ r0 = ret.Error(0)
6965+ }
6966+ return r0
59536967 }
59546968
5955-// MockWebViewPool_Prewarm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prewarm'
5956-type MockWebViewPool_Prewarm_Call struct {
6969+// MockHomepageFavorites_UpdateTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTag'
6970+type MockHomepageFavorites_UpdateTag_Call struct {
59576971 *mock.Call
59586972 }
59596973
5960-// Prewarm is a helper method to define mock.On call
5961-// - count int
5962-func (_e *MockWebViewPool_Expecter) Prewarm(count interface{}) *MockWebViewPool_Prewarm_Call {
5963- return &MockWebViewPool_Prewarm_Call{Call: _e.mock.On("Prewarm", count)}
6974+// 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 {
6980+ return &MockHomepageFavorites_UpdateTag_Call{Call: _e.mock.On("UpdateTag", ctx, id, name, color)}
59646981 }
59656982
5966-func (_c *MockWebViewPool_Prewarm_Call) Run(run func(count int)) *MockWebViewPool_Prewarm_Call {
6983+func (_c *MockHomepageFavorites_UpdateTag_Call) Run(run func(ctx context.Context, id entity.TagID, name string, color string)) *MockHomepageFavorites_UpdateTag_Call {
59676984 _c.Call.Run(func(args mock.Arguments) {
5968- var arg0 int
6985+ var arg0 context.Context
59696986 if args[0] != nil {
5970- arg0 = args[0].(int)
6987+ arg0 = args[0].(context.Context)
6988+ }
6989+ var arg1 entity.TagID
6990+ if args[1] != nil {
6991+ arg1 = args[1].(entity.TagID)
6992+ }
6993+ var arg2 string
6994+ if args[2] != nil {
6995+ arg2 = args[2].(string)
6996+ }
6997+ var arg3 string
6998+ if args[3] != nil {
6999+ arg3 = args[3].(string)
59717000 }
59727001 run(
59737002 arg0,
7003+ arg1,
7004+ arg2,
7005+ arg3,
59747006 )
59757007 })
59767008 return _c
59777009 }
59787010
5979-func (_c *MockWebViewPool_Prewarm_Call) Return() *MockWebViewPool_Prewarm_Call {
5980- _c.Call.Return()
7011+func (_c *MockHomepageFavorites_UpdateTag_Call) Return(err error) *MockHomepageFavorites_UpdateTag_Call {
7012+ _c.Call.Return(err)
59817013 return _c
59827014 }
59837015
5984-func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(count int)) *MockWebViewPool_Prewarm_Call {
5985- _c.Run(run)
7016+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)
59867018 return _c
59877019 }
59887020
5989-// Release provides a mock function for the type MockWebViewPool
5990-func (_mock *MockWebViewPool) Release(wv port.WebView) {
5991- _mock.Called(wv)
5992- return
5993-}
7021+// 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)
59947029
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) })
59997031
6000-// Release is a helper method to define mock.On call
6001-// - wv port.WebView
6002-func (_e *MockWebViewPool_Expecter) Release(wv interface{}) *MockWebViewPool_Release_Call {
6003- return &MockWebViewPool_Release_Call{Call: _e.mock.On("Release", wv)}
7032+ return mock
60047033 }
60057034
6006-func (_c *MockWebViewPool_Release_Call) Run(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
6007- _c.Call.Run(func(args mock.Arguments) {
6008- var arg0 port.WebView
6009- if args[0] != nil {
6010- arg0 = args[0].(port.WebView)
6011- }
6012- run(
6013- arg0,
6014- )
6015- })
6016- return _c
7035+// MockIdleInhibitor is an autogenerated mock type for the IdleInhibitor type
7036+type MockIdleInhibitor struct {
7037+ mock.Mock
60177038 }
60187039
6019-func (_c *MockWebViewPool_Release_Call) Return() *MockWebViewPool_Release_Call {
6020- _c.Call.Return()
6021- return _c
7040+type MockIdleInhibitor_Expecter struct {
7041+ mock *mock.Mock
60227042 }
60237043
6024-func (_c *MockWebViewPool_Release_Call) RunAndReturn(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
6025- _c.Run(run)
6026- return _c
7044+func (_m *MockIdleInhibitor) EXPECT() *MockIdleInhibitor_Expecter {
7045+ return &MockIdleInhibitor_Expecter{mock: &_m.Mock}
60277046 }
60287047
6029-// Size provides a mock function for the type MockWebViewPool
6030-func (_mock *MockWebViewPool) Size() int {
7048+// Close provides a mock function for the type MockIdleInhibitor
7049+func (_mock *MockIdleInhibitor) Close() error {
60317050 ret := _mock.Called()
60327051
60337052 if len(ret) == 0 {
6034- panic("no return value specified for Size")
7053+ panic("no return value specified for Close")
60357054 }
60367055
6037- var r0 int
6038- if returnFunc, ok := ret.Get(0).(func() int); ok {
7056+ var r0 error
7057+ if returnFunc, ok := ret.Get(0).(func() error); ok {
60397058 r0 = returnFunc()
60407059 } else {
6041- r0 = ret.Get(0).(int)
7060+ r0 = ret.Error(0)
60427061 }
60437062 return r0
60447063 }
60457064
6046-// MockWebViewPool_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
6047-type MockWebViewPool_Size_Call struct {
7065+// MockIdleInhibitor_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
7066+type MockIdleInhibitor_Close_Call struct {
60487067 *mock.Call
60497068 }
60507069
6051-// Size is a helper method to define mock.On call
6052-func (_e *MockWebViewPool_Expecter) Size() *MockWebViewPool_Size_Call {
6053- return &MockWebViewPool_Size_Call{Call: _e.mock.On("Size")}
7070+// Close is a helper method to define mock.On call
7071+func (_e *MockIdleInhibitor_Expecter) Close() *MockIdleInhibitor_Close_Call {
7072+ return &MockIdleInhibitor_Close_Call{Call: _e.mock.On("Close")}
60547073 }
60557074
6056-func (_c *MockWebViewPool_Size_Call) Run(run func()) *MockWebViewPool_Size_Call {
7075+func (_c *MockIdleInhibitor_Close_Call) Run(run func()) *MockIdleInhibitor_Close_Call {
60577076 _c.Call.Run(func(args mock.Arguments) {
60587077 run()
60597078 })
60607079 return _c
60617080 }
60627081
6063-func (_c *MockWebViewPool_Size_Call) Return(n int) *MockWebViewPool_Size_Call {
6064- _c.Call.Return(n)
7082+func (_c *MockIdleInhibitor_Close_Call) Return(err error) *MockIdleInhibitor_Close_Call {
7083+ _c.Call.Return(err)
60657084 return _c
60667085 }
60677086
6068-func (_c *MockWebViewPool_Size_Call) RunAndReturn(run func() int) *MockWebViewPool_Size_Call {
7087+func (_c *MockIdleInhibitor_Close_Call) RunAndReturn(run func() error) *MockIdleInhibitor_Close_Call {
60697088 _c.Call.Return(run)
60707089 return _c
60717090 }
60727091
6073-// 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
7093+func (_mock *MockIdleInhibitor) Inhibit(ctx context.Context, reason string) error {
7094+ ret := _mock.Called(ctx, reason)
60817095
6082- t.Cleanup(func() { mock.AssertExpectations(t) })
7096+ if len(ret) == 0 {
7097+ panic("no return value specified for Inhibit")
7098+ }
60837099
6084- return mock
7100+ var r0 error
7101+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
7102+ r0 = returnFunc(ctx, reason)
7103+ } else {
7104+ r0 = ret.Error(0)
7105+ }
7106+ return r0
60857107 }
60867108
6087-// MockWebViewFactory is an autogenerated mock type for the WebViewFactory type
6088-type MockWebViewFactory struct {
6089- mock.Mock
6090-}
7109+// MockIdleInhibitor_Inhibit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inhibit'
7110+type MockIdleInhibitor_Inhibit_Call struct {
7111+ *mock.Call
7112+}
60917113
6092-type MockWebViewFactory_Expecter struct {
6093- mock *mock.Mock
7114+// Inhibit is a helper method to define mock.On call
7115+// - ctx context.Context
7116+// - reason string
7117+func (_e *MockIdleInhibitor_Expecter) Inhibit(ctx interface{}, reason interface{}) *MockIdleInhibitor_Inhibit_Call {
7118+ return &MockIdleInhibitor_Inhibit_Call{Call: _e.mock.On("Inhibit", ctx, reason)}
60947119 }
60957120
6096-func (_m *MockWebViewFactory) EXPECT() *MockWebViewFactory_Expecter {
6097- return &MockWebViewFactory_Expecter{mock: &_m.Mock}
7121+func (_c *MockIdleInhibitor_Inhibit_Call) Run(run func(ctx context.Context, reason string)) *MockIdleInhibitor_Inhibit_Call {
7122+ _c.Call.Run(func(args mock.Arguments) {
7123+ var arg0 context.Context
7124+ if args[0] != nil {
7125+ arg0 = args[0].(context.Context)
7126+ }
7127+ var arg1 string
7128+ if args[1] != nil {
7129+ arg1 = args[1].(string)
7130+ }
7131+ run(
7132+ arg0,
7133+ arg1,
7134+ )
7135+ })
7136+ return _c
60987137 }
60997138
6100-// Create provides a mock function for the type MockWebViewFactory
6101-func (_mock *MockWebViewFactory) Create(ctx context.Context) (port.WebView, error) {
7139+func (_c *MockIdleInhibitor_Inhibit_Call) Return(err error) *MockIdleInhibitor_Inhibit_Call {
7140+ _c.Call.Return(err)
7141+ return _c
7142+}
7143+
7144+func (_c *MockIdleInhibitor_Inhibit_Call) RunAndReturn(run func(ctx context.Context, reason string) error) *MockIdleInhibitor_Inhibit_Call {
7145+ _c.Call.Return(run)
7146+ return _c
7147+}
7148+
7149+// IsInhibited provides a mock function for the type MockIdleInhibitor
7150+func (_mock *MockIdleInhibitor) IsInhibited() bool {
7151+ ret := _mock.Called()
7152+
7153+ if len(ret) == 0 {
7154+ panic("no return value specified for IsInhibited")
7155+ }
7156+
7157+ var r0 bool
7158+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
7159+ r0 = returnFunc()
7160+ } else {
7161+ r0 = ret.Get(0).(bool)
7162+ }
7163+ return r0
7164+}
7165+
7166+// MockIdleInhibitor_IsInhibited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsInhibited'
7167+type MockIdleInhibitor_IsInhibited_Call struct {
7168+ *mock.Call
7169+}
7170+
7171+// IsInhibited is a helper method to define mock.On call
7172+func (_e *MockIdleInhibitor_Expecter) IsInhibited() *MockIdleInhibitor_IsInhibited_Call {
7173+ return &MockIdleInhibitor_IsInhibited_Call{Call: _e.mock.On("IsInhibited")}
7174+}
7175+
7176+func (_c *MockIdleInhibitor_IsInhibited_Call) Run(run func()) *MockIdleInhibitor_IsInhibited_Call {
7177+ _c.Call.Run(func(args mock.Arguments) {
7178+ run()
7179+ })
7180+ return _c
7181+}
7182+
7183+func (_c *MockIdleInhibitor_IsInhibited_Call) Return(b bool) *MockIdleInhibitor_IsInhibited_Call {
7184+ _c.Call.Return(b)
7185+ return _c
7186+}
7187+
7188+func (_c *MockIdleInhibitor_IsInhibited_Call) RunAndReturn(run func() bool) *MockIdleInhibitor_IsInhibited_Call {
7189+ _c.Call.Return(run)
7190+ return _c
7191+}
7192+
7193+// Uninhibit provides a mock function for the type MockIdleInhibitor
7194+func (_mock *MockIdleInhibitor) Uninhibit(ctx context.Context) error {
61027195 ret := _mock.Called(ctx)
61037196
61047197 if len(ret) == 0 {
6105- panic("no return value specified for Create")
7198+ panic("no return value specified for Uninhibit")
61067199 }
61077200
6108- var r0 port.WebView
7201+ var r0 error
7202+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
7203+ r0 = returnFunc(ctx)
7204+ } else {
7205+ r0 = ret.Error(0)
7206+ }
7207+ return r0
7208+}
7209+
7210+// MockIdleInhibitor_Uninhibit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Uninhibit'
7211+type MockIdleInhibitor_Uninhibit_Call struct {
7212+ *mock.Call
7213+}
7214+
7215+// Uninhibit is a helper method to define mock.On call
7216+// - ctx context.Context
7217+func (_e *MockIdleInhibitor_Expecter) Uninhibit(ctx interface{}) *MockIdleInhibitor_Uninhibit_Call {
7218+ return &MockIdleInhibitor_Uninhibit_Call{Call: _e.mock.On("Uninhibit", ctx)}
7219+}
7220+
7221+func (_c *MockIdleInhibitor_Uninhibit_Call) Run(run func(ctx context.Context)) *MockIdleInhibitor_Uninhibit_Call {
7222+ _c.Call.Run(func(args mock.Arguments) {
7223+ var arg0 context.Context
7224+ if args[0] != nil {
7225+ arg0 = args[0].(context.Context)
7226+ }
7227+ run(
7228+ arg0,
7229+ )
7230+ })
7231+ return _c
7232+}
7233+
7234+func (_c *MockIdleInhibitor_Uninhibit_Call) Return(err error) *MockIdleInhibitor_Uninhibit_Call {
7235+ _c.Call.Return(err)
7236+ return _c
7237+}
7238+
7239+func (_c *MockIdleInhibitor_Uninhibit_Call) RunAndReturn(run func(ctx context.Context) error) *MockIdleInhibitor_Uninhibit_Call {
7240+ _c.Call.Return(run)
7241+ return _c
7242+}
7243+
7244+// 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
7259+type MockKeybindingsProvider struct {
7260+ mock.Mock
7261+}
7262+
7263+type MockKeybindingsProvider_Expecter struct {
7264+ mock *mock.Mock
7265+}
7266+
7267+func (_m *MockKeybindingsProvider) EXPECT() *MockKeybindingsProvider_Expecter {
7268+ return &MockKeybindingsProvider_Expecter{mock: &_m.Mock}
7269+}
7270+
7271+// CheckConflicts provides a mock function for the type MockKeybindingsProvider
7272+func (_mock *MockKeybindingsProvider) CheckConflicts(ctx context.Context, mode string, action string, keys []string) ([]port.KeybindingConflict, error) {
7273+ ret := _mock.Called(ctx, mode, action, keys)
7274+
7275+ if len(ret) == 0 {
7276+ panic("no return value specified for CheckConflicts")
7277+ }
7278+
7279+ var r0 []port.KeybindingConflict
61097280 var r1 error
6110- if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
6111- return returnFunc(ctx)
7281+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []string) ([]port.KeybindingConflict, error)); ok {
7282+ return returnFunc(ctx, mode, action, keys)
61127283 }
6113- if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
6114- r0 = returnFunc(ctx)
7284+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []string) []port.KeybindingConflict); ok {
7285+ r0 = returnFunc(ctx, mode, action, keys)
61157286 } else {
61167287 if ret.Get(0) != nil {
6117- r0 = ret.Get(0).(port.WebView)
7288+ r0 = ret.Get(0).([]port.KeybindingConflict)
61187289 }
61197290 }
6120- if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
6121- r1 = returnFunc(ctx)
7291+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, []string) error); ok {
7292+ r1 = returnFunc(ctx, mode, action, keys)
61227293 } else {
61237294 r1 = ret.Error(1)
61247295 }
61257296 return r0, r1
61267297 }
61277298
6128-// MockWebViewFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
6129-type MockWebViewFactory_Create_Call struct {
7299+// MockKeybindingsProvider_CheckConflicts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckConflicts'
7300+type MockKeybindingsProvider_CheckConflicts_Call struct {
61307301 *mock.Call
61317302 }
61327303
6133-// Create is a helper method to define mock.On call
7304+// CheckConflicts is a helper method to define mock.On call
61347305 // - ctx context.Context
6135-func (_e *MockWebViewFactory_Expecter) Create(ctx interface{}) *MockWebViewFactory_Create_Call {
6136- return &MockWebViewFactory_Create_Call{Call: _e.mock.On("Create", ctx)}
7306+// - mode string
7307+// - action string
7308+// - keys []string
7309+func (_e *MockKeybindingsProvider_Expecter) CheckConflicts(ctx interface{}, mode interface{}, action interface{}, keys interface{}) *MockKeybindingsProvider_CheckConflicts_Call {
7310+ return &MockKeybindingsProvider_CheckConflicts_Call{Call: _e.mock.On("CheckConflicts", ctx, mode, action, keys)}
61377311 }
61387312
6139-func (_c *MockWebViewFactory_Create_Call) Run(run func(ctx context.Context)) *MockWebViewFactory_Create_Call {
7313+func (_c *MockKeybindingsProvider_CheckConflicts_Call) Run(run func(ctx context.Context, mode string, action string, keys []string)) *MockKeybindingsProvider_CheckConflicts_Call {
61407314 _c.Call.Run(func(args mock.Arguments) {
61417315 var arg0 context.Context
61427316 if args[0] != nil {
61437317 arg0 = args[0].(context.Context)
61447318 }
7319+ var arg1 string
7320+ if args[1] != nil {
7321+ arg1 = args[1].(string)
7322+ }
7323+ var arg2 string
7324+ if args[2] != nil {
7325+ arg2 = args[2].(string)
7326+ }
7327+ var arg3 []string
7328+ if args[3] != nil {
7329+ arg3 = args[3].([]string)
7330+ }
61457331 run(
61467332 arg0,
7333+ arg1,
7334+ arg2,
7335+ arg3,
61477336 )
61487337 })
61497338 return _c
61507339 }
61517340
6152-func (_c *MockWebViewFactory_Create_Call) Return(webView port.WebView, err error) *MockWebViewFactory_Create_Call {
6153- _c.Call.Return(webView, err)
7341+func (_c *MockKeybindingsProvider_CheckConflicts_Call) Return(keybindingConflicts []port.KeybindingConflict, err error) *MockKeybindingsProvider_CheckConflicts_Call {
7342+ _c.Call.Return(keybindingConflicts, err)
7343+ return _c
7344+}
7345+
7346+func (_c *MockKeybindingsProvider_CheckConflicts_Call) RunAndReturn(run func(ctx context.Context, mode string, action string, keys []string) ([]port.KeybindingConflict, error)) *MockKeybindingsProvider_CheckConflicts_Call {
7347+ _c.Call.Return(run)
7348+ return _c
7349+}
7350+
7351+// GetDefaultKeybindings provides a mock function for the type MockKeybindingsProvider
7352+func (_mock *MockKeybindingsProvider) GetDefaultKeybindings(ctx context.Context) (port.KeybindingsConfig, error) {
7353+ ret := _mock.Called(ctx)
7354+
7355+ if len(ret) == 0 {
7356+ 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
7383+// - ctx context.Context
7384+func (_e *MockKeybindingsProvider_Expecter) GetDefaultKeybindings(ctx interface{}) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
7385+ return &MockKeybindingsProvider_GetDefaultKeybindings_Call{Call: _e.mock.On("GetDefaultKeybindings", ctx)}
7386+}
7387+
7388+func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
7389+ _c.Call.Run(func(args mock.Arguments) {
7390+ var arg0 context.Context
7391+ if args[0] != nil {
7392+ arg0 = args[0].(context.Context)
7393+ }
7394+ run(
7395+ arg0,
7396+ )
7397+ })
7398+ return _c
7399+}
7400+
7401+func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) Return(keybindingsConfig port.KeybindingsConfig, err error) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
7402+ _c.Call.Return(keybindingsConfig, err)
7403+ return _c
7404+}
7405+
7406+func (_c *MockKeybindingsProvider_GetDefaultKeybindings_Call) RunAndReturn(run func(ctx context.Context) (port.KeybindingsConfig, error)) *MockKeybindingsProvider_GetDefaultKeybindings_Call {
7407+ _c.Call.Return(run)
7408+ return _c
7409+}
7410+
7411+// GetKeybindings provides a mock function for the type MockKeybindingsProvider
7412+func (_mock *MockKeybindingsProvider) GetKeybindings(ctx context.Context) (port.KeybindingsConfig, error) {
7413+ ret := _mock.Called(ctx)
7414+
7415+ if len(ret) == 0 {
7416+ panic("no return value specified for GetKeybindings")
7417+ }
7418+
7419+ var r0 port.KeybindingsConfig
7420+ var r1 error
7421+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.KeybindingsConfig, error)); ok {
7422+ return returnFunc(ctx)
7423+ }
7424+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.KeybindingsConfig); ok {
7425+ r0 = returnFunc(ctx)
7426+ } else {
7427+ r0 = ret.Get(0).(port.KeybindingsConfig)
7428+ }
7429+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
7430+ r1 = returnFunc(ctx)
7431+ } else {
7432+ r1 = ret.Error(1)
7433+ }
7434+ return r0, r1
7435+}
7436+
7437+// MockKeybindingsProvider_GetKeybindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeybindings'
7438+type MockKeybindingsProvider_GetKeybindings_Call struct {
7439+ *mock.Call
7440+}
7441+
7442+// GetKeybindings is a helper method to define mock.On call
7443+// - ctx context.Context
7444+func (_e *MockKeybindingsProvider_Expecter) GetKeybindings(ctx interface{}) *MockKeybindingsProvider_GetKeybindings_Call {
7445+ return &MockKeybindingsProvider_GetKeybindings_Call{Call: _e.mock.On("GetKeybindings", ctx)}
7446+}
7447+
7448+func (_c *MockKeybindingsProvider_GetKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsProvider_GetKeybindings_Call {
7449+ _c.Call.Run(func(args mock.Arguments) {
7450+ var arg0 context.Context
7451+ if args[0] != nil {
7452+ arg0 = args[0].(context.Context)
7453+ }
7454+ run(
7455+ arg0,
7456+ )
7457+ })
7458+ return _c
7459+}
7460+
7461+func (_c *MockKeybindingsProvider_GetKeybindings_Call) Return(keybindingsConfig port.KeybindingsConfig, err error) *MockKeybindingsProvider_GetKeybindings_Call {
7462+ _c.Call.Return(keybindingsConfig, err)
7463+ return _c
7464+}
7465+
7466+func (_c *MockKeybindingsProvider_GetKeybindings_Call) RunAndReturn(run func(ctx context.Context) (port.KeybindingsConfig, error)) *MockKeybindingsProvider_GetKeybindings_Call {
7467+ _c.Call.Return(run)
7468+ return _c
7469+}
7470+
7471+// 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
7486+type MockKeybindingsSaver struct {
7487+ mock.Mock
7488+}
7489+
7490+type MockKeybindingsSaver_Expecter struct {
7491+ mock *mock.Mock
7492+}
7493+
7494+func (_m *MockKeybindingsSaver) EXPECT() *MockKeybindingsSaver_Expecter {
7495+ return &MockKeybindingsSaver_Expecter{mock: &_m.Mock}
7496+}
7497+
7498+// ResetAllKeybindings provides a mock function for the type MockKeybindingsSaver
7499+func (_mock *MockKeybindingsSaver) ResetAllKeybindings(ctx context.Context) error {
7500+ ret := _mock.Called(ctx)
7501+
7502+ if len(ret) == 0 {
7503+ 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
7521+// - ctx context.Context
7522+func (_e *MockKeybindingsSaver_Expecter) ResetAllKeybindings(ctx interface{}) *MockKeybindingsSaver_ResetAllKeybindings_Call {
7523+ return &MockKeybindingsSaver_ResetAllKeybindings_Call{Call: _e.mock.On("ResetAllKeybindings", ctx)}
7524+}
7525+
7526+func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) Run(run func(ctx context.Context)) *MockKeybindingsSaver_ResetAllKeybindings_Call {
7527+ _c.Call.Run(func(args mock.Arguments) {
7528+ var arg0 context.Context
7529+ if args[0] != nil {
7530+ arg0 = args[0].(context.Context)
7531+ }
7532+ run(
7533+ arg0,
7534+ )
7535+ })
7536+ return _c
7537+}
7538+
7539+func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) Return(err error) *MockKeybindingsSaver_ResetAllKeybindings_Call {
7540+ _c.Call.Return(err)
7541+ return _c
7542+}
7543+
7544+func (_c *MockKeybindingsSaver_ResetAllKeybindings_Call) RunAndReturn(run func(ctx context.Context) error) *MockKeybindingsSaver_ResetAllKeybindings_Call {
7545+ _c.Call.Return(run)
7546+ return _c
7547+}
7548+
7549+// ResetKeybinding provides a mock function for the type MockKeybindingsSaver
7550+func (_mock *MockKeybindingsSaver) ResetKeybinding(ctx context.Context, req port.ResetKeybindingRequest) error {
7551+ ret := _mock.Called(ctx, req)
7552+
7553+ if len(ret) == 0 {
7554+ panic("no return value specified for ResetKeybinding")
7555+ }
7556+
7557+ var r0 error
7558+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.ResetKeybindingRequest) error); ok {
7559+ r0 = returnFunc(ctx, req)
7560+ } else {
7561+ r0 = ret.Error(0)
7562+ }
7563+ return r0
7564+}
7565+
7566+// MockKeybindingsSaver_ResetKeybinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetKeybinding'
7567+type MockKeybindingsSaver_ResetKeybinding_Call struct {
7568+ *mock.Call
7569+}
7570+
7571+// ResetKeybinding is a helper method to define mock.On call
7572+// - ctx context.Context
7573+// - req port.ResetKeybindingRequest
7574+func (_e *MockKeybindingsSaver_Expecter) ResetKeybinding(ctx interface{}, req interface{}) *MockKeybindingsSaver_ResetKeybinding_Call {
7575+ return &MockKeybindingsSaver_ResetKeybinding_Call{Call: _e.mock.On("ResetKeybinding", ctx, req)}
7576+}
7577+
7578+func (_c *MockKeybindingsSaver_ResetKeybinding_Call) Run(run func(ctx context.Context, req port.ResetKeybindingRequest)) *MockKeybindingsSaver_ResetKeybinding_Call {
7579+ _c.Call.Run(func(args mock.Arguments) {
7580+ var arg0 context.Context
7581+ if args[0] != nil {
7582+ arg0 = args[0].(context.Context)
7583+ }
7584+ var arg1 port.ResetKeybindingRequest
7585+ if args[1] != nil {
7586+ arg1 = args[1].(port.ResetKeybindingRequest)
7587+ }
7588+ run(
7589+ arg0,
7590+ arg1,
7591+ )
7592+ })
7593+ return _c
7594+}
7595+
7596+func (_c *MockKeybindingsSaver_ResetKeybinding_Call) Return(err error) *MockKeybindingsSaver_ResetKeybinding_Call {
7597+ _c.Call.Return(err)
7598+ return _c
7599+}
7600+
7601+func (_c *MockKeybindingsSaver_ResetKeybinding_Call) RunAndReturn(run func(ctx context.Context, req port.ResetKeybindingRequest) error) *MockKeybindingsSaver_ResetKeybinding_Call {
7602+ _c.Call.Return(run)
7603+ return _c
7604+}
7605+
7606+// SetKeybinding provides a mock function for the type MockKeybindingsSaver
7607+func (_mock *MockKeybindingsSaver) SetKeybinding(ctx context.Context, req port.SetKeybindingRequest) error {
7608+ ret := _mock.Called(ctx, req)
7609+
7610+ if len(ret) == 0 {
7611+ panic("no return value specified for SetKeybinding")
7612+ }
7613+
7614+ var r0 error
7615+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.SetKeybindingRequest) error); ok {
7616+ r0 = returnFunc(ctx, req)
7617+ } else {
7618+ r0 = ret.Error(0)
7619+ }
7620+ return r0
7621+}
7622+
7623+// MockKeybindingsSaver_SetKeybinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKeybinding'
7624+type MockKeybindingsSaver_SetKeybinding_Call struct {
7625+ *mock.Call
7626+}
7627+
7628+// SetKeybinding is a helper method to define mock.On call
7629+// - ctx context.Context
7630+// - req port.SetKeybindingRequest
7631+func (_e *MockKeybindingsSaver_Expecter) SetKeybinding(ctx interface{}, req interface{}) *MockKeybindingsSaver_SetKeybinding_Call {
7632+ return &MockKeybindingsSaver_SetKeybinding_Call{Call: _e.mock.On("SetKeybinding", ctx, req)}
7633+}
7634+
7635+func (_c *MockKeybindingsSaver_SetKeybinding_Call) Run(run func(ctx context.Context, req port.SetKeybindingRequest)) *MockKeybindingsSaver_SetKeybinding_Call {
7636+ _c.Call.Run(func(args mock.Arguments) {
7637+ var arg0 context.Context
7638+ if args[0] != nil {
7639+ arg0 = args[0].(context.Context)
7640+ }
7641+ var arg1 port.SetKeybindingRequest
7642+ if args[1] != nil {
7643+ arg1 = args[1].(port.SetKeybindingRequest)
7644+ }
7645+ run(
7646+ arg0,
7647+ arg1,
7648+ )
7649+ })
7650+ return _c
7651+}
7652+
7653+func (_c *MockKeybindingsSaver_SetKeybinding_Call) Return(err error) *MockKeybindingsSaver_SetKeybinding_Call {
7654+ _c.Call.Return(err)
7655+ return _c
7656+}
7657+
7658+func (_c *MockKeybindingsSaver_SetKeybinding_Call) RunAndReturn(run func(ctx context.Context, req port.SetKeybindingRequest) error) *MockKeybindingsSaver_SetKeybinding_Call {
7659+ _c.Call.Return(run)
7660+ return _c
7661+}
7662+
7663+// 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
7678+type MockKeybindingsGetter struct {
7679+ mock.Mock
7680+}
7681+
7682+type MockKeybindingsGetter_Expecter struct {
7683+ mock *mock.Mock
7684+}
7685+
7686+func (_m *MockKeybindingsGetter) EXPECT() *MockKeybindingsGetter_Expecter {
7687+ return &MockKeybindingsGetter_Expecter{mock: &_m.Mock}
7688+}
7689+
7690+// Execute provides a mock function for the type MockKeybindingsGetter
7691+func (_mock *MockKeybindingsGetter) Execute(ctx context.Context) (port.KeybindingsConfig, error) {
7692+ ret := _mock.Called(ctx)
7693+
7694+ if len(ret) == 0 {
7695+ panic("no return value specified for Execute")
7696+ }
7697+
7698+ var r0 port.KeybindingsConfig
7699+ var r1 error
7700+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.KeybindingsConfig, error)); ok {
7701+ return returnFunc(ctx)
7702+ }
7703+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.KeybindingsConfig); ok {
7704+ r0 = returnFunc(ctx)
7705+ } else {
7706+ r0 = ret.Get(0).(port.KeybindingsConfig)
7707+ }
7708+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
7709+ r1 = returnFunc(ctx)
7710+ } else {
7711+ r1 = ret.Error(1)
7712+ }
7713+ return r0, r1
7714+}
7715+
7716+// MockKeybindingsGetter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
7717+type MockKeybindingsGetter_Execute_Call struct {
7718+ *mock.Call
7719+}
7720+
7721+// Execute is a helper method to define mock.On call
7722+// - ctx context.Context
7723+func (_e *MockKeybindingsGetter_Expecter) Execute(ctx interface{}) *MockKeybindingsGetter_Execute_Call {
7724+ return &MockKeybindingsGetter_Execute_Call{Call: _e.mock.On("Execute", ctx)}
7725+}
7726+
7727+func (_c *MockKeybindingsGetter_Execute_Call) Run(run func(ctx context.Context)) *MockKeybindingsGetter_Execute_Call {
7728+ _c.Call.Run(func(args mock.Arguments) {
7729+ var arg0 context.Context
7730+ if args[0] != nil {
7731+ arg0 = args[0].(context.Context)
7732+ }
7733+ run(
7734+ arg0,
7735+ )
7736+ })
7737+ return _c
7738+}
7739+
7740+func (_c *MockKeybindingsGetter_Execute_Call) Return(keybindingsConfig port.KeybindingsConfig, err error) *MockKeybindingsGetter_Execute_Call {
7741+ _c.Call.Return(keybindingsConfig, err)
7742+ return _c
7743+}
7744+
7745+func (_c *MockKeybindingsGetter_Execute_Call) RunAndReturn(run func(ctx context.Context) (port.KeybindingsConfig, error)) *MockKeybindingsGetter_Execute_Call {
7746+ _c.Call.Return(run)
7747+ return _c
7748+}
7749+
7750+// 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
7765+type MockKeybindingSetter struct {
7766+ mock.Mock
7767+}
7768+
7769+type MockKeybindingSetter_Expecter struct {
7770+ mock *mock.Mock
7771+}
7772+
7773+func (_m *MockKeybindingSetter) EXPECT() *MockKeybindingSetter_Expecter {
7774+ return &MockKeybindingSetter_Expecter{mock: &_m.Mock}
7775+}
7776+
7777+// Execute provides a mock function for the type MockKeybindingSetter
7778+func (_mock *MockKeybindingSetter) Execute(ctx context.Context, req port.SetKeybindingRequest) (port.SetKeybindingResponse, error) {
7779+ ret := _mock.Called(ctx, req)
7780+
7781+ if len(ret) == 0 {
7782+ panic("no return value specified for Execute")
7783+ }
7784+
7785+ var r0 port.SetKeybindingResponse
7786+ var r1 error
7787+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.SetKeybindingRequest) (port.SetKeybindingResponse, error)); ok {
7788+ return returnFunc(ctx, req)
7789+ }
7790+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.SetKeybindingRequest) port.SetKeybindingResponse); ok {
7791+ r0 = returnFunc(ctx, req)
7792+ } else {
7793+ r0 = ret.Get(0).(port.SetKeybindingResponse)
7794+ }
7795+ if returnFunc, ok := ret.Get(1).(func(context.Context, port.SetKeybindingRequest) error); ok {
7796+ r1 = returnFunc(ctx, req)
7797+ } else {
7798+ r1 = ret.Error(1)
7799+ }
7800+ return r0, r1
7801+}
7802+
7803+// MockKeybindingSetter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
7804+type MockKeybindingSetter_Execute_Call struct {
7805+ *mock.Call
7806+}
7807+
7808+// Execute is a helper method to define mock.On call
7809+// - ctx context.Context
7810+// - req port.SetKeybindingRequest
7811+func (_e *MockKeybindingSetter_Expecter) Execute(ctx interface{}, req interface{}) *MockKeybindingSetter_Execute_Call {
7812+ return &MockKeybindingSetter_Execute_Call{Call: _e.mock.On("Execute", ctx, req)}
7813+}
7814+
7815+func (_c *MockKeybindingSetter_Execute_Call) Run(run func(ctx context.Context, req port.SetKeybindingRequest)) *MockKeybindingSetter_Execute_Call {
7816+ _c.Call.Run(func(args mock.Arguments) {
7817+ var arg0 context.Context
7818+ if args[0] != nil {
7819+ arg0 = args[0].(context.Context)
7820+ }
7821+ var arg1 port.SetKeybindingRequest
7822+ if args[1] != nil {
7823+ arg1 = args[1].(port.SetKeybindingRequest)
7824+ }
7825+ run(
7826+ arg0,
7827+ arg1,
7828+ )
7829+ })
7830+ return _c
7831+}
7832+
7833+func (_c *MockKeybindingSetter_Execute_Call) Return(setKeybindingResponse port.SetKeybindingResponse, err error) *MockKeybindingSetter_Execute_Call {
7834+ _c.Call.Return(setKeybindingResponse, err)
7835+ return _c
7836+}
7837+
7838+func (_c *MockKeybindingSetter_Execute_Call) RunAndReturn(run func(ctx context.Context, req port.SetKeybindingRequest) (port.SetKeybindingResponse, error)) *MockKeybindingSetter_Execute_Call {
7839+ _c.Call.Return(run)
7840+ return _c
7841+}
7842+
7843+// 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
7858+type MockKeybindingResetter struct {
7859+ mock.Mock
7860+}
7861+
7862+type MockKeybindingResetter_Expecter struct {
7863+ mock *mock.Mock
7864+}
7865+
7866+func (_m *MockKeybindingResetter) EXPECT() *MockKeybindingResetter_Expecter {
7867+ return &MockKeybindingResetter_Expecter{mock: &_m.Mock}
7868+}
7869+
7870+// Execute provides a mock function for the type MockKeybindingResetter
7871+func (_mock *MockKeybindingResetter) Execute(ctx context.Context, req port.ResetKeybindingRequest) error {
7872+ ret := _mock.Called(ctx, req)
7873+
7874+ if len(ret) == 0 {
7875+ panic("no return value specified for Execute")
7876+ }
7877+
7878+ var r0 error
7879+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.ResetKeybindingRequest) error); ok {
7880+ r0 = returnFunc(ctx, req)
7881+ } else {
7882+ r0 = ret.Error(0)
7883+ }
7884+ return r0
7885+}
7886+
7887+// MockKeybindingResetter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
7888+type MockKeybindingResetter_Execute_Call struct {
7889+ *mock.Call
7890+}
7891+
7892+// Execute is a helper method to define mock.On call
7893+// - ctx context.Context
7894+// - req port.ResetKeybindingRequest
7895+func (_e *MockKeybindingResetter_Expecter) Execute(ctx interface{}, req interface{}) *MockKeybindingResetter_Execute_Call {
7896+ return &MockKeybindingResetter_Execute_Call{Call: _e.mock.On("Execute", ctx, req)}
7897+}
7898+
7899+func (_c *MockKeybindingResetter_Execute_Call) Run(run func(ctx context.Context, req port.ResetKeybindingRequest)) *MockKeybindingResetter_Execute_Call {
7900+ _c.Call.Run(func(args mock.Arguments) {
7901+ var arg0 context.Context
7902+ if args[0] != nil {
7903+ arg0 = args[0].(context.Context)
7904+ }
7905+ var arg1 port.ResetKeybindingRequest
7906+ if args[1] != nil {
7907+ arg1 = args[1].(port.ResetKeybindingRequest)
7908+ }
7909+ run(
7910+ arg0,
7911+ arg1,
7912+ )
7913+ })
7914+ return _c
7915+}
7916+
7917+func (_c *MockKeybindingResetter_Execute_Call) Return(err error) *MockKeybindingResetter_Execute_Call {
7918+ _c.Call.Return(err)
7919+ return _c
7920+}
7921+
7922+func (_c *MockKeybindingResetter_Execute_Call) RunAndReturn(run func(ctx context.Context, req port.ResetKeybindingRequest) error) *MockKeybindingResetter_Execute_Call {
7923+ _c.Call.Return(run)
7924+ return _c
7925+}
7926+
7927+// 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
7942+type MockAllKeybindingsResetter struct {
7943+ mock.Mock
7944+}
7945+
7946+type MockAllKeybindingsResetter_Expecter struct {
7947+ mock *mock.Mock
7948+}
7949+
7950+func (_m *MockAllKeybindingsResetter) EXPECT() *MockAllKeybindingsResetter_Expecter {
7951+ return &MockAllKeybindingsResetter_Expecter{mock: &_m.Mock}
7952+}
7953+
7954+// Execute provides a mock function for the type MockAllKeybindingsResetter
7955+func (_mock *MockAllKeybindingsResetter) Execute(ctx context.Context) error {
7956+ ret := _mock.Called(ctx)
7957+
7958+ if len(ret) == 0 {
7959+ panic("no return value specified for Execute")
7960+ }
7961+
7962+ var r0 error
7963+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
7964+ r0 = returnFunc(ctx)
7965+ } else {
7966+ r0 = ret.Error(0)
7967+ }
7968+ return r0
7969+}
7970+
7971+// MockAllKeybindingsResetter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
7972+type MockAllKeybindingsResetter_Execute_Call struct {
7973+ *mock.Call
7974+}
7975+
7976+// Execute is a helper method to define mock.On call
7977+// - ctx context.Context
7978+func (_e *MockAllKeybindingsResetter_Expecter) Execute(ctx interface{}) *MockAllKeybindingsResetter_Execute_Call {
7979+ return &MockAllKeybindingsResetter_Execute_Call{Call: _e.mock.On("Execute", ctx)}
7980+}
7981+
7982+func (_c *MockAllKeybindingsResetter_Execute_Call) Run(run func(ctx context.Context)) *MockAllKeybindingsResetter_Execute_Call {
7983+ _c.Call.Run(func(args mock.Arguments) {
7984+ var arg0 context.Context
7985+ if args[0] != nil {
7986+ arg0 = args[0].(context.Context)
7987+ }
7988+ run(
7989+ arg0,
7990+ )
7991+ })
7992+ return _c
7993+}
7994+
7995+func (_c *MockAllKeybindingsResetter_Execute_Call) Return(err error) *MockAllKeybindingsResetter_Execute_Call {
7996+ _c.Call.Return(err)
7997+ return _c
7998+}
7999+
8000+func (_c *MockAllKeybindingsResetter_Execute_Call) RunAndReturn(run func(ctx context.Context) error) *MockAllKeybindingsResetter_Execute_Call {
8001+ _c.Call.Return(run)
8002+ return _c
8003+}
8004+
8005+// 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
8020+type MockMediaDiagnostics struct {
8021+ mock.Mock
8022+}
8023+
8024+type MockMediaDiagnostics_Expecter struct {
8025+ mock *mock.Mock
8026+}
8027+
8028+func (_m *MockMediaDiagnostics) EXPECT() *MockMediaDiagnostics_Expecter {
8029+ return &MockMediaDiagnostics_Expecter{mock: &_m.Mock}
8030+}
8031+
8032+// RunDiagnostics provides a mock function for the type MockMediaDiagnostics
8033+func (_mock *MockMediaDiagnostics) RunDiagnostics(ctx context.Context) *port.MediaDiagnosticsResult {
8034+ ret := _mock.Called(ctx)
8035+
8036+ if len(ret) == 0 {
8037+ panic("no return value specified for RunDiagnostics")
8038+ }
8039+
8040+ var r0 *port.MediaDiagnosticsResult
8041+ if returnFunc, ok := ret.Get(0).(func(context.Context) *port.MediaDiagnosticsResult); ok {
8042+ r0 = returnFunc(ctx)
8043+ } else {
8044+ if ret.Get(0) != nil {
8045+ r0 = ret.Get(0).(*port.MediaDiagnosticsResult)
8046+ }
8047+ }
8048+ return r0
8049+}
8050+
8051+// MockMediaDiagnostics_RunDiagnostics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunDiagnostics'
8052+type MockMediaDiagnostics_RunDiagnostics_Call struct {
8053+ *mock.Call
8054+}
8055+
8056+// RunDiagnostics is a helper method to define mock.On call
8057+// - ctx context.Context
8058+func (_e *MockMediaDiagnostics_Expecter) RunDiagnostics(ctx interface{}) *MockMediaDiagnostics_RunDiagnostics_Call {
8059+ return &MockMediaDiagnostics_RunDiagnostics_Call{Call: _e.mock.On("RunDiagnostics", ctx)}
8060+}
8061+
8062+func (_c *MockMediaDiagnostics_RunDiagnostics_Call) Run(run func(ctx context.Context)) *MockMediaDiagnostics_RunDiagnostics_Call {
8063+ _c.Call.Run(func(args mock.Arguments) {
8064+ var arg0 context.Context
8065+ if args[0] != nil {
8066+ arg0 = args[0].(context.Context)
8067+ }
8068+ run(
8069+ arg0,
8070+ )
8071+ })
8072+ return _c
8073+}
8074+
8075+func (_c *MockMediaDiagnostics_RunDiagnostics_Call) Return(mediaDiagnosticsResult *port.MediaDiagnosticsResult) *MockMediaDiagnostics_RunDiagnostics_Call {
8076+ _c.Call.Return(mediaDiagnosticsResult)
8077+ return _c
8078+}
8079+
8080+func (_c *MockMediaDiagnostics_RunDiagnostics_Call) RunAndReturn(run func(ctx context.Context) *port.MediaDiagnosticsResult) *MockMediaDiagnostics_RunDiagnostics_Call {
8081+ _c.Call.Return(run)
8082+ return _c
8083+}
8084+
8085+// 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
8100+type MockNotification struct {
8101+ mock.Mock
8102+}
8103+
8104+type MockNotification_Expecter struct {
8105+ mock *mock.Mock
8106+}
8107+
8108+func (_m *MockNotification) EXPECT() *MockNotification_Expecter {
8109+ return &MockNotification_Expecter{mock: &_m.Mock}
8110+}
8111+
8112+// Clear provides a mock function for the type MockNotification
8113+func (_mock *MockNotification) Clear(ctx context.Context) {
8114+ _mock.Called(ctx)
8115+ return
8116+}
8117+
8118+// MockNotification_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
8119+type MockNotification_Clear_Call struct {
8120+ *mock.Call
8121+}
8122+
8123+// Clear is a helper method to define mock.On call
8124+// - ctx context.Context
8125+func (_e *MockNotification_Expecter) Clear(ctx interface{}) *MockNotification_Clear_Call {
8126+ return &MockNotification_Clear_Call{Call: _e.mock.On("Clear", ctx)}
8127+}
8128+
8129+func (_c *MockNotification_Clear_Call) Run(run func(ctx context.Context)) *MockNotification_Clear_Call {
8130+ _c.Call.Run(func(args mock.Arguments) {
8131+ var arg0 context.Context
8132+ if args[0] != nil {
8133+ arg0 = args[0].(context.Context)
8134+ }
8135+ run(
8136+ arg0,
8137+ )
8138+ })
8139+ return _c
8140+}
8141+
8142+func (_c *MockNotification_Clear_Call) Return() *MockNotification_Clear_Call {
8143+ _c.Call.Return()
8144+ return _c
8145+}
8146+
8147+func (_c *MockNotification_Clear_Call) RunAndReturn(run func(ctx context.Context)) *MockNotification_Clear_Call {
8148+ _c.Run(run)
8149+ return _c
8150+}
8151+
8152+// Dismiss provides a mock function for the type MockNotification
8153+func (_mock *MockNotification) Dismiss(ctx context.Context, id port.NotificationID) {
8154+ _mock.Called(ctx, id)
8155+ return
8156+}
8157+
8158+// MockNotification_Dismiss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dismiss'
8159+type MockNotification_Dismiss_Call struct {
8160+ *mock.Call
8161+}
8162+
8163+// Dismiss is a helper method to define mock.On call
8164+// - ctx context.Context
8165+// - id port.NotificationID
8166+func (_e *MockNotification_Expecter) Dismiss(ctx interface{}, id interface{}) *MockNotification_Dismiss_Call {
8167+ return &MockNotification_Dismiss_Call{Call: _e.mock.On("Dismiss", ctx, id)}
8168+}
8169+
8170+func (_c *MockNotification_Dismiss_Call) Run(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call {
8171+ _c.Call.Run(func(args mock.Arguments) {
8172+ var arg0 context.Context
8173+ if args[0] != nil {
8174+ arg0 = args[0].(context.Context)
8175+ }
8176+ var arg1 port.NotificationID
8177+ if args[1] != nil {
8178+ arg1 = args[1].(port.NotificationID)
8179+ }
8180+ run(
8181+ arg0,
8182+ arg1,
8183+ )
8184+ })
8185+ return _c
8186+}
8187+
8188+func (_c *MockNotification_Dismiss_Call) Return() *MockNotification_Dismiss_Call {
8189+ _c.Call.Return()
8190+ return _c
8191+}
8192+
8193+func (_c *MockNotification_Dismiss_Call) RunAndReturn(run func(ctx context.Context, id port.NotificationID)) *MockNotification_Dismiss_Call {
8194+ _c.Run(run)
8195+ return _c
8196+}
8197+
8198+// Show provides a mock function for the type MockNotification
8199+func (_mock *MockNotification) Show(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID {
8200+ ret := _mock.Called(ctx, message, notifType, durationMs)
8201+
8202+ if len(ret) == 0 {
8203+ panic("no return value specified for Show")
8204+ }
8205+
8206+ var r0 port.NotificationID
8207+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, port.NotificationType, int) port.NotificationID); ok {
8208+ r0 = returnFunc(ctx, message, notifType, durationMs)
8209+ } else {
8210+ r0 = ret.Get(0).(port.NotificationID)
8211+ }
8212+ return r0
8213+}
8214+
8215+// MockNotification_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
8216+type MockNotification_Show_Call struct {
8217+ *mock.Call
8218+}
8219+
8220+// Show is a helper method to define mock.On call
8221+// - ctx context.Context
8222+// - message string
8223+// - notifType port.NotificationType
8224+// - durationMs int
8225+func (_e *MockNotification_Expecter) Show(ctx interface{}, message interface{}, notifType interface{}, durationMs interface{}) *MockNotification_Show_Call {
8226+ return &MockNotification_Show_Call{Call: _e.mock.On("Show", ctx, message, notifType, durationMs)}
8227+}
8228+
8229+func (_c *MockNotification_Show_Call) Run(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int)) *MockNotification_Show_Call {
8230+ _c.Call.Run(func(args mock.Arguments) {
8231+ var arg0 context.Context
8232+ if args[0] != nil {
8233+ arg0 = args[0].(context.Context)
8234+ }
8235+ var arg1 string
8236+ if args[1] != nil {
8237+ arg1 = args[1].(string)
8238+ }
8239+ var arg2 port.NotificationType
8240+ if args[2] != nil {
8241+ arg2 = args[2].(port.NotificationType)
8242+ }
8243+ var arg3 int
8244+ if args[3] != nil {
8245+ arg3 = args[3].(int)
8246+ }
8247+ run(
8248+ arg0,
8249+ arg1,
8250+ arg2,
8251+ arg3,
8252+ )
8253+ })
8254+ return _c
8255+}
8256+
8257+func (_c *MockNotification_Show_Call) Return(notificationID port.NotificationID) *MockNotification_Show_Call {
8258+ _c.Call.Return(notificationID)
8259+ return _c
8260+}
8261+
8262+func (_c *MockNotification_Show_Call) RunAndReturn(run func(ctx context.Context, message string, notifType port.NotificationType, durationMs int) port.NotificationID) *MockNotification_Show_Call {
8263+ _c.Call.Return(run)
8264+ return _c
8265+}
8266+
8267+// ShowZoom provides a mock function for the type MockNotification
8268+func (_mock *MockNotification) ShowZoom(ctx context.Context, zoomPercent int) port.NotificationID {
8269+ ret := _mock.Called(ctx, zoomPercent)
8270+
8271+ if len(ret) == 0 {
8272+ panic("no return value specified for ShowZoom")
8273+ }
8274+
8275+ var r0 port.NotificationID
8276+ if returnFunc, ok := ret.Get(0).(func(context.Context, int) port.NotificationID); ok {
8277+ r0 = returnFunc(ctx, zoomPercent)
8278+ } else {
8279+ r0 = ret.Get(0).(port.NotificationID)
8280+ }
8281+ return r0
8282+}
8283+
8284+// MockNotification_ShowZoom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowZoom'
8285+type MockNotification_ShowZoom_Call struct {
8286+ *mock.Call
8287+}
8288+
8289+// ShowZoom is a helper method to define mock.On call
8290+// - ctx context.Context
8291+// - zoomPercent int
8292+func (_e *MockNotification_Expecter) ShowZoom(ctx interface{}, zoomPercent interface{}) *MockNotification_ShowZoom_Call {
8293+ return &MockNotification_ShowZoom_Call{Call: _e.mock.On("ShowZoom", ctx, zoomPercent)}
8294+}
8295+
8296+func (_c *MockNotification_ShowZoom_Call) Run(run func(ctx context.Context, zoomPercent int)) *MockNotification_ShowZoom_Call {
8297+ _c.Call.Run(func(args mock.Arguments) {
8298+ var arg0 context.Context
8299+ if args[0] != nil {
8300+ arg0 = args[0].(context.Context)
8301+ }
8302+ var arg1 int
8303+ if args[1] != nil {
8304+ arg1 = args[1].(int)
8305+ }
8306+ run(
8307+ arg0,
8308+ arg1,
8309+ )
8310+ })
8311+ return _c
8312+}
8313+
8314+func (_c *MockNotification_ShowZoom_Call) Return(notificationID port.NotificationID) *MockNotification_ShowZoom_Call {
8315+ _c.Call.Return(notificationID)
8316+ return _c
8317+}
8318+
8319+func (_c *MockNotification_ShowZoom_Call) RunAndReturn(run func(ctx context.Context, zoomPercent int) port.NotificationID) *MockNotification_ShowZoom_Call {
8320+ _c.Call.Return(run)
8321+ return _c
8322+}
8323+
8324+// 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.
8326+func NewMockPermissionDialogPresenter(t interface {
8327+ mock.TestingT
8328+ Cleanup(func())
8329+}) *MockPermissionDialogPresenter {
8330+ mock := &MockPermissionDialogPresenter{}
8331+ mock.Mock.Test(t)
8332+
8333+ t.Cleanup(func() { mock.AssertExpectations(t) })
8334+
8335+ return mock
8336+}
8337+
8338+// MockPermissionDialogPresenter is an autogenerated mock type for the PermissionDialogPresenter type
8339+type MockPermissionDialogPresenter struct {
8340+ mock.Mock
8341+}
8342+
8343+type MockPermissionDialogPresenter_Expecter struct {
8344+ mock *mock.Mock
8345+}
8346+
8347+func (_m *MockPermissionDialogPresenter) EXPECT() *MockPermissionDialogPresenter_Expecter {
8348+ return &MockPermissionDialogPresenter_Expecter{mock: &_m.Mock}
8349+}
8350+
8351+// ShowPermissionDialog provides a mock function for the type MockPermissionDialogPresenter
8352+func (_mock *MockPermissionDialogPresenter) ShowPermissionDialog(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult)) {
8353+ _mock.Called(ctx, origin, permTypes, callback)
8354+ return
8355+}
8356+
8357+// 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
8363+// - ctx context.Context
8364+// - origin string
8365+// - permTypes []entity.PermissionType
8366+// - callback func(result port.PermissionDialogResult)
8367+func (_e *MockPermissionDialogPresenter_Expecter) ShowPermissionDialog(ctx interface{}, origin interface{}, permTypes interface{}, callback interface{}) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
8368+ return &MockPermissionDialogPresenter_ShowPermissionDialog_Call{Call: _e.mock.On("ShowPermissionDialog", ctx, origin, permTypes, callback)}
8369+}
8370+
8371+func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Run(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
8372+ _c.Call.Run(func(args mock.Arguments) {
8373+ var arg0 context.Context
8374+ if args[0] != nil {
8375+ arg0 = args[0].(context.Context)
8376+ }
8377+ var arg1 string
8378+ if args[1] != nil {
8379+ arg1 = args[1].(string)
8380+ }
8381+ var arg2 []entity.PermissionType
8382+ if args[2] != nil {
8383+ arg2 = args[2].([]entity.PermissionType)
8384+ }
8385+ var arg3 func(result port.PermissionDialogResult)
8386+ if args[3] != nil {
8387+ arg3 = args[3].(func(result port.PermissionDialogResult))
8388+ }
8389+ run(
8390+ arg0,
8391+ arg1,
8392+ arg2,
8393+ arg3,
8394+ )
8395+ })
8396+ return _c
8397+}
8398+
8399+func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Return() *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
8400+ _c.Call.Return()
8401+ return _c
8402+}
8403+
8404+func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) RunAndReturn(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
8405+ _c.Run(run)
8406+ return _c
8407+}
8408+
8409+// 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
8424+type MockPermissionRepository struct {
8425+ mock.Mock
8426+}
8427+
8428+type MockPermissionRepository_Expecter struct {
8429+ mock *mock.Mock
8430+}
8431+
8432+func (_m *MockPermissionRepository) EXPECT() *MockPermissionRepository_Expecter {
8433+ return &MockPermissionRepository_Expecter{mock: &_m.Mock}
8434+}
8435+
8436+// Delete provides a mock function for the type MockPermissionRepository
8437+func (_mock *MockPermissionRepository) Delete(ctx context.Context, origin string, permType entity.PermissionType) error {
8438+ ret := _mock.Called(ctx, origin, permType)
8439+
8440+ if len(ret) == 0 {
8441+ panic("no return value specified for Delete")
8442+ }
8443+
8444+ var r0 error
8445+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) error); ok {
8446+ r0 = returnFunc(ctx, origin, permType)
8447+ } else {
8448+ r0 = ret.Error(0)
8449+ }
8450+ return r0
8451+}
8452+
8453+// MockPermissionRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
8454+type MockPermissionRepository_Delete_Call struct {
8455+ *mock.Call
8456+}
8457+
8458+// Delete is a helper method to define mock.On call
8459+// - ctx context.Context
8460+// - origin string
8461+// - permType entity.PermissionType
8462+func (_e *MockPermissionRepository_Expecter) Delete(ctx interface{}, origin interface{}, permType interface{}) *MockPermissionRepository_Delete_Call {
8463+ return &MockPermissionRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, origin, permType)}
8464+}
8465+
8466+func (_c *MockPermissionRepository_Delete_Call) Run(run func(ctx context.Context, origin string, permType entity.PermissionType)) *MockPermissionRepository_Delete_Call {
8467+ _c.Call.Run(func(args mock.Arguments) {
8468+ var arg0 context.Context
8469+ if args[0] != nil {
8470+ arg0 = args[0].(context.Context)
8471+ }
8472+ var arg1 string
8473+ if args[1] != nil {
8474+ arg1 = args[1].(string)
8475+ }
8476+ var arg2 entity.PermissionType
8477+ if args[2] != nil {
8478+ arg2 = args[2].(entity.PermissionType)
8479+ }
8480+ run(
8481+ arg0,
8482+ arg1,
8483+ arg2,
8484+ )
8485+ })
8486+ return _c
8487+}
8488+
8489+func (_c *MockPermissionRepository_Delete_Call) Return(err error) *MockPermissionRepository_Delete_Call {
8490+ _c.Call.Return(err)
8491+ return _c
8492+}
8493+
8494+func (_c *MockPermissionRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, origin string, permType entity.PermissionType) error) *MockPermissionRepository_Delete_Call {
8495+ _c.Call.Return(run)
8496+ return _c
8497+}
8498+
8499+// Get provides a mock function for the type MockPermissionRepository
8500+func (_mock *MockPermissionRepository) Get(ctx context.Context, origin string, permType entity.PermissionType) (*entity.PermissionRecord, error) {
8501+ ret := _mock.Called(ctx, origin, permType)
8502+
8503+ if len(ret) == 0 {
8504+ panic("no return value specified for Get")
8505+ }
8506+
8507+ var r0 *entity.PermissionRecord
8508+ var r1 error
8509+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) (*entity.PermissionRecord, error)); ok {
8510+ return returnFunc(ctx, origin, permType)
8511+ }
8512+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, entity.PermissionType) *entity.PermissionRecord); ok {
8513+ r0 = returnFunc(ctx, origin, permType)
8514+ } else {
8515+ if ret.Get(0) != nil {
8516+ r0 = ret.Get(0).(*entity.PermissionRecord)
8517+ }
8518+ }
8519+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, entity.PermissionType) error); ok {
8520+ r1 = returnFunc(ctx, origin, permType)
8521+ } else {
8522+ r1 = ret.Error(1)
8523+ }
8524+ return r0, r1
8525+}
8526+
8527+// MockPermissionRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
8528+type MockPermissionRepository_Get_Call struct {
8529+ *mock.Call
8530+}
8531+
8532+// Get is a helper method to define mock.On call
8533+// - ctx context.Context
8534+// - origin string
8535+// - permType entity.PermissionType
8536+func (_e *MockPermissionRepository_Expecter) Get(ctx interface{}, origin interface{}, permType interface{}) *MockPermissionRepository_Get_Call {
8537+ return &MockPermissionRepository_Get_Call{Call: _e.mock.On("Get", ctx, origin, permType)}
8538+}
8539+
8540+func (_c *MockPermissionRepository_Get_Call) Run(run func(ctx context.Context, origin string, permType entity.PermissionType)) *MockPermissionRepository_Get_Call {
8541+ _c.Call.Run(func(args mock.Arguments) {
8542+ var arg0 context.Context
8543+ if args[0] != nil {
8544+ arg0 = args[0].(context.Context)
8545+ }
8546+ var arg1 string
8547+ if args[1] != nil {
8548+ arg1 = args[1].(string)
8549+ }
8550+ var arg2 entity.PermissionType
8551+ if args[2] != nil {
8552+ arg2 = args[2].(entity.PermissionType)
8553+ }
8554+ run(
8555+ arg0,
8556+ arg1,
8557+ arg2,
8558+ )
8559+ })
8560+ return _c
8561+}
8562+
8563+func (_c *MockPermissionRepository_Get_Call) Return(permissionRecord *entity.PermissionRecord, err error) *MockPermissionRepository_Get_Call {
8564+ _c.Call.Return(permissionRecord, err)
8565+ return _c
8566+}
8567+
8568+func (_c *MockPermissionRepository_Get_Call) RunAndReturn(run func(ctx context.Context, origin string, permType entity.PermissionType) (*entity.PermissionRecord, error)) *MockPermissionRepository_Get_Call {
8569+ _c.Call.Return(run)
8570+ return _c
8571+}
8572+
8573+// GetAll provides a mock function for the type MockPermissionRepository
8574+func (_mock *MockPermissionRepository) GetAll(ctx context.Context, origin string) ([]*entity.PermissionRecord, error) {
8575+ ret := _mock.Called(ctx, origin)
8576+
8577+ if len(ret) == 0 {
8578+ panic("no return value specified for GetAll")
8579+ }
8580+
8581+ var r0 []*entity.PermissionRecord
8582+ var r1 error
8583+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]*entity.PermissionRecord, error)); ok {
8584+ return returnFunc(ctx, origin)
8585+ }
8586+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) []*entity.PermissionRecord); ok {
8587+ r0 = returnFunc(ctx, origin)
8588+ } else {
8589+ if ret.Get(0) != nil {
8590+ r0 = ret.Get(0).([]*entity.PermissionRecord)
8591+ }
8592+ }
8593+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
8594+ r1 = returnFunc(ctx, origin)
8595+ } else {
8596+ r1 = ret.Error(1)
8597+ }
8598+ return r0, r1
8599+}
8600+
8601+// MockPermissionRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
8602+type MockPermissionRepository_GetAll_Call struct {
8603+ *mock.Call
8604+}
8605+
8606+// GetAll is a helper method to define mock.On call
8607+// - ctx context.Context
8608+// - origin string
8609+func (_e *MockPermissionRepository_Expecter) GetAll(ctx interface{}, origin interface{}) *MockPermissionRepository_GetAll_Call {
8610+ return &MockPermissionRepository_GetAll_Call{Call: _e.mock.On("GetAll", ctx, origin)}
8611+}
8612+
8613+func (_c *MockPermissionRepository_GetAll_Call) Run(run func(ctx context.Context, origin string)) *MockPermissionRepository_GetAll_Call {
8614+ _c.Call.Run(func(args mock.Arguments) {
8615+ var arg0 context.Context
8616+ if args[0] != nil {
8617+ arg0 = args[0].(context.Context)
8618+ }
8619+ var arg1 string
8620+ if args[1] != nil {
8621+ arg1 = args[1].(string)
8622+ }
8623+ run(
8624+ arg0,
8625+ arg1,
8626+ )
8627+ })
8628+ return _c
8629+}
8630+
8631+func (_c *MockPermissionRepository_GetAll_Call) Return(permissionRecords []*entity.PermissionRecord, err error) *MockPermissionRepository_GetAll_Call {
8632+ _c.Call.Return(permissionRecords, err)
8633+ return _c
8634+}
8635+
8636+func (_c *MockPermissionRepository_GetAll_Call) RunAndReturn(run func(ctx context.Context, origin string) ([]*entity.PermissionRecord, error)) *MockPermissionRepository_GetAll_Call {
8637+ _c.Call.Return(run)
8638+ return _c
8639+}
8640+
8641+// Set provides a mock function for the type MockPermissionRepository
8642+func (_mock *MockPermissionRepository) Set(ctx context.Context, record *entity.PermissionRecord) error {
8643+ ret := _mock.Called(ctx, record)
8644+
8645+ if len(ret) == 0 {
8646+ panic("no return value specified for Set")
8647+ }
8648+
8649+ var r0 error
8650+ if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.PermissionRecord) error); ok {
8651+ r0 = returnFunc(ctx, record)
8652+ } else {
8653+ r0 = ret.Error(0)
8654+ }
8655+ return r0
8656+}
8657+
8658+// MockPermissionRepository_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
8659+type MockPermissionRepository_Set_Call struct {
8660+ *mock.Call
8661+}
8662+
8663+// Set is a helper method to define mock.On call
8664+// - ctx context.Context
8665+// - record *entity.PermissionRecord
8666+func (_e *MockPermissionRepository_Expecter) Set(ctx interface{}, record interface{}) *MockPermissionRepository_Set_Call {
8667+ return &MockPermissionRepository_Set_Call{Call: _e.mock.On("Set", ctx, record)}
8668+}
8669+
8670+func (_c *MockPermissionRepository_Set_Call) Run(run func(ctx context.Context, record *entity.PermissionRecord)) *MockPermissionRepository_Set_Call {
8671+ _c.Call.Run(func(args mock.Arguments) {
8672+ var arg0 context.Context
8673+ if args[0] != nil {
8674+ arg0 = args[0].(context.Context)
8675+ }
8676+ var arg1 *entity.PermissionRecord
8677+ if args[1] != nil {
8678+ arg1 = args[1].(*entity.PermissionRecord)
8679+ }
8680+ run(
8681+ arg0,
8682+ arg1,
8683+ )
8684+ })
8685+ return _c
8686+}
8687+
8688+func (_c *MockPermissionRepository_Set_Call) Return(err error) *MockPermissionRepository_Set_Call {
8689+ _c.Call.Return(err)
8690+ return _c
8691+}
8692+
8693+func (_c *MockPermissionRepository_Set_Call) RunAndReturn(run func(ctx context.Context, record *entity.PermissionRecord) error) *MockPermissionRepository_Set_Call {
8694+ _c.Call.Return(run)
8695+ return _c
8696+}
8697+
8698+// 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
8713+type MockRenderingEnvManager struct {
8714+ mock.Mock
8715+}
8716+
8717+type MockRenderingEnvManager_Expecter struct {
8718+ mock *mock.Mock
8719+}
8720+
8721+func (_m *MockRenderingEnvManager) EXPECT() *MockRenderingEnvManager_Expecter {
8722+ return &MockRenderingEnvManager_Expecter{mock: &_m.Mock}
8723+}
8724+
8725+// DetectGPUVendor provides a mock function for the type MockRenderingEnvManager
8726+func (_mock *MockRenderingEnvManager) DetectGPUVendor(ctx context.Context) port.GPUVendor {
8727+ ret := _mock.Called(ctx)
8728+
8729+ if len(ret) == 0 {
8730+ 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
8748+// - ctx context.Context
8749+func (_e *MockRenderingEnvManager_Expecter) DetectGPUVendor(ctx interface{}) *MockRenderingEnvManager_DetectGPUVendor_Call {
8750+ return &MockRenderingEnvManager_DetectGPUVendor_Call{Call: _e.mock.On("DetectGPUVendor", ctx)}
8751+}
8752+
8753+func (_c *MockRenderingEnvManager_DetectGPUVendor_Call) Run(run func(ctx context.Context)) *MockRenderingEnvManager_DetectGPUVendor_Call {
8754+ _c.Call.Run(func(args mock.Arguments) {
8755+ var arg0 context.Context
8756+ if args[0] != nil {
8757+ arg0 = args[0].(context.Context)
8758+ }
8759+ run(
8760+ arg0,
8761+ )
8762+ })
8763+ return _c
8764+}
8765+
8766+func (_c *MockRenderingEnvManager_DetectGPUVendor_Call) Return(gPUVendor port.GPUVendor) *MockRenderingEnvManager_DetectGPUVendor_Call {
8767+ _c.Call.Return(gPUVendor)
8768+ return _c
8769+}
8770+
8771+func (_c *MockRenderingEnvManager_DetectGPUVendor_Call) RunAndReturn(run func(ctx context.Context) port.GPUVendor) *MockRenderingEnvManager_DetectGPUVendor_Call {
8772+ _c.Call.Return(run)
8773+ return _c
8774+}
8775+
8776+// GetAppliedVars provides a mock function for the type MockRenderingEnvManager
8777+func (_mock *MockRenderingEnvManager) GetAppliedVars() map[string]string {
8778+ ret := _mock.Called()
8779+
8780+ if len(ret) == 0 {
8781+ panic("no return value specified for GetAppliedVars")
8782+ }
8783+
8784+ var r0 map[string]string
8785+ if returnFunc, ok := ret.Get(0).(func() map[string]string); ok {
8786+ r0 = returnFunc()
8787+ } else {
8788+ if ret.Get(0) != nil {
8789+ r0 = ret.Get(0).(map[string]string)
8790+ }
8791+ }
8792+ return r0
8793+}
8794+
8795+// MockRenderingEnvManager_GetAppliedVars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppliedVars'
8796+type MockRenderingEnvManager_GetAppliedVars_Call struct {
8797+ *mock.Call
8798+}
8799+
8800+// GetAppliedVars is a helper method to define mock.On call
8801+func (_e *MockRenderingEnvManager_Expecter) GetAppliedVars() *MockRenderingEnvManager_GetAppliedVars_Call {
8802+ return &MockRenderingEnvManager_GetAppliedVars_Call{Call: _e.mock.On("GetAppliedVars")}
8803+}
8804+
8805+func (_c *MockRenderingEnvManager_GetAppliedVars_Call) Run(run func()) *MockRenderingEnvManager_GetAppliedVars_Call {
8806+ _c.Call.Run(func(args mock.Arguments) {
8807+ run()
8808+ })
8809+ return _c
8810+}
8811+
8812+func (_c *MockRenderingEnvManager_GetAppliedVars_Call) Return(stringToString map[string]string) *MockRenderingEnvManager_GetAppliedVars_Call {
8813+ _c.Call.Return(stringToString)
8814+ return _c
8815+}
8816+
8817+func (_c *MockRenderingEnvManager_GetAppliedVars_Call) RunAndReturn(run func() map[string]string) *MockRenderingEnvManager_GetAppliedVars_Call {
8818+ _c.Call.Return(run)
8819+ return _c
8820+}
8821+
8822+// 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
8837+type MockRuntimeVersionProbe struct {
8838+ mock.Mock
8839+}
8840+
8841+type MockRuntimeVersionProbe_Expecter struct {
8842+ mock *mock.Mock
8843+}
8844+
8845+func (_m *MockRuntimeVersionProbe) EXPECT() *MockRuntimeVersionProbe_Expecter {
8846+ return &MockRuntimeVersionProbe_Expecter{mock: &_m.Mock}
8847+}
8848+
8849+// PkgConfigModVersion provides a mock function for the type MockRuntimeVersionProbe
8850+func (_mock *MockRuntimeVersionProbe) PkgConfigModVersion(ctx context.Context, pkgName string, prefix string) (string, error) {
8851+ ret := _mock.Called(ctx, pkgName, prefix)
8852+
8853+ if len(ret) == 0 {
8854+ 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
8881+// - ctx context.Context
8882+// - pkgName string
8883+// - prefix string
8884+func (_e *MockRuntimeVersionProbe_Expecter) PkgConfigModVersion(ctx interface{}, pkgName interface{}, prefix interface{}) *MockRuntimeVersionProbe_PkgConfigModVersion_Call {
8885+ return &MockRuntimeVersionProbe_PkgConfigModVersion_Call{Call: _e.mock.On("PkgConfigModVersion", ctx, pkgName, prefix)}
8886+}
8887+
8888+func (_c *MockRuntimeVersionProbe_PkgConfigModVersion_Call) Run(run func(ctx context.Context, pkgName string, prefix string)) *MockRuntimeVersionProbe_PkgConfigModVersion_Call {
8889+ _c.Call.Run(func(args mock.Arguments) {
8890+ var arg0 context.Context
8891+ if args[0] != nil {
8892+ arg0 = args[0].(context.Context)
8893+ }
8894+ var arg1 string
8895+ if args[1] != nil {
8896+ arg1 = args[1].(string)
8897+ }
8898+ var arg2 string
8899+ if args[2] != nil {
8900+ arg2 = args[2].(string)
8901+ }
8902+ run(
8903+ arg0,
8904+ arg1,
8905+ arg2,
8906+ )
8907+ })
8908+ return _c
8909+}
8910+
8911+func (_c *MockRuntimeVersionProbe_PkgConfigModVersion_Call) Return(s string, err error) *MockRuntimeVersionProbe_PkgConfigModVersion_Call {
8912+ _c.Call.Return(s, err)
8913+ return _c
8914+}
8915+
8916+func (_c *MockRuntimeVersionProbe_PkgConfigModVersion_Call) RunAndReturn(run func(ctx context.Context, pkgName string, prefix string) (string, error)) *MockRuntimeVersionProbe_PkgConfigModVersion_Call {
8917+ _c.Call.Return(run)
8918+ return _c
8919+}
8920+
8921+// 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
8936+type MockSessionLogger struct {
8937+ mock.Mock
8938+}
8939+
8940+type MockSessionLogger_Expecter struct {
8941+ mock *mock.Mock
8942+}
8943+
8944+func (_m *MockSessionLogger) EXPECT() *MockSessionLogger_Expecter {
8945+ return &MockSessionLogger_Expecter{mock: &_m.Mock}
8946+}
8947+
8948+// CreateLogger provides a mock function for the type MockSessionLogger
8949+func (_mock *MockSessionLogger) CreateLogger(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig) (zerolog.Logger, func(), error) {
8950+ ret := _mock.Called(ctx, sessionID, cfg)
8951+
8952+ if len(ret) == 0 {
8953+ panic("no return value specified for CreateLogger")
8954+ }
8955+
8956+ var r0 zerolog.Logger
8957+ var r1 func()
8958+ var r2 error
8959+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.SessionID, port.SessionLogConfig) (zerolog.Logger, func(), error)); ok {
8960+ return returnFunc(ctx, sessionID, cfg)
8961+ }
8962+ if returnFunc, ok := ret.Get(0).(func(context.Context, entity.SessionID, port.SessionLogConfig) zerolog.Logger); ok {
8963+ r0 = returnFunc(ctx, sessionID, cfg)
8964+ } else {
8965+ r0 = ret.Get(0).(zerolog.Logger)
8966+ }
8967+ if returnFunc, ok := ret.Get(1).(func(context.Context, entity.SessionID, port.SessionLogConfig) func()); ok {
8968+ r1 = returnFunc(ctx, sessionID, cfg)
8969+ } else {
8970+ if ret.Get(1) != nil {
8971+ r1 = ret.Get(1).(func())
8972+ }
8973+ }
8974+ if returnFunc, ok := ret.Get(2).(func(context.Context, entity.SessionID, port.SessionLogConfig) error); ok {
8975+ r2 = returnFunc(ctx, sessionID, cfg)
8976+ } else {
8977+ r2 = ret.Error(2)
8978+ }
8979+ return r0, r1, r2
8980+}
8981+
8982+// MockSessionLogger_CreateLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLogger'
8983+type MockSessionLogger_CreateLogger_Call struct {
8984+ *mock.Call
8985+}
8986+
8987+// CreateLogger is a helper method to define mock.On call
8988+// - ctx context.Context
8989+// - sessionID entity.SessionID
8990+// - cfg port.SessionLogConfig
8991+func (_e *MockSessionLogger_Expecter) CreateLogger(ctx interface{}, sessionID interface{}, cfg interface{}) *MockSessionLogger_CreateLogger_Call {
8992+ return &MockSessionLogger_CreateLogger_Call{Call: _e.mock.On("CreateLogger", ctx, sessionID, cfg)}
8993+}
8994+
8995+func (_c *MockSessionLogger_CreateLogger_Call) Run(run func(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig)) *MockSessionLogger_CreateLogger_Call {
8996+ _c.Call.Run(func(args mock.Arguments) {
8997+ var arg0 context.Context
8998+ if args[0] != nil {
8999+ arg0 = args[0].(context.Context)
9000+ }
9001+ var arg1 entity.SessionID
9002+ if args[1] != nil {
9003+ arg1 = args[1].(entity.SessionID)
9004+ }
9005+ var arg2 port.SessionLogConfig
9006+ if args[2] != nil {
9007+ arg2 = args[2].(port.SessionLogConfig)
9008+ }
9009+ run(
9010+ arg0,
9011+ arg1,
9012+ arg2,
9013+ )
9014+ })
9015+ return _c
9016+}
9017+
9018+func (_c *MockSessionLogger_CreateLogger_Call) Return(logger zerolog.Logger, fn func(), err error) *MockSessionLogger_CreateLogger_Call {
9019+ _c.Call.Return(logger, fn, err)
9020+ return _c
9021+}
9022+
9023+func (_c *MockSessionLogger_CreateLogger_Call) RunAndReturn(run func(ctx context.Context, sessionID entity.SessionID, cfg port.SessionLogConfig) (zerolog.Logger, func(), error)) *MockSessionLogger_CreateLogger_Call {
9024+ _c.Call.Return(run)
9025+ return _c
9026+}
9027+
9028+// 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
9043+type MockTabListProvider struct {
9044+ mock.Mock
9045+}
9046+
9047+type MockTabListProvider_Expecter struct {
9048+ mock *mock.Mock
9049+}
9050+
9051+func (_m *MockTabListProvider) EXPECT() *MockTabListProvider_Expecter {
9052+ return &MockTabListProvider_Expecter{mock: &_m.Mock}
9053+}
9054+
9055+// GetSessionID provides a mock function for the type MockTabListProvider
9056+func (_mock *MockTabListProvider) GetSessionID() entity.SessionID {
9057+ ret := _mock.Called()
9058+
9059+ if len(ret) == 0 {
9060+ panic("no return value specified for GetSessionID")
9061+ }
9062+
9063+ var r0 entity.SessionID
9064+ if returnFunc, ok := ret.Get(0).(func() entity.SessionID); ok {
9065+ r0 = returnFunc()
9066+ } else {
9067+ r0 = ret.Get(0).(entity.SessionID)
9068+ }
9069+ return r0
9070+}
9071+
9072+// MockTabListProvider_GetSessionID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSessionID'
9073+type MockTabListProvider_GetSessionID_Call struct {
9074+ *mock.Call
9075+}
9076+
9077+// GetSessionID is a helper method to define mock.On call
9078+func (_e *MockTabListProvider_Expecter) GetSessionID() *MockTabListProvider_GetSessionID_Call {
9079+ return &MockTabListProvider_GetSessionID_Call{Call: _e.mock.On("GetSessionID")}
9080+}
9081+
9082+func (_c *MockTabListProvider_GetSessionID_Call) Run(run func()) *MockTabListProvider_GetSessionID_Call {
9083+ _c.Call.Run(func(args mock.Arguments) {
9084+ run()
9085+ })
9086+ return _c
9087+}
9088+
9089+func (_c *MockTabListProvider_GetSessionID_Call) Return(sessionID entity.SessionID) *MockTabListProvider_GetSessionID_Call {
9090+ _c.Call.Return(sessionID)
9091+ return _c
9092+}
9093+
9094+func (_c *MockTabListProvider_GetSessionID_Call) RunAndReturn(run func() entity.SessionID) *MockTabListProvider_GetSessionID_Call {
9095+ _c.Call.Return(run)
9096+ return _c
9097+}
9098+
9099+// GetTabList provides a mock function for the type MockTabListProvider
9100+func (_mock *MockTabListProvider) GetTabList() *entity.TabList {
9101+ ret := _mock.Called()
9102+
9103+ if len(ret) == 0 {
9104+ panic("no return value specified for GetTabList")
9105+ }
9106+
9107+ var r0 *entity.TabList
9108+ if returnFunc, ok := ret.Get(0).(func() *entity.TabList); ok {
9109+ r0 = returnFunc()
9110+ } else {
9111+ if ret.Get(0) != nil {
9112+ r0 = ret.Get(0).(*entity.TabList)
9113+ }
9114+ }
9115+ return r0
9116+}
9117+
9118+// MockTabListProvider_GetTabList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTabList'
9119+type MockTabListProvider_GetTabList_Call struct {
9120+ *mock.Call
9121+}
9122+
9123+// GetTabList is a helper method to define mock.On call
9124+func (_e *MockTabListProvider_Expecter) GetTabList() *MockTabListProvider_GetTabList_Call {
9125+ return &MockTabListProvider_GetTabList_Call{Call: _e.mock.On("GetTabList")}
9126+}
9127+
9128+func (_c *MockTabListProvider_GetTabList_Call) Run(run func()) *MockTabListProvider_GetTabList_Call {
9129+ _c.Call.Run(func(args mock.Arguments) {
9130+ run()
9131+ })
9132+ return _c
9133+}
9134+
9135+func (_c *MockTabListProvider_GetTabList_Call) Return(tabList *entity.TabList) *MockTabListProvider_GetTabList_Call {
9136+ _c.Call.Return(tabList)
9137+ return _c
9138+}
9139+
9140+func (_c *MockTabListProvider_GetTabList_Call) RunAndReturn(run func() *entity.TabList) *MockTabListProvider_GetTabList_Call {
9141+ _c.Call.Return(run)
9142+ return _c
9143+}
9144+
9145+// 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
9160+type MockSessionSpawner struct {
9161+ mock.Mock
9162+}
9163+
9164+type MockSessionSpawner_Expecter struct {
9165+ mock *mock.Mock
9166+}
9167+
9168+func (_m *MockSessionSpawner) EXPECT() *MockSessionSpawner_Expecter {
9169+ return &MockSessionSpawner_Expecter{mock: &_m.Mock}
9170+}
9171+
9172+// SpawnWithSession provides a mock function for the type MockSessionSpawner
9173+func (_mock *MockSessionSpawner) SpawnWithSession(sessionID entity.SessionID) error {
9174+ ret := _mock.Called(sessionID)
9175+
9176+ if len(ret) == 0 {
9177+ panic("no return value specified for SpawnWithSession")
9178+ }
9179+
9180+ var r0 error
9181+ if returnFunc, ok := ret.Get(0).(func(entity.SessionID) error); ok {
9182+ r0 = returnFunc(sessionID)
9183+ } else {
9184+ r0 = ret.Error(0)
9185+ }
9186+ return r0
9187+}
9188+
9189+// MockSessionSpawner_SpawnWithSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpawnWithSession'
9190+type MockSessionSpawner_SpawnWithSession_Call struct {
9191+ *mock.Call
9192+}
9193+
9194+// SpawnWithSession is a helper method to define mock.On call
9195+// - sessionID entity.SessionID
9196+func (_e *MockSessionSpawner_Expecter) SpawnWithSession(sessionID interface{}) *MockSessionSpawner_SpawnWithSession_Call {
9197+ return &MockSessionSpawner_SpawnWithSession_Call{Call: _e.mock.On("SpawnWithSession", sessionID)}
9198+}
9199+
9200+func (_c *MockSessionSpawner_SpawnWithSession_Call) Run(run func(sessionID entity.SessionID)) *MockSessionSpawner_SpawnWithSession_Call {
9201+ _c.Call.Run(func(args mock.Arguments) {
9202+ var arg0 entity.SessionID
9203+ if args[0] != nil {
9204+ arg0 = args[0].(entity.SessionID)
9205+ }
9206+ run(
9207+ arg0,
9208+ )
9209+ })
9210+ return _c
9211+}
9212+
9213+func (_c *MockSessionSpawner_SpawnWithSession_Call) Return(err error) *MockSessionSpawner_SpawnWithSession_Call {
9214+ _c.Call.Return(err)
9215+ return _c
9216+}
9217+
9218+func (_c *MockSessionSpawner_SpawnWithSession_Call) RunAndReturn(run func(sessionID entity.SessionID) error) *MockSessionSpawner_SpawnWithSession_Call {
9219+ _c.Call.Return(run)
9220+ return _c
9221+}
9222+
9223+// 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
9238+type MockSnapshotService struct {
9239+ mock.Mock
9240+}
9241+
9242+type MockSnapshotService_Expecter struct {
9243+ mock *mock.Mock
9244+}
9245+
9246+func (_m *MockSnapshotService) EXPECT() *MockSnapshotService_Expecter {
9247+ return &MockSnapshotService_Expecter{mock: &_m.Mock}
9248+}
9249+
9250+// MarkDirty provides a mock function for the type MockSnapshotService
9251+func (_mock *MockSnapshotService) MarkDirty() {
9252+ _mock.Called()
9253+ return
9254+}
9255+
9256+// MockSnapshotService_MarkDirty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkDirty'
9257+type MockSnapshotService_MarkDirty_Call struct {
9258+ *mock.Call
9259+}
9260+
9261+// MarkDirty is a helper method to define mock.On call
9262+func (_e *MockSnapshotService_Expecter) MarkDirty() *MockSnapshotService_MarkDirty_Call {
9263+ return &MockSnapshotService_MarkDirty_Call{Call: _e.mock.On("MarkDirty")}
9264+}
9265+
9266+func (_c *MockSnapshotService_MarkDirty_Call) Run(run func()) *MockSnapshotService_MarkDirty_Call {
9267+ _c.Call.Run(func(args mock.Arguments) {
9268+ run()
9269+ })
9270+ return _c
9271+}
9272+
9273+func (_c *MockSnapshotService_MarkDirty_Call) Return() *MockSnapshotService_MarkDirty_Call {
9274+ _c.Call.Return()
9275+ return _c
9276+}
9277+
9278+func (_c *MockSnapshotService_MarkDirty_Call) RunAndReturn(run func()) *MockSnapshotService_MarkDirty_Call {
9279+ _c.Run(run)
9280+ return _c
9281+}
9282+
9283+// SaveNow provides a mock function for the type MockSnapshotService
9284+func (_mock *MockSnapshotService) SaveNow(ctx context.Context) error {
9285+ ret := _mock.Called(ctx)
9286+
9287+ if len(ret) == 0 {
9288+ panic("no return value specified for SaveNow")
9289+ }
9290+
9291+ var r0 error
9292+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
9293+ r0 = returnFunc(ctx)
9294+ } else {
9295+ r0 = ret.Error(0)
9296+ }
9297+ return r0
9298+}
9299+
9300+// MockSnapshotService_SaveNow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveNow'
9301+type MockSnapshotService_SaveNow_Call struct {
9302+ *mock.Call
9303+}
9304+
9305+// SaveNow is a helper method to define mock.On call
9306+// - ctx context.Context
9307+func (_e *MockSnapshotService_Expecter) SaveNow(ctx interface{}) *MockSnapshotService_SaveNow_Call {
9308+ return &MockSnapshotService_SaveNow_Call{Call: _e.mock.On("SaveNow", ctx)}
9309+}
9310+
9311+func (_c *MockSnapshotService_SaveNow_Call) Run(run func(ctx context.Context)) *MockSnapshotService_SaveNow_Call {
9312+ _c.Call.Run(func(args mock.Arguments) {
9313+ var arg0 context.Context
9314+ if args[0] != nil {
9315+ arg0 = args[0].(context.Context)
9316+ }
9317+ run(
9318+ arg0,
9319+ )
9320+ })
9321+ return _c
9322+}
9323+
9324+func (_c *MockSnapshotService_SaveNow_Call) Return(err error) *MockSnapshotService_SaveNow_Call {
9325+ _c.Call.Return(err)
9326+ return _c
9327+}
9328+
9329+func (_c *MockSnapshotService_SaveNow_Call) RunAndReturn(run func(ctx context.Context) error) *MockSnapshotService_SaveNow_Call {
9330+ _c.Call.Return(run)
9331+ return _c
9332+}
9333+
9334+// SetReady provides a mock function for the type MockSnapshotService
9335+func (_mock *MockSnapshotService) SetReady() {
9336+ _mock.Called()
9337+ return
9338+}
9339+
9340+// MockSnapshotService_SetReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetReady'
9341+type MockSnapshotService_SetReady_Call struct {
9342+ *mock.Call
9343+}
9344+
9345+// SetReady is a helper method to define mock.On call
9346+func (_e *MockSnapshotService_Expecter) SetReady() *MockSnapshotService_SetReady_Call {
9347+ return &MockSnapshotService_SetReady_Call{Call: _e.mock.On("SetReady")}
9348+}
9349+
9350+func (_c *MockSnapshotService_SetReady_Call) Run(run func()) *MockSnapshotService_SetReady_Call {
9351+ _c.Call.Run(func(args mock.Arguments) {
9352+ run()
9353+ })
9354+ return _c
9355+}
9356+
9357+func (_c *MockSnapshotService_SetReady_Call) Return() *MockSnapshotService_SetReady_Call {
9358+ _c.Call.Return()
9359+ return _c
9360+}
9361+
9362+func (_c *MockSnapshotService_SetReady_Call) RunAndReturn(run func()) *MockSnapshotService_SetReady_Call {
9363+ _c.Run(run)
9364+ return _c
9365+}
9366+
9367+// Start provides a mock function for the type MockSnapshotService
9368+func (_mock *MockSnapshotService) Start(ctx context.Context) {
9369+ _mock.Called(ctx)
9370+ return
9371+}
9372+
9373+// MockSnapshotService_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
9374+type MockSnapshotService_Start_Call struct {
9375+ *mock.Call
9376+}
9377+
9378+// Start is a helper method to define mock.On call
9379+// - ctx context.Context
9380+func (_e *MockSnapshotService_Expecter) Start(ctx interface{}) *MockSnapshotService_Start_Call {
9381+ return &MockSnapshotService_Start_Call{Call: _e.mock.On("Start", ctx)}
9382+}
9383+
9384+func (_c *MockSnapshotService_Start_Call) Run(run func(ctx context.Context)) *MockSnapshotService_Start_Call {
9385+ _c.Call.Run(func(args mock.Arguments) {
9386+ var arg0 context.Context
9387+ if args[0] != nil {
9388+ arg0 = args[0].(context.Context)
9389+ }
9390+ run(
9391+ arg0,
9392+ )
9393+ })
9394+ return _c
9395+}
9396+
9397+func (_c *MockSnapshotService_Start_Call) Return() *MockSnapshotService_Start_Call {
9398+ _c.Call.Return()
9399+ return _c
9400+}
9401+
9402+func (_c *MockSnapshotService_Start_Call) RunAndReturn(run func(ctx context.Context)) *MockSnapshotService_Start_Call {
9403+ _c.Run(run)
9404+ return _c
9405+}
9406+
9407+// Stop provides a mock function for the type MockSnapshotService
9408+func (_mock *MockSnapshotService) Stop(ctx context.Context) error {
9409+ ret := _mock.Called(ctx)
9410+
9411+ if len(ret) == 0 {
9412+ panic("no return value specified for Stop")
9413+ }
9414+
9415+ var r0 error
9416+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
9417+ r0 = returnFunc(ctx)
9418+ } else {
9419+ r0 = ret.Error(0)
9420+ }
9421+ return r0
9422+}
9423+
9424+// MockSnapshotService_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
9425+type MockSnapshotService_Stop_Call struct {
9426+ *mock.Call
9427+}
9428+
9429+// Stop is a helper method to define mock.On call
9430+// - ctx context.Context
9431+func (_e *MockSnapshotService_Expecter) Stop(ctx interface{}) *MockSnapshotService_Stop_Call {
9432+ return &MockSnapshotService_Stop_Call{Call: _e.mock.On("Stop", ctx)}
9433+}
9434+
9435+func (_c *MockSnapshotService_Stop_Call) Run(run func(ctx context.Context)) *MockSnapshotService_Stop_Call {
9436+ _c.Call.Run(func(args mock.Arguments) {
9437+ var arg0 context.Context
9438+ if args[0] != nil {
9439+ arg0 = args[0].(context.Context)
9440+ }
9441+ run(
9442+ arg0,
9443+ )
9444+ })
9445+ return _c
9446+}
9447+
9448+func (_c *MockSnapshotService_Stop_Call) Return(err error) *MockSnapshotService_Stop_Call {
9449+ _c.Call.Return(err)
9450+ return _c
9451+}
9452+
9453+func (_c *MockSnapshotService_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockSnapshotService_Stop_Call {
9454+ _c.Call.Return(run)
9455+ return _c
9456+}
9457+
9458+// 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
9473+type MockTextInputTarget struct {
9474+ mock.Mock
9475+}
9476+
9477+type MockTextInputTarget_Expecter struct {
9478+ mock *mock.Mock
9479+}
9480+
9481+func (_m *MockTextInputTarget) EXPECT() *MockTextInputTarget_Expecter {
9482+ return &MockTextInputTarget_Expecter{mock: &_m.Mock}
9483+}
9484+
9485+// 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 {
9511+ return &MockTextInputTarget_DeleteBeforeCursor_Call{Call: _e.mock.On("DeleteBeforeCursor", ctx, n)}
9512+}
9513+
9514+func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Run(run func(ctx context.Context, n int)) *MockTextInputTarget_DeleteBeforeCursor_Call {
9515+ _c.Call.Run(func(args mock.Arguments) {
9516+ var arg0 context.Context
9517+ if args[0] != nil {
9518+ arg0 = args[0].(context.Context)
9519+ }
9520+ var arg1 int
9521+ if args[1] != nil {
9522+ arg1 = args[1].(int)
9523+ }
9524+ run(
9525+ arg0,
9526+ arg1,
9527+ )
9528+ })
9529+ return _c
9530+}
9531+
9532+func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Return(err error) *MockTextInputTarget_DeleteBeforeCursor_Call {
9533+ _c.Call.Return(err)
9534+ return _c
9535+}
9536+
9537+func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) RunAndReturn(run func(ctx context.Context, n int) error) *MockTextInputTarget_DeleteBeforeCursor_Call {
9538+ _c.Call.Return(run)
9539+ return _c
9540+}
9541+
9542+// InsertText provides a mock function for the type MockTextInputTarget
9543+func (_mock *MockTextInputTarget) InsertText(ctx context.Context, text string) error {
9544+ ret := _mock.Called(ctx, text)
9545+
9546+ if len(ret) == 0 {
9547+ panic("no return value specified for InsertText")
9548+ }
9549+
9550+ var r0 error
9551+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
9552+ r0 = returnFunc(ctx, text)
9553+ } else {
9554+ r0 = ret.Error(0)
9555+ }
9556+ return r0
9557+}
9558+
9559+// MockTextInputTarget_InsertText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertText'
9560+type MockTextInputTarget_InsertText_Call struct {
9561+ *mock.Call
9562+}
9563+
9564+// InsertText is a helper method to define mock.On call
9565+// - ctx context.Context
9566+// - text string
9567+func (_e *MockTextInputTarget_Expecter) InsertText(ctx interface{}, text interface{}) *MockTextInputTarget_InsertText_Call {
9568+ return &MockTextInputTarget_InsertText_Call{Call: _e.mock.On("InsertText", ctx, text)}
9569+}
9570+
9571+func (_c *MockTextInputTarget_InsertText_Call) Run(run func(ctx context.Context, text string)) *MockTextInputTarget_InsertText_Call {
9572+ _c.Call.Run(func(args mock.Arguments) {
9573+ var arg0 context.Context
9574+ if args[0] != nil {
9575+ arg0 = args[0].(context.Context)
9576+ }
9577+ var arg1 string
9578+ if args[1] != nil {
9579+ arg1 = args[1].(string)
9580+ }
9581+ run(
9582+ arg0,
9583+ arg1,
9584+ )
9585+ })
9586+ return _c
9587+}
9588+
9589+func (_c *MockTextInputTarget_InsertText_Call) Return(err error) *MockTextInputTarget_InsertText_Call {
9590+ _c.Call.Return(err)
9591+ return _c
9592+}
9593+
9594+func (_c *MockTextInputTarget_InsertText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockTextInputTarget_InsertText_Call {
9595+ _c.Call.Return(run)
9596+ return _c
9597+}
9598+
9599+// 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
9614+type MockFocusable struct {
9615+ mock.Mock
9616+}
9617+
9618+type MockFocusable_Expecter struct {
9619+ mock *mock.Mock
9620+}
9621+
9622+func (_m *MockFocusable) EXPECT() *MockFocusable_Expecter {
9623+ return &MockFocusable_Expecter{mock: &_m.Mock}
9624+}
9625+
9626+// Focus provides a mock function for the type MockFocusable
9627+func (_mock *MockFocusable) Focus(ctx context.Context) {
9628+ _mock.Called(ctx)
9629+ return
9630+}
9631+
9632+// MockFocusable_Focus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Focus'
9633+type MockFocusable_Focus_Call struct {
9634+ *mock.Call
9635+}
9636+
9637+// Focus is a helper method to define mock.On call
9638+// - ctx context.Context
9639+func (_e *MockFocusable_Expecter) Focus(ctx interface{}) *MockFocusable_Focus_Call {
9640+ return &MockFocusable_Focus_Call{Call: _e.mock.On("Focus", ctx)}
9641+}
9642+
9643+func (_c *MockFocusable_Focus_Call) Run(run func(ctx context.Context)) *MockFocusable_Focus_Call {
9644+ _c.Call.Run(func(args mock.Arguments) {
9645+ var arg0 context.Context
9646+ if args[0] != nil {
9647+ arg0 = args[0].(context.Context)
9648+ }
9649+ run(
9650+ arg0,
9651+ )
9652+ })
9653+ return _c
9654+}
9655+
9656+func (_c *MockFocusable_Focus_Call) Return() *MockFocusable_Focus_Call {
9657+ _c.Call.Return()
9658+ return _c
9659+}
9660+
9661+func (_c *MockFocusable_Focus_Call) RunAndReturn(run func(ctx context.Context)) *MockFocusable_Focus_Call {
9662+ _c.Run(run)
9663+ return _c
9664+}
9665+
9666+// 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
9681+type MockGTKEntryInputTarget struct {
9682+ mock.Mock
9683+}
9684+
9685+type MockGTKEntryInputTarget_Expecter struct {
9686+ mock *mock.Mock
9687+}
9688+
9689+func (_m *MockGTKEntryInputTarget) EXPECT() *MockGTKEntryInputTarget_Expecter {
9690+ return &MockGTKEntryInputTarget_Expecter{mock: &_m.Mock}
9691+}
9692+
9693+// 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 {
9719+ return &MockGTKEntryInputTarget_DeleteBeforeCursor_Call{Call: _e.mock.On("DeleteBeforeCursor", ctx, n)}
9720+}
9721+
9722+func (_c *MockGTKEntryInputTarget_DeleteBeforeCursor_Call) Run(run func(ctx context.Context, n int)) *MockGTKEntryInputTarget_DeleteBeforeCursor_Call {
9723+ _c.Call.Run(func(args mock.Arguments) {
9724+ var arg0 context.Context
9725+ if args[0] != nil {
9726+ arg0 = args[0].(context.Context)
9727+ }
9728+ var arg1 int
9729+ if args[1] != nil {
9730+ arg1 = args[1].(int)
9731+ }
9732+ run(
9733+ arg0,
9734+ arg1,
9735+ )
9736+ })
9737+ return _c
9738+}
9739+
9740+func (_c *MockGTKEntryInputTarget_DeleteBeforeCursor_Call) Return(err error) *MockGTKEntryInputTarget_DeleteBeforeCursor_Call {
9741+ _c.Call.Return(err)
9742+ return _c
9743+}
9744+
9745+func (_c *MockGTKEntryInputTarget_DeleteBeforeCursor_Call) RunAndReturn(run func(ctx context.Context, n int) error) *MockGTKEntryInputTarget_DeleteBeforeCursor_Call {
9746+ _c.Call.Return(run)
9747+ return _c
9748+}
9749+
9750+// InsertText provides a mock function for the type MockGTKEntryInputTarget
9751+func (_mock *MockGTKEntryInputTarget) InsertText(ctx context.Context, text string) error {
9752+ ret := _mock.Called(ctx, text)
9753+
9754+ if len(ret) == 0 {
9755+ panic("no return value specified for InsertText")
9756+ }
9757+
9758+ var r0 error
9759+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
9760+ r0 = returnFunc(ctx, text)
9761+ } else {
9762+ r0 = ret.Error(0)
9763+ }
9764+ return r0
9765+}
9766+
9767+// MockGTKEntryInputTarget_InsertText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertText'
9768+type MockGTKEntryInputTarget_InsertText_Call struct {
9769+ *mock.Call
9770+}
9771+
9772+// InsertText is a helper method to define mock.On call
9773+// - ctx context.Context
9774+// - text string
9775+func (_e *MockGTKEntryInputTarget_Expecter) InsertText(ctx interface{}, text interface{}) *MockGTKEntryInputTarget_InsertText_Call {
9776+ return &MockGTKEntryInputTarget_InsertText_Call{Call: _e.mock.On("InsertText", ctx, text)}
9777+}
9778+
9779+func (_c *MockGTKEntryInputTarget_InsertText_Call) Run(run func(ctx context.Context, text string)) *MockGTKEntryInputTarget_InsertText_Call {
9780+ _c.Call.Run(func(args mock.Arguments) {
9781+ var arg0 context.Context
9782+ if args[0] != nil {
9783+ arg0 = args[0].(context.Context)
9784+ }
9785+ var arg1 string
9786+ if args[1] != nil {
9787+ arg1 = args[1].(string)
9788+ }
9789+ run(
9790+ arg0,
9791+ arg1,
9792+ )
9793+ })
9794+ return _c
9795+}
9796+
9797+func (_c *MockGTKEntryInputTarget_InsertText_Call) Return(err error) *MockGTKEntryInputTarget_InsertText_Call {
9798+ _c.Call.Return(err)
9799+ return _c
9800+}
9801+
9802+func (_c *MockGTKEntryInputTarget_InsertText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockGTKEntryInputTarget_InsertText_Call {
9803+ _c.Call.Return(run)
9804+ return _c
9805+}
9806+
9807+// IsGTKEntryTarget provides a mock function for the type MockGTKEntryInputTarget
9808+func (_mock *MockGTKEntryInputTarget) IsGTKEntryTarget() bool {
9809+ ret := _mock.Called()
9810+
9811+ if len(ret) == 0 {
9812+ 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
9830+func (_e *MockGTKEntryInputTarget_Expecter) IsGTKEntryTarget() *MockGTKEntryInputTarget_IsGTKEntryTarget_Call {
9831+ return &MockGTKEntryInputTarget_IsGTKEntryTarget_Call{Call: _e.mock.On("IsGTKEntryTarget")}
9832+}
9833+
9834+func (_c *MockGTKEntryInputTarget_IsGTKEntryTarget_Call) Run(run func()) *MockGTKEntryInputTarget_IsGTKEntryTarget_Call {
9835+ _c.Call.Run(func(args mock.Arguments) {
9836+ run()
9837+ })
9838+ return _c
9839+}
9840+
9841+func (_c *MockGTKEntryInputTarget_IsGTKEntryTarget_Call) Return(b bool) *MockGTKEntryInputTarget_IsGTKEntryTarget_Call {
9842+ _c.Call.Return(b)
9843+ return _c
9844+}
9845+
9846+func (_c *MockGTKEntryInputTarget_IsGTKEntryTarget_Call) RunAndReturn(run func() bool) *MockGTKEntryInputTarget_IsGTKEntryTarget_Call {
9847+ _c.Call.Return(run)
9848+ return _c
9849+}
9850+
9851+// 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
9866+type MockFocusedInputProvider struct {
9867+ mock.Mock
9868+}
9869+
9870+type MockFocusedInputProvider_Expecter struct {
9871+ mock *mock.Mock
9872+}
9873+
9874+func (_m *MockFocusedInputProvider) EXPECT() *MockFocusedInputProvider_Expecter {
9875+ return &MockFocusedInputProvider_Expecter{mock: &_m.Mock}
9876+}
9877+
9878+// GetFocusedInput provides a mock function for the type MockFocusedInputProvider
9879+func (_mock *MockFocusedInputProvider) GetFocusedInput() port.TextInputTarget {
9880+ ret := _mock.Called()
9881+
9882+ if len(ret) == 0 {
9883+ 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
9903+func (_e *MockFocusedInputProvider_Expecter) GetFocusedInput() *MockFocusedInputProvider_GetFocusedInput_Call {
9904+ return &MockFocusedInputProvider_GetFocusedInput_Call{Call: _e.mock.On("GetFocusedInput")}
9905+}
9906+
9907+func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Run(run func()) *MockFocusedInputProvider_GetFocusedInput_Call {
9908+ _c.Call.Run(func(args mock.Arguments) {
9909+ run()
9910+ })
9911+ return _c
9912+}
9913+
9914+func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Return(textInputTarget port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call {
9915+ _c.Call.Return(textInputTarget)
9916+ return _c
9917+}
9918+
9919+func (_c *MockFocusedInputProvider_GetFocusedInput_Call) RunAndReturn(run func() port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call {
9920+ _c.Call.Return(run)
9921+ return _c
9922+}
9923+
9924+// SetFocusedInput provides a mock function for the type MockFocusedInputProvider
9925+func (_mock *MockFocusedInputProvider) SetFocusedInput(target port.TextInputTarget) {
9926+ _mock.Called(target)
9927+ return
9928+}
9929+
9930+// 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
9936+// - target port.TextInputTarget
9937+func (_e *MockFocusedInputProvider_Expecter) SetFocusedInput(target interface{}) *MockFocusedInputProvider_SetFocusedInput_Call {
9938+ return &MockFocusedInputProvider_SetFocusedInput_Call{Call: _e.mock.On("SetFocusedInput", target)}
9939+}
9940+
9941+func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Run(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call {
9942+ _c.Call.Run(func(args mock.Arguments) {
9943+ var arg0 port.TextInputTarget
9944+ if args[0] != nil {
9945+ arg0 = args[0].(port.TextInputTarget)
9946+ }
9947+ run(
9948+ arg0,
9949+ )
9950+ })
9951+ return _c
9952+}
9953+
9954+func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Return() *MockFocusedInputProvider_SetFocusedInput_Call {
9955+ _c.Call.Return()
9956+ return _c
9957+}
9958+
9959+func (_c *MockFocusedInputProvider_SetFocusedInput_Call) RunAndReturn(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call {
9960+ _c.Run(run)
9961+ return _c
9962+}
9963+
9964+// 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
9979+type MockUpdateChecker struct {
9980+ mock.Mock
9981+}
9982+
9983+type MockUpdateChecker_Expecter struct {
9984+ mock *mock.Mock
9985+}
9986+
9987+func (_m *MockUpdateChecker) EXPECT() *MockUpdateChecker_Expecter {
9988+ return &MockUpdateChecker_Expecter{mock: &_m.Mock}
9989+}
9990+
9991+// CheckForUpdate provides a mock function for the type MockUpdateChecker
9992+func (_mock *MockUpdateChecker) CheckForUpdate(ctx context.Context, currentVersion string) (*entity.UpdateInfo, error) {
9993+ ret := _mock.Called(ctx, currentVersion)
9994+
9995+ if len(ret) == 0 {
9996+ panic("no return value specified for CheckForUpdate")
9997+ }
9998+
9999+ var r0 *entity.UpdateInfo
10000+ var r1 error
10001+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*entity.UpdateInfo, error)); ok {
10002+ return returnFunc(ctx, currentVersion)
10003+ }
10004+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) *entity.UpdateInfo); ok {
10005+ r0 = returnFunc(ctx, currentVersion)
10006+ } else {
10007+ if ret.Get(0) != nil {
10008+ r0 = ret.Get(0).(*entity.UpdateInfo)
10009+ }
10010+ }
10011+ if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
10012+ r1 = returnFunc(ctx, currentVersion)
10013+ } else {
10014+ r1 = ret.Error(1)
10015+ }
10016+ return r0, r1
10017+}
10018+
10019+// MockUpdateChecker_CheckForUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckForUpdate'
10020+type MockUpdateChecker_CheckForUpdate_Call struct {
10021+ *mock.Call
10022+}
10023+
10024+// CheckForUpdate is a helper method to define mock.On call
10025+// - ctx context.Context
10026+// - currentVersion string
10027+func (_e *MockUpdateChecker_Expecter) CheckForUpdate(ctx interface{}, currentVersion interface{}) *MockUpdateChecker_CheckForUpdate_Call {
10028+ return &MockUpdateChecker_CheckForUpdate_Call{Call: _e.mock.On("CheckForUpdate", ctx, currentVersion)}
10029+}
10030+
10031+func (_c *MockUpdateChecker_CheckForUpdate_Call) Run(run func(ctx context.Context, currentVersion string)) *MockUpdateChecker_CheckForUpdate_Call {
10032+ _c.Call.Run(func(args mock.Arguments) {
10033+ var arg0 context.Context
10034+ if args[0] != nil {
10035+ arg0 = args[0].(context.Context)
10036+ }
10037+ var arg1 string
10038+ if args[1] != nil {
10039+ arg1 = args[1].(string)
10040+ }
10041+ run(
10042+ arg0,
10043+ arg1,
10044+ )
10045+ })
10046+ return _c
10047+}
10048+
10049+func (_c *MockUpdateChecker_CheckForUpdate_Call) Return(updateInfo *entity.UpdateInfo, err error) *MockUpdateChecker_CheckForUpdate_Call {
10050+ _c.Call.Return(updateInfo, err)
10051+ return _c
10052+}
10053+
10054+func (_c *MockUpdateChecker_CheckForUpdate_Call) RunAndReturn(run func(ctx context.Context, currentVersion string) (*entity.UpdateInfo, error)) *MockUpdateChecker_CheckForUpdate_Call {
10055+ _c.Call.Return(run)
10056+ return _c
10057+}
10058+
10059+// 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
10074+type MockUpdateDownloader struct {
10075+ mock.Mock
10076+}
10077+
10078+type MockUpdateDownloader_Expecter struct {
10079+ mock *mock.Mock
10080+}
10081+
10082+func (_m *MockUpdateDownloader) EXPECT() *MockUpdateDownloader_Expecter {
10083+ return &MockUpdateDownloader_Expecter{mock: &_m.Mock}
10084+}
10085+
10086+// Download provides a mock function for the type MockUpdateDownloader
10087+func (_mock *MockUpdateDownloader) Download(ctx context.Context, downloadURL string, destDir string) (string, error) {
10088+ ret := _mock.Called(ctx, downloadURL, destDir)
10089+
10090+ if len(ret) == 0 {
10091+ panic("no return value specified for Download")
10092+ }
10093+
10094+ var r0 string
10095+ var r1 error
10096+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (string, error)); ok {
10097+ return returnFunc(ctx, downloadURL, destDir)
10098+ }
10099+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) string); ok {
10100+ r0 = returnFunc(ctx, downloadURL, destDir)
10101+ } else {
10102+ r0 = ret.Get(0).(string)
10103+ }
10104+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
10105+ r1 = returnFunc(ctx, downloadURL, destDir)
10106+ } else {
10107+ r1 = ret.Error(1)
10108+ }
10109+ return r0, r1
10110+}
10111+
10112+// MockUpdateDownloader_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
10113+type MockUpdateDownloader_Download_Call struct {
10114+ *mock.Call
10115+}
10116+
10117+// Download is a helper method to define mock.On call
10118+// - ctx context.Context
10119+// - downloadURL string
10120+// - destDir string
10121+func (_e *MockUpdateDownloader_Expecter) Download(ctx interface{}, downloadURL interface{}, destDir interface{}) *MockUpdateDownloader_Download_Call {
10122+ return &MockUpdateDownloader_Download_Call{Call: _e.mock.On("Download", ctx, downloadURL, destDir)}
10123+}
10124+
10125+func (_c *MockUpdateDownloader_Download_Call) Run(run func(ctx context.Context, downloadURL string, destDir string)) *MockUpdateDownloader_Download_Call {
10126+ _c.Call.Run(func(args mock.Arguments) {
10127+ var arg0 context.Context
10128+ if args[0] != nil {
10129+ arg0 = args[0].(context.Context)
10130+ }
10131+ var arg1 string
10132+ if args[1] != nil {
10133+ arg1 = args[1].(string)
10134+ }
10135+ var arg2 string
10136+ if args[2] != nil {
10137+ arg2 = args[2].(string)
10138+ }
10139+ run(
10140+ arg0,
10141+ arg1,
10142+ arg2,
10143+ )
10144+ })
10145+ return _c
10146+}
10147+
10148+func (_c *MockUpdateDownloader_Download_Call) Return(archivePath string, err error) *MockUpdateDownloader_Download_Call {
10149+ _c.Call.Return(archivePath, err)
10150+ return _c
10151+}
10152+
10153+func (_c *MockUpdateDownloader_Download_Call) RunAndReturn(run func(ctx context.Context, downloadURL string, destDir string) (string, error)) *MockUpdateDownloader_Download_Call {
10154+ _c.Call.Return(run)
10155+ return _c
10156+}
10157+
10158+// Extract provides a mock function for the type MockUpdateDownloader
10159+func (_mock *MockUpdateDownloader) Extract(ctx context.Context, archivePath string, destDir string) (string, error) {
10160+ ret := _mock.Called(ctx, archivePath, destDir)
10161+
10162+ if len(ret) == 0 {
10163+ panic("no return value specified for Extract")
10164+ }
10165+
10166+ var r0 string
10167+ var r1 error
10168+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (string, error)); ok {
10169+ return returnFunc(ctx, archivePath, destDir)
10170+ }
10171+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) string); ok {
10172+ r0 = returnFunc(ctx, archivePath, destDir)
10173+ } else {
10174+ r0 = ret.Get(0).(string)
10175+ }
10176+ if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
10177+ r1 = returnFunc(ctx, archivePath, destDir)
10178+ } else {
10179+ r1 = ret.Error(1)
10180+ }
10181+ return r0, r1
10182+}
10183+
10184+// MockUpdateDownloader_Extract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extract'
10185+type MockUpdateDownloader_Extract_Call struct {
10186+ *mock.Call
10187+}
10188+
10189+// Extract is a helper method to define mock.On call
10190+// - ctx context.Context
10191+// - archivePath string
10192+// - destDir string
10193+func (_e *MockUpdateDownloader_Expecter) Extract(ctx interface{}, archivePath interface{}, destDir interface{}) *MockUpdateDownloader_Extract_Call {
10194+ return &MockUpdateDownloader_Extract_Call{Call: _e.mock.On("Extract", ctx, archivePath, destDir)}
10195+}
10196+
10197+func (_c *MockUpdateDownloader_Extract_Call) Run(run func(ctx context.Context, archivePath string, destDir string)) *MockUpdateDownloader_Extract_Call {
10198+ _c.Call.Run(func(args mock.Arguments) {
10199+ var arg0 context.Context
10200+ if args[0] != nil {
10201+ arg0 = args[0].(context.Context)
10202+ }
10203+ var arg1 string
10204+ if args[1] != nil {
10205+ arg1 = args[1].(string)
10206+ }
10207+ var arg2 string
10208+ if args[2] != nil {
10209+ arg2 = args[2].(string)
10210+ }
10211+ run(
10212+ arg0,
10213+ arg1,
10214+ arg2,
10215+ )
10216+ })
10217+ return _c
10218+}
10219+
10220+func (_c *MockUpdateDownloader_Extract_Call) Return(binaryPath string, err error) *MockUpdateDownloader_Extract_Call {
10221+ _c.Call.Return(binaryPath, err)
10222+ return _c
10223+}
10224+
10225+func (_c *MockUpdateDownloader_Extract_Call) RunAndReturn(run func(ctx context.Context, archivePath string, destDir string) (string, error)) *MockUpdateDownloader_Extract_Call {
10226+ _c.Call.Return(run)
10227+ return _c
10228+}
10229+
10230+// 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
10245+type MockUpdateApplier struct {
10246+ mock.Mock
10247+}
10248+
10249+type MockUpdateApplier_Expecter struct {
10250+ mock *mock.Mock
10251+}
10252+
10253+func (_m *MockUpdateApplier) EXPECT() *MockUpdateApplier_Expecter {
10254+ return &MockUpdateApplier_Expecter{mock: &_m.Mock}
10255+}
10256+
10257+// ApplyOnExit provides a mock function for the type MockUpdateApplier
10258+func (_mock *MockUpdateApplier) ApplyOnExit(ctx context.Context) (string, error) {
10259+ ret := _mock.Called(ctx)
10260+
10261+ if len(ret) == 0 {
10262+ panic("no return value specified for ApplyOnExit")
10263+ }
10264+
10265+ var r0 string
10266+ var r1 error
10267+ if returnFunc, ok := ret.Get(0).(func(context.Context) (string, error)); ok {
10268+ return returnFunc(ctx)
10269+ }
10270+ if returnFunc, ok := ret.Get(0).(func(context.Context) string); ok {
10271+ r0 = returnFunc(ctx)
10272+ } else {
10273+ r0 = ret.Get(0).(string)
10274+ }
10275+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
10276+ r1 = returnFunc(ctx)
10277+ } else {
10278+ r1 = ret.Error(1)
10279+ }
10280+ return r0, r1
10281+}
10282+
10283+// MockUpdateApplier_ApplyOnExit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyOnExit'
10284+type MockUpdateApplier_ApplyOnExit_Call struct {
10285+ *mock.Call
10286+}
10287+
10288+// ApplyOnExit is a helper method to define mock.On call
10289+// - ctx context.Context
10290+func (_e *MockUpdateApplier_Expecter) ApplyOnExit(ctx interface{}) *MockUpdateApplier_ApplyOnExit_Call {
10291+ return &MockUpdateApplier_ApplyOnExit_Call{Call: _e.mock.On("ApplyOnExit", ctx)}
10292+}
10293+
10294+func (_c *MockUpdateApplier_ApplyOnExit_Call) Run(run func(ctx context.Context)) *MockUpdateApplier_ApplyOnExit_Call {
10295+ _c.Call.Run(func(args mock.Arguments) {
10296+ var arg0 context.Context
10297+ if args[0] != nil {
10298+ arg0 = args[0].(context.Context)
10299+ }
10300+ run(
10301+ arg0,
10302+ )
10303+ })
10304+ return _c
10305+}
10306+
10307+func (_c *MockUpdateApplier_ApplyOnExit_Call) Return(backupPath string, err error) *MockUpdateApplier_ApplyOnExit_Call {
10308+ _c.Call.Return(backupPath, err)
10309+ return _c
10310+}
10311+
10312+func (_c *MockUpdateApplier_ApplyOnExit_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdateApplier_ApplyOnExit_Call {
10313+ _c.Call.Return(run)
10314+ return _c
10315+}
10316+
10317+// CanSelfUpdate provides a mock function for the type MockUpdateApplier
10318+func (_mock *MockUpdateApplier) CanSelfUpdate(ctx context.Context) bool {
10319+ ret := _mock.Called(ctx)
10320+
10321+ if len(ret) == 0 {
10322+ panic("no return value specified for CanSelfUpdate")
10323+ }
10324+
10325+ var r0 bool
10326+ if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
10327+ r0 = returnFunc(ctx)
10328+ } else {
10329+ r0 = ret.Get(0).(bool)
10330+ }
10331+ return r0
10332+}
10333+
10334+// MockUpdateApplier_CanSelfUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanSelfUpdate'
10335+type MockUpdateApplier_CanSelfUpdate_Call struct {
10336+ *mock.Call
10337+}
10338+
10339+// CanSelfUpdate is a helper method to define mock.On call
10340+// - ctx context.Context
10341+func (_e *MockUpdateApplier_Expecter) CanSelfUpdate(ctx interface{}) *MockUpdateApplier_CanSelfUpdate_Call {
10342+ return &MockUpdateApplier_CanSelfUpdate_Call{Call: _e.mock.On("CanSelfUpdate", ctx)}
10343+}
10344+
10345+func (_c *MockUpdateApplier_CanSelfUpdate_Call) Run(run func(ctx context.Context)) *MockUpdateApplier_CanSelfUpdate_Call {
10346+ _c.Call.Run(func(args mock.Arguments) {
10347+ var arg0 context.Context
10348+ if args[0] != nil {
10349+ arg0 = args[0].(context.Context)
10350+ }
10351+ run(
10352+ arg0,
10353+ )
10354+ })
10355+ return _c
10356+}
10357+
10358+func (_c *MockUpdateApplier_CanSelfUpdate_Call) Return(b bool) *MockUpdateApplier_CanSelfUpdate_Call {
10359+ _c.Call.Return(b)
10360+ return _c
10361+}
10362+
10363+func (_c *MockUpdateApplier_CanSelfUpdate_Call) RunAndReturn(run func(ctx context.Context) bool) *MockUpdateApplier_CanSelfUpdate_Call {
10364+ _c.Call.Return(run)
10365+ return _c
10366+}
10367+
10368+// ClearStagedUpdate provides a mock function for the type MockUpdateApplier
10369+func (_mock *MockUpdateApplier) ClearStagedUpdate(ctx context.Context) error {
10370+ ret := _mock.Called(ctx)
10371+
10372+ if len(ret) == 0 {
10373+ panic("no return value specified for ClearStagedUpdate")
10374+ }
10375+
10376+ var r0 error
10377+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
10378+ r0 = returnFunc(ctx)
10379+ } else {
10380+ r0 = ret.Error(0)
10381+ }
10382+ return r0
10383+}
10384+
10385+// MockUpdateApplier_ClearStagedUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearStagedUpdate'
10386+type MockUpdateApplier_ClearStagedUpdate_Call struct {
10387+ *mock.Call
10388+}
10389+
10390+// ClearStagedUpdate is a helper method to define mock.On call
10391+// - ctx context.Context
10392+func (_e *MockUpdateApplier_Expecter) ClearStagedUpdate(ctx interface{}) *MockUpdateApplier_ClearStagedUpdate_Call {
10393+ return &MockUpdateApplier_ClearStagedUpdate_Call{Call: _e.mock.On("ClearStagedUpdate", ctx)}
10394+}
10395+
10396+func (_c *MockUpdateApplier_ClearStagedUpdate_Call) Run(run func(ctx context.Context)) *MockUpdateApplier_ClearStagedUpdate_Call {
10397+ _c.Call.Run(func(args mock.Arguments) {
10398+ var arg0 context.Context
10399+ if args[0] != nil {
10400+ arg0 = args[0].(context.Context)
10401+ }
10402+ run(
10403+ arg0,
10404+ )
10405+ })
10406+ return _c
10407+}
10408+
10409+func (_c *MockUpdateApplier_ClearStagedUpdate_Call) Return(err error) *MockUpdateApplier_ClearStagedUpdate_Call {
10410+ _c.Call.Return(err)
10411+ return _c
10412+}
10413+
10414+func (_c *MockUpdateApplier_ClearStagedUpdate_Call) RunAndReturn(run func(ctx context.Context) error) *MockUpdateApplier_ClearStagedUpdate_Call {
10415+ _c.Call.Return(run)
10416+ return _c
10417+}
10418+
10419+// GetBinaryPath provides a mock function for the type MockUpdateApplier
10420+func (_mock *MockUpdateApplier) GetBinaryPath() (string, error) {
10421+ ret := _mock.Called()
10422+
10423+ if len(ret) == 0 {
10424+ panic("no return value specified for GetBinaryPath")
10425+ }
10426+
10427+ var r0 string
10428+ var r1 error
10429+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
10430+ return returnFunc()
10431+ }
10432+ if returnFunc, ok := ret.Get(0).(func() string); ok {
10433+ r0 = returnFunc()
10434+ } else {
10435+ r0 = ret.Get(0).(string)
10436+ }
10437+ if returnFunc, ok := ret.Get(1).(func() error); ok {
10438+ r1 = returnFunc()
10439+ } else {
10440+ r1 = ret.Error(1)
10441+ }
10442+ return r0, r1
10443+}
10444+
10445+// MockUpdateApplier_GetBinaryPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBinaryPath'
10446+type MockUpdateApplier_GetBinaryPath_Call struct {
10447+ *mock.Call
10448+}
10449+
10450+// GetBinaryPath is a helper method to define mock.On call
10451+func (_e *MockUpdateApplier_Expecter) GetBinaryPath() *MockUpdateApplier_GetBinaryPath_Call {
10452+ return &MockUpdateApplier_GetBinaryPath_Call{Call: _e.mock.On("GetBinaryPath")}
10453+}
10454+
10455+func (_c *MockUpdateApplier_GetBinaryPath_Call) Run(run func()) *MockUpdateApplier_GetBinaryPath_Call {
10456+ _c.Call.Run(func(args mock.Arguments) {
10457+ run()
10458+ })
10459+ return _c
10460+}
10461+
10462+func (_c *MockUpdateApplier_GetBinaryPath_Call) Return(s string, err error) *MockUpdateApplier_GetBinaryPath_Call {
10463+ _c.Call.Return(s, err)
10464+ return _c
10465+}
10466+
10467+func (_c *MockUpdateApplier_GetBinaryPath_Call) RunAndReturn(run func() (string, error)) *MockUpdateApplier_GetBinaryPath_Call {
10468+ _c.Call.Return(run)
10469+ return _c
10470+}
10471+
10472+// HasStagedUpdate provides a mock function for the type MockUpdateApplier
10473+func (_mock *MockUpdateApplier) HasStagedUpdate(ctx context.Context) bool {
10474+ ret := _mock.Called(ctx)
10475+
10476+ if len(ret) == 0 {
10477+ panic("no return value specified for HasStagedUpdate")
10478+ }
10479+
10480+ var r0 bool
10481+ if returnFunc, ok := ret.Get(0).(func(context.Context) bool); ok {
10482+ r0 = returnFunc(ctx)
10483+ } else {
10484+ r0 = ret.Get(0).(bool)
10485+ }
10486+ return r0
10487+}
10488+
10489+// MockUpdateApplier_HasStagedUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasStagedUpdate'
10490+type MockUpdateApplier_HasStagedUpdate_Call struct {
10491+ *mock.Call
10492+}
10493+
10494+// HasStagedUpdate is a helper method to define mock.On call
10495+// - ctx context.Context
10496+func (_e *MockUpdateApplier_Expecter) HasStagedUpdate(ctx interface{}) *MockUpdateApplier_HasStagedUpdate_Call {
10497+ return &MockUpdateApplier_HasStagedUpdate_Call{Call: _e.mock.On("HasStagedUpdate", ctx)}
10498+}
10499+
10500+func (_c *MockUpdateApplier_HasStagedUpdate_Call) Run(run func(ctx context.Context)) *MockUpdateApplier_HasStagedUpdate_Call {
10501+ _c.Call.Run(func(args mock.Arguments) {
10502+ var arg0 context.Context
10503+ if args[0] != nil {
10504+ arg0 = args[0].(context.Context)
10505+ }
10506+ run(
10507+ arg0,
10508+ )
10509+ })
10510+ return _c
10511+}
10512+
10513+func (_c *MockUpdateApplier_HasStagedUpdate_Call) Return(b bool) *MockUpdateApplier_HasStagedUpdate_Call {
10514+ _c.Call.Return(b)
10515+ return _c
10516+}
10517+
10518+func (_c *MockUpdateApplier_HasStagedUpdate_Call) RunAndReturn(run func(ctx context.Context) bool) *MockUpdateApplier_HasStagedUpdate_Call {
10519+ _c.Call.Return(run)
10520+ return _c
10521+}
10522+
10523+// SelfUpdateBlockedReason provides a mock function for the type MockUpdateApplier
10524+func (_mock *MockUpdateApplier) SelfUpdateBlockedReason(ctx context.Context) port.SelfUpdateBlockedReason {
10525+ ret := _mock.Called(ctx)
10526+
10527+ if len(ret) == 0 {
10528+ 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
10546+// - ctx context.Context
10547+func (_e *MockUpdateApplier_Expecter) SelfUpdateBlockedReason(ctx interface{}) *MockUpdateApplier_SelfUpdateBlockedReason_Call {
10548+ return &MockUpdateApplier_SelfUpdateBlockedReason_Call{Call: _e.mock.On("SelfUpdateBlockedReason", ctx)}
10549+}
10550+
10551+func (_c *MockUpdateApplier_SelfUpdateBlockedReason_Call) Run(run func(ctx context.Context)) *MockUpdateApplier_SelfUpdateBlockedReason_Call {
10552+ _c.Call.Run(func(args mock.Arguments) {
10553+ var arg0 context.Context
10554+ if args[0] != nil {
10555+ arg0 = args[0].(context.Context)
10556+ }
10557+ run(
10558+ arg0,
10559+ )
10560+ })
10561+ return _c
10562+}
10563+
10564+func (_c *MockUpdateApplier_SelfUpdateBlockedReason_Call) Return(selfUpdateBlockedReason port.SelfUpdateBlockedReason) *MockUpdateApplier_SelfUpdateBlockedReason_Call {
10565+ _c.Call.Return(selfUpdateBlockedReason)
10566+ return _c
10567+}
10568+
10569+func (_c *MockUpdateApplier_SelfUpdateBlockedReason_Call) RunAndReturn(run func(ctx context.Context) port.SelfUpdateBlockedReason) *MockUpdateApplier_SelfUpdateBlockedReason_Call {
10570+ _c.Call.Return(run)
10571+ return _c
10572+}
10573+
10574+// StageUpdate provides a mock function for the type MockUpdateApplier
10575+func (_mock *MockUpdateApplier) StageUpdate(ctx context.Context, newBinaryPath string) error {
10576+ ret := _mock.Called(ctx, newBinaryPath)
10577+
10578+ if len(ret) == 0 {
10579+ panic("no return value specified for StageUpdate")
10580+ }
10581+
10582+ var r0 error
10583+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
10584+ r0 = returnFunc(ctx, newBinaryPath)
10585+ } else {
10586+ r0 = ret.Error(0)
10587+ }
10588+ return r0
10589+}
10590+
10591+// MockUpdateApplier_StageUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StageUpdate'
10592+type MockUpdateApplier_StageUpdate_Call struct {
10593+ *mock.Call
10594+}
10595+
10596+// StageUpdate is a helper method to define mock.On call
10597+// - ctx context.Context
10598+// - newBinaryPath string
10599+func (_e *MockUpdateApplier_Expecter) StageUpdate(ctx interface{}, newBinaryPath interface{}) *MockUpdateApplier_StageUpdate_Call {
10600+ return &MockUpdateApplier_StageUpdate_Call{Call: _e.mock.On("StageUpdate", ctx, newBinaryPath)}
10601+}
10602+
10603+func (_c *MockUpdateApplier_StageUpdate_Call) Run(run func(ctx context.Context, newBinaryPath string)) *MockUpdateApplier_StageUpdate_Call {
10604+ _c.Call.Run(func(args mock.Arguments) {
10605+ var arg0 context.Context
10606+ if args[0] != nil {
10607+ arg0 = args[0].(context.Context)
10608+ }
10609+ var arg1 string
10610+ if args[1] != nil {
10611+ arg1 = args[1].(string)
10612+ }
10613+ run(
10614+ arg0,
10615+ arg1,
10616+ )
10617+ })
10618+ return _c
10619+}
10620+
10621+func (_c *MockUpdateApplier_StageUpdate_Call) Return(err error) *MockUpdateApplier_StageUpdate_Call {
10622+ _c.Call.Return(err)
10623+ return _c
10624+}
10625+
10626+func (_c *MockUpdateApplier_StageUpdate_Call) RunAndReturn(run func(ctx context.Context, newBinaryPath string) error) *MockUpdateApplier_StageUpdate_Call {
10627+ _c.Call.Return(run)
10628+ return _c
10629+}
10630+
10631+// 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
10646+type MockWebUIConfigSaver struct {
10647+ mock.Mock
10648+}
10649+
10650+type MockWebUIConfigSaver_Expecter struct {
10651+ mock *mock.Mock
10652+}
10653+
10654+func (_m *MockWebUIConfigSaver) EXPECT() *MockWebUIConfigSaver_Expecter {
10655+ return &MockWebUIConfigSaver_Expecter{mock: &_m.Mock}
10656+}
10657+
10658+// SaveWebUIConfig provides a mock function for the type MockWebUIConfigSaver
10659+func (_mock *MockWebUIConfigSaver) SaveWebUIConfig(ctx context.Context, cfg port.WebUIConfig) error {
10660+ ret := _mock.Called(ctx, cfg)
10661+
10662+ if len(ret) == 0 {
10663+ panic("no return value specified for SaveWebUIConfig")
10664+ }
10665+
10666+ var r0 error
10667+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebUIConfig) error); ok {
10668+ r0 = returnFunc(ctx, cfg)
10669+ } else {
10670+ r0 = ret.Error(0)
10671+ }
10672+ return r0
10673+}
10674+
10675+// MockWebUIConfigSaver_SaveWebUIConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveWebUIConfig'
10676+type MockWebUIConfigSaver_SaveWebUIConfig_Call struct {
10677+ *mock.Call
10678+}
10679+
10680+// SaveWebUIConfig is a helper method to define mock.On call
10681+// - ctx context.Context
10682+// - cfg port.WebUIConfig
10683+func (_e *MockWebUIConfigSaver_Expecter) SaveWebUIConfig(ctx interface{}, cfg interface{}) *MockWebUIConfigSaver_SaveWebUIConfig_Call {
10684+ return &MockWebUIConfigSaver_SaveWebUIConfig_Call{Call: _e.mock.On("SaveWebUIConfig", ctx, cfg)}
10685+}
10686+
10687+func (_c *MockWebUIConfigSaver_SaveWebUIConfig_Call) Run(run func(ctx context.Context, cfg port.WebUIConfig)) *MockWebUIConfigSaver_SaveWebUIConfig_Call {
10688+ _c.Call.Run(func(args mock.Arguments) {
10689+ var arg0 context.Context
10690+ if args[0] != nil {
10691+ arg0 = args[0].(context.Context)
10692+ }
10693+ var arg1 port.WebUIConfig
10694+ if args[1] != nil {
10695+ arg1 = args[1].(port.WebUIConfig)
10696+ }
10697+ run(
10698+ arg0,
10699+ arg1,
10700+ )
10701+ })
10702+ return _c
10703+}
10704+
10705+func (_c *MockWebUIConfigSaver_SaveWebUIConfig_Call) Return(err error) *MockWebUIConfigSaver_SaveWebUIConfig_Call {
10706+ _c.Call.Return(err)
10707+ return _c
10708+}
10709+
10710+func (_c *MockWebUIConfigSaver_SaveWebUIConfig_Call) RunAndReturn(run func(ctx context.Context, cfg port.WebUIConfig) error) *MockWebUIConfigSaver_SaveWebUIConfig_Call {
10711+ _c.Call.Return(run)
10712+ return _c
10713+}
10714+
10715+// 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
10730+type MockTexture struct {
10731+ mock.Mock
10732+}
10733+
10734+type MockTexture_Expecter struct {
10735+ mock *mock.Mock
10736+}
10737+
10738+func (_m *MockTexture) EXPECT() *MockTexture_Expecter {
10739+ return &MockTexture_Expecter{mock: &_m.Mock}
10740+}
10741+
10742+// GoPointer provides a mock function for the type MockTexture
10743+func (_mock *MockTexture) GoPointer() uintptr {
10744+ ret := _mock.Called()
10745+
10746+ if len(ret) == 0 {
10747+ panic("no return value specified for GoPointer")
10748+ }
10749+
10750+ var r0 uintptr
10751+ if returnFunc, ok := ret.Get(0).(func() uintptr); ok {
10752+ r0 = returnFunc()
10753+ } else {
10754+ r0 = ret.Get(0).(uintptr)
10755+ }
10756+ return r0
10757+}
10758+
10759+// MockTexture_GoPointer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoPointer'
10760+type MockTexture_GoPointer_Call struct {
10761+ *mock.Call
10762+}
10763+
10764+// GoPointer is a helper method to define mock.On call
10765+func (_e *MockTexture_Expecter) GoPointer() *MockTexture_GoPointer_Call {
10766+ return &MockTexture_GoPointer_Call{Call: _e.mock.On("GoPointer")}
10767+}
10768+
10769+func (_c *MockTexture_GoPointer_Call) Run(run func()) *MockTexture_GoPointer_Call {
10770+ _c.Call.Run(func(args mock.Arguments) {
10771+ run()
10772+ })
10773+ return _c
10774+}
10775+
10776+func (_c *MockTexture_GoPointer_Call) Return(v uintptr) *MockTexture_GoPointer_Call {
10777+ _c.Call.Return(v)
10778+ return _c
10779+}
10780+
10781+func (_c *MockTexture_GoPointer_Call) RunAndReturn(run func() uintptr) *MockTexture_GoPointer_Call {
10782+ _c.Call.Return(run)
10783+ return _c
10784+}
10785+
10786+// 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
10801+type MockFindController struct {
10802+ mock.Mock
10803+}
10804+
10805+type MockFindController_Expecter struct {
10806+ mock *mock.Mock
10807+}
10808+
10809+func (_m *MockFindController) EXPECT() *MockFindController_Expecter {
10810+ return &MockFindController_Expecter{mock: &_m.Mock}
10811+}
10812+
10813+// CountMatches provides a mock function for the type MockFindController
10814+func (_mock *MockFindController) CountMatches(text string, options port.FindOptions, maxMatches uint) {
10815+ _mock.Called(text, options, maxMatches)
10816+ return
10817+}
10818+
10819+// MockFindController_CountMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountMatches'
10820+type MockFindController_CountMatches_Call struct {
10821+ *mock.Call
10822+}
10823+
10824+// CountMatches is a helper method to define mock.On call
10825+// - text string
10826+// - options port.FindOptions
10827+// - maxMatches uint
10828+func (_e *MockFindController_Expecter) CountMatches(text interface{}, options interface{}, maxMatches interface{}) *MockFindController_CountMatches_Call {
10829+ return &MockFindController_CountMatches_Call{Call: _e.mock.On("CountMatches", text, options, maxMatches)}
10830+}
10831+
10832+func (_c *MockFindController_CountMatches_Call) Run(run func(text string, options port.FindOptions, maxMatches uint)) *MockFindController_CountMatches_Call {
10833+ _c.Call.Run(func(args mock.Arguments) {
10834+ var arg0 string
10835+ if args[0] != nil {
10836+ arg0 = args[0].(string)
10837+ }
10838+ var arg1 port.FindOptions
10839+ if args[1] != nil {
10840+ arg1 = args[1].(port.FindOptions)
10841+ }
10842+ var arg2 uint
10843+ if args[2] != nil {
10844+ arg2 = args[2].(uint)
10845+ }
10846+ run(
10847+ arg0,
10848+ arg1,
10849+ arg2,
10850+ )
10851+ })
10852+ return _c
10853+}
10854+
10855+func (_c *MockFindController_CountMatches_Call) Return() *MockFindController_CountMatches_Call {
10856+ _c.Call.Return()
10857+ return _c
10858+}
10859+
10860+func (_c *MockFindController_CountMatches_Call) RunAndReturn(run func(text string, options port.FindOptions, maxMatches uint)) *MockFindController_CountMatches_Call {
10861+ _c.Run(run)
10862+ return _c
10863+}
10864+
10865+// DisconnectSignal provides a mock function for the type MockFindController
10866+func (_mock *MockFindController) DisconnectSignal(id uint) {
10867+ _mock.Called(id)
10868+ return
10869+}
10870+
10871+// MockFindController_DisconnectSignal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisconnectSignal'
10872+type MockFindController_DisconnectSignal_Call struct {
10873+ *mock.Call
10874+}
10875+
10876+// DisconnectSignal is a helper method to define mock.On call
10877+// - id uint
10878+func (_e *MockFindController_Expecter) DisconnectSignal(id interface{}) *MockFindController_DisconnectSignal_Call {
10879+ return &MockFindController_DisconnectSignal_Call{Call: _e.mock.On("DisconnectSignal", id)}
10880+}
10881+
10882+func (_c *MockFindController_DisconnectSignal_Call) Run(run func(id uint)) *MockFindController_DisconnectSignal_Call {
10883+ _c.Call.Run(func(args mock.Arguments) {
10884+ var arg0 uint
10885+ if args[0] != nil {
10886+ arg0 = args[0].(uint)
10887+ }
10888+ run(
10889+ arg0,
10890+ )
10891+ })
10892+ return _c
10893+}
10894+
10895+func (_c *MockFindController_DisconnectSignal_Call) Return() *MockFindController_DisconnectSignal_Call {
10896+ _c.Call.Return()
10897+ return _c
10898+}
10899+
10900+func (_c *MockFindController_DisconnectSignal_Call) RunAndReturn(run func(id uint)) *MockFindController_DisconnectSignal_Call {
10901+ _c.Run(run)
10902+ return _c
10903+}
10904+
10905+// GetSearchText provides a mock function for the type MockFindController
10906+func (_mock *MockFindController) GetSearchText() string {
10907+ ret := _mock.Called()
10908+
10909+ if len(ret) == 0 {
10910+ panic("no return value specified for GetSearchText")
10911+ }
10912+
10913+ var r0 string
10914+ if returnFunc, ok := ret.Get(0).(func() string); ok {
10915+ r0 = returnFunc()
10916+ } else {
10917+ r0 = ret.Get(0).(string)
10918+ }
10919+ return r0
10920+}
10921+
10922+// MockFindController_GetSearchText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSearchText'
10923+type MockFindController_GetSearchText_Call struct {
10924+ *mock.Call
10925+}
10926+
10927+// GetSearchText is a helper method to define mock.On call
10928+func (_e *MockFindController_Expecter) GetSearchText() *MockFindController_GetSearchText_Call {
10929+ return &MockFindController_GetSearchText_Call{Call: _e.mock.On("GetSearchText")}
10930+}
10931+
10932+func (_c *MockFindController_GetSearchText_Call) Run(run func()) *MockFindController_GetSearchText_Call {
10933+ _c.Call.Run(func(args mock.Arguments) {
10934+ run()
10935+ })
10936+ return _c
10937+}
10938+
10939+func (_c *MockFindController_GetSearchText_Call) Return(s string) *MockFindController_GetSearchText_Call {
10940+ _c.Call.Return(s)
10941+ return _c
10942+}
10943+
10944+func (_c *MockFindController_GetSearchText_Call) RunAndReturn(run func() string) *MockFindController_GetSearchText_Call {
10945+ _c.Call.Return(run)
10946+ return _c
10947+}
10948+
10949+// OnCountedMatches provides a mock function for the type MockFindController
10950+func (_mock *MockFindController) OnCountedMatches(callback func(matchCount uint)) uint {
10951+ ret := _mock.Called(callback)
10952+
10953+ if len(ret) == 0 {
10954+ panic("no return value specified for OnCountedMatches")
10955+ }
10956+
10957+ var r0 uint
10958+ if returnFunc, ok := ret.Get(0).(func(func(matchCount uint)) uint); ok {
10959+ r0 = returnFunc(callback)
10960+ } else {
10961+ r0 = ret.Get(0).(uint)
10962+ }
10963+ return r0
10964+}
10965+
10966+// MockFindController_OnCountedMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnCountedMatches'
10967+type MockFindController_OnCountedMatches_Call struct {
10968+ *mock.Call
10969+}
10970+
10971+// OnCountedMatches is a helper method to define mock.On call
10972+// - callback func(matchCount uint)
10973+func (_e *MockFindController_Expecter) OnCountedMatches(callback interface{}) *MockFindController_OnCountedMatches_Call {
10974+ return &MockFindController_OnCountedMatches_Call{Call: _e.mock.On("OnCountedMatches", callback)}
10975+}
10976+
10977+func (_c *MockFindController_OnCountedMatches_Call) Run(run func(callback func(matchCount uint))) *MockFindController_OnCountedMatches_Call {
10978+ _c.Call.Run(func(args mock.Arguments) {
10979+ var arg0 func(matchCount uint)
10980+ if args[0] != nil {
10981+ arg0 = args[0].(func(matchCount uint))
10982+ }
10983+ run(
10984+ arg0,
10985+ )
10986+ })
10987+ return _c
10988+}
10989+
10990+func (_c *MockFindController_OnCountedMatches_Call) Return(v uint) *MockFindController_OnCountedMatches_Call {
10991+ _c.Call.Return(v)
10992+ return _c
10993+}
10994+
10995+func (_c *MockFindController_OnCountedMatches_Call) RunAndReturn(run func(callback func(matchCount uint)) uint) *MockFindController_OnCountedMatches_Call {
10996+ _c.Call.Return(run)
10997+ return _c
10998+}
10999+
11000+// OnFailedToFindText provides a mock function for the type MockFindController
11001+func (_mock *MockFindController) OnFailedToFindText(callback func()) uint {
11002+ ret := _mock.Called(callback)
11003+
11004+ if len(ret) == 0 {
11005+ 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
11023+// - callback func()
11024+func (_e *MockFindController_Expecter) OnFailedToFindText(callback interface{}) *MockFindController_OnFailedToFindText_Call {
11025+ return &MockFindController_OnFailedToFindText_Call{Call: _e.mock.On("OnFailedToFindText", callback)}
11026+}
11027+
11028+func (_c *MockFindController_OnFailedToFindText_Call) Run(run func(callback func())) *MockFindController_OnFailedToFindText_Call {
11029+ _c.Call.Run(func(args mock.Arguments) {
11030+ var arg0 func()
11031+ if args[0] != nil {
11032+ arg0 = args[0].(func())
11033+ }
11034+ run(
11035+ arg0,
11036+ )
11037+ })
11038+ return _c
11039+}
11040+
11041+func (_c *MockFindController_OnFailedToFindText_Call) Return(v uint) *MockFindController_OnFailedToFindText_Call {
11042+ _c.Call.Return(v)
11043+ return _c
11044+}
11045+
11046+func (_c *MockFindController_OnFailedToFindText_Call) RunAndReturn(run func(callback func()) uint) *MockFindController_OnFailedToFindText_Call {
11047+ _c.Call.Return(run)
11048+ return _c
11049+}
11050+
11051+// OnFoundText provides a mock function for the type MockFindController
11052+func (_mock *MockFindController) OnFoundText(callback func(matchCount uint)) uint {
11053+ ret := _mock.Called(callback)
11054+
11055+ if len(ret) == 0 {
11056+ panic("no return value specified for OnFoundText")
11057+ }
11058+
11059+ var r0 uint
11060+ if returnFunc, ok := ret.Get(0).(func(func(matchCount uint)) uint); ok {
11061+ r0 = returnFunc(callback)
11062+ } else {
11063+ r0 = ret.Get(0).(uint)
11064+ }
11065+ return r0
11066+}
11067+
11068+// MockFindController_OnFoundText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFoundText'
11069+type MockFindController_OnFoundText_Call struct {
11070+ *mock.Call
11071+}
11072+
11073+// OnFoundText is a helper method to define mock.On call
11074+// - callback func(matchCount uint)
11075+func (_e *MockFindController_Expecter) OnFoundText(callback interface{}) *MockFindController_OnFoundText_Call {
11076+ return &MockFindController_OnFoundText_Call{Call: _e.mock.On("OnFoundText", callback)}
11077+}
11078+
11079+func (_c *MockFindController_OnFoundText_Call) Run(run func(callback func(matchCount uint))) *MockFindController_OnFoundText_Call {
11080+ _c.Call.Run(func(args mock.Arguments) {
11081+ var arg0 func(matchCount uint)
11082+ if args[0] != nil {
11083+ arg0 = args[0].(func(matchCount uint))
11084+ }
11085+ run(
11086+ arg0,
11087+ )
11088+ })
11089+ return _c
11090+}
11091+
11092+func (_c *MockFindController_OnFoundText_Call) Return(v uint) *MockFindController_OnFoundText_Call {
11093+ _c.Call.Return(v)
11094+ return _c
11095+}
11096+
11097+func (_c *MockFindController_OnFoundText_Call) RunAndReturn(run func(callback func(matchCount uint)) uint) *MockFindController_OnFoundText_Call {
11098+ _c.Call.Return(run)
11099+ return _c
11100+}
11101+
11102+// Search provides a mock function for the type MockFindController
11103+func (_mock *MockFindController) Search(text string, options port.FindOptions, maxMatches uint) {
11104+ _mock.Called(text, options, maxMatches)
11105+ return
11106+}
11107+
11108+// MockFindController_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
11109+type MockFindController_Search_Call struct {
11110+ *mock.Call
11111+}
11112+
11113+// Search is a helper method to define mock.On call
11114+// - text string
11115+// - options port.FindOptions
11116+// - maxMatches uint
11117+func (_e *MockFindController_Expecter) Search(text interface{}, options interface{}, maxMatches interface{}) *MockFindController_Search_Call {
11118+ return &MockFindController_Search_Call{Call: _e.mock.On("Search", text, options, maxMatches)}
11119+}
11120+
11121+func (_c *MockFindController_Search_Call) Run(run func(text string, options port.FindOptions, maxMatches uint)) *MockFindController_Search_Call {
11122+ _c.Call.Run(func(args mock.Arguments) {
11123+ var arg0 string
11124+ if args[0] != nil {
11125+ arg0 = args[0].(string)
11126+ }
11127+ var arg1 port.FindOptions
11128+ if args[1] != nil {
11129+ arg1 = args[1].(port.FindOptions)
11130+ }
11131+ var arg2 uint
11132+ if args[2] != nil {
11133+ arg2 = args[2].(uint)
11134+ }
11135+ run(
11136+ arg0,
11137+ arg1,
11138+ arg2,
11139+ )
11140+ })
11141+ return _c
11142+}
11143+
11144+func (_c *MockFindController_Search_Call) Return() *MockFindController_Search_Call {
11145+ _c.Call.Return()
11146+ return _c
11147+}
11148+
11149+func (_c *MockFindController_Search_Call) RunAndReturn(run func(text string, options port.FindOptions, maxMatches uint)) *MockFindController_Search_Call {
11150+ _c.Run(run)
11151+ return _c
11152+}
11153+
11154+// SearchFinish provides a mock function for the type MockFindController
11155+func (_mock *MockFindController) SearchFinish() {
11156+ _mock.Called()
11157+ return
11158+}
11159+
11160+// MockFindController_SearchFinish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchFinish'
11161+type MockFindController_SearchFinish_Call struct {
11162+ *mock.Call
11163+}
11164+
11165+// SearchFinish is a helper method to define mock.On call
11166+func (_e *MockFindController_Expecter) SearchFinish() *MockFindController_SearchFinish_Call {
11167+ return &MockFindController_SearchFinish_Call{Call: _e.mock.On("SearchFinish")}
11168+}
11169+
11170+func (_c *MockFindController_SearchFinish_Call) Run(run func()) *MockFindController_SearchFinish_Call {
11171+ _c.Call.Run(func(args mock.Arguments) {
11172+ run()
11173+ })
11174+ return _c
11175+}
11176+
11177+func (_c *MockFindController_SearchFinish_Call) Return() *MockFindController_SearchFinish_Call {
11178+ _c.Call.Return()
11179+ return _c
11180+}
11181+
11182+func (_c *MockFindController_SearchFinish_Call) RunAndReturn(run func()) *MockFindController_SearchFinish_Call {
11183+ _c.Run(run)
11184+ return _c
11185+}
11186+
11187+// SearchNext provides a mock function for the type MockFindController
11188+func (_mock *MockFindController) SearchNext() {
11189+ _mock.Called()
11190+ return
11191+}
11192+
11193+// MockFindController_SearchNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchNext'
11194+type MockFindController_SearchNext_Call struct {
11195+ *mock.Call
11196+}
11197+
11198+// SearchNext is a helper method to define mock.On call
11199+func (_e *MockFindController_Expecter) SearchNext() *MockFindController_SearchNext_Call {
11200+ return &MockFindController_SearchNext_Call{Call: _e.mock.On("SearchNext")}
11201+}
11202+
11203+func (_c *MockFindController_SearchNext_Call) Run(run func()) *MockFindController_SearchNext_Call {
11204+ _c.Call.Run(func(args mock.Arguments) {
11205+ run()
11206+ })
11207+ return _c
11208+}
11209+
11210+func (_c *MockFindController_SearchNext_Call) Return() *MockFindController_SearchNext_Call {
11211+ _c.Call.Return()
11212+ return _c
11213+}
11214+
11215+func (_c *MockFindController_SearchNext_Call) RunAndReturn(run func()) *MockFindController_SearchNext_Call {
11216+ _c.Run(run)
11217+ return _c
11218+}
11219+
11220+// SearchPrevious provides a mock function for the type MockFindController
11221+func (_mock *MockFindController) SearchPrevious() {
11222+ _mock.Called()
11223+ return
11224+}
11225+
11226+// MockFindController_SearchPrevious_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchPrevious'
11227+type MockFindController_SearchPrevious_Call struct {
11228+ *mock.Call
11229+}
11230+
11231+// SearchPrevious is a helper method to define mock.On call
11232+func (_e *MockFindController_Expecter) SearchPrevious() *MockFindController_SearchPrevious_Call {
11233+ return &MockFindController_SearchPrevious_Call{Call: _e.mock.On("SearchPrevious")}
11234+}
11235+
11236+func (_c *MockFindController_SearchPrevious_Call) Run(run func()) *MockFindController_SearchPrevious_Call {
11237+ _c.Call.Run(func(args mock.Arguments) {
11238+ run()
11239+ })
11240+ return _c
11241+}
11242+
11243+func (_c *MockFindController_SearchPrevious_Call) Return() *MockFindController_SearchPrevious_Call {
11244+ _c.Call.Return()
11245+ return _c
11246+}
11247+
11248+func (_c *MockFindController_SearchPrevious_Call) RunAndReturn(run func()) *MockFindController_SearchPrevious_Call {
11249+ _c.Run(run)
11250+ return _c
11251+}
11252+
11253+// 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
11268+type MockWebView struct {
11269+ mock.Mock
11270+}
11271+
11272+type MockWebView_Expecter struct {
11273+ mock *mock.Mock
11274+}
11275+
11276+func (_m *MockWebView) EXPECT() *MockWebView_Expecter {
11277+ return &MockWebView_Expecter{mock: &_m.Mock}
11278+}
11279+
11280+// CanGoBack provides a mock function for the type MockWebView
11281+func (_mock *MockWebView) CanGoBack() bool {
11282+ ret := _mock.Called()
11283+
11284+ if len(ret) == 0 {
11285+ panic("no return value specified for CanGoBack")
11286+ }
11287+
11288+ var r0 bool
11289+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11290+ r0 = returnFunc()
11291+ } else {
11292+ r0 = ret.Get(0).(bool)
11293+ }
11294+ return r0
11295+}
11296+
11297+// MockWebView_CanGoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoBack'
11298+type MockWebView_CanGoBack_Call struct {
11299+ *mock.Call
11300+}
11301+
11302+// CanGoBack is a helper method to define mock.On call
11303+func (_e *MockWebView_Expecter) CanGoBack() *MockWebView_CanGoBack_Call {
11304+ return &MockWebView_CanGoBack_Call{Call: _e.mock.On("CanGoBack")}
11305+}
11306+
11307+func (_c *MockWebView_CanGoBack_Call) Run(run func()) *MockWebView_CanGoBack_Call {
11308+ _c.Call.Run(func(args mock.Arguments) {
11309+ run()
11310+ })
11311+ return _c
11312+}
11313+
11314+func (_c *MockWebView_CanGoBack_Call) Return(b bool) *MockWebView_CanGoBack_Call {
11315+ _c.Call.Return(b)
11316+ return _c
11317+}
11318+
11319+func (_c *MockWebView_CanGoBack_Call) RunAndReturn(run func() bool) *MockWebView_CanGoBack_Call {
11320+ _c.Call.Return(run)
11321+ return _c
11322+}
11323+
11324+// CanGoForward provides a mock function for the type MockWebView
11325+func (_mock *MockWebView) CanGoForward() bool {
11326+ ret := _mock.Called()
11327+
11328+ if len(ret) == 0 {
11329+ panic("no return value specified for CanGoForward")
11330+ }
11331+
11332+ var r0 bool
11333+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11334+ r0 = returnFunc()
11335+ } else {
11336+ r0 = ret.Get(0).(bool)
11337+ }
11338+ return r0
11339+}
11340+
11341+// MockWebView_CanGoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanGoForward'
11342+type MockWebView_CanGoForward_Call struct {
11343+ *mock.Call
11344+}
11345+
11346+// CanGoForward is a helper method to define mock.On call
11347+func (_e *MockWebView_Expecter) CanGoForward() *MockWebView_CanGoForward_Call {
11348+ return &MockWebView_CanGoForward_Call{Call: _e.mock.On("CanGoForward")}
11349+}
11350+
11351+func (_c *MockWebView_CanGoForward_Call) Run(run func()) *MockWebView_CanGoForward_Call {
11352+ _c.Call.Run(func(args mock.Arguments) {
11353+ run()
11354+ })
11355+ return _c
11356+}
11357+
11358+func (_c *MockWebView_CanGoForward_Call) Return(b bool) *MockWebView_CanGoForward_Call {
11359+ _c.Call.Return(b)
11360+ return _c
11361+}
11362+
11363+func (_c *MockWebView_CanGoForward_Call) RunAndReturn(run func() bool) *MockWebView_CanGoForward_Call {
11364+ _c.Call.Return(run)
11365+ return _c
11366+}
11367+
11368+// Destroy provides a mock function for the type MockWebView
11369+func (_mock *MockWebView) Destroy() {
11370+ _mock.Called()
11371+ return
11372+}
11373+
11374+// MockWebView_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
11375+type MockWebView_Destroy_Call struct {
11376+ *mock.Call
11377+}
11378+
11379+// Destroy is a helper method to define mock.On call
11380+func (_e *MockWebView_Expecter) Destroy() *MockWebView_Destroy_Call {
11381+ return &MockWebView_Destroy_Call{Call: _e.mock.On("Destroy")}
11382+}
11383+
11384+func (_c *MockWebView_Destroy_Call) Run(run func()) *MockWebView_Destroy_Call {
11385+ _c.Call.Run(func(args mock.Arguments) {
11386+ run()
11387+ })
11388+ return _c
11389+}
11390+
11391+func (_c *MockWebView_Destroy_Call) Return() *MockWebView_Destroy_Call {
11392+ _c.Call.Return()
11393+ return _c
11394+}
11395+
11396+func (_c *MockWebView_Destroy_Call) RunAndReturn(run func()) *MockWebView_Destroy_Call {
11397+ _c.Run(run)
11398+ return _c
11399+}
11400+
11401+// EstimatedProgress provides a mock function for the type MockWebView
11402+func (_mock *MockWebView) EstimatedProgress() float64 {
11403+ ret := _mock.Called()
11404+
11405+ if len(ret) == 0 {
11406+ panic("no return value specified for EstimatedProgress")
11407+ }
11408+
11409+ var r0 float64
11410+ if returnFunc, ok := ret.Get(0).(func() float64); ok {
11411+ r0 = returnFunc()
11412+ } else {
11413+ r0 = ret.Get(0).(float64)
11414+ }
11415+ return r0
11416+}
11417+
11418+// MockWebView_EstimatedProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatedProgress'
11419+type MockWebView_EstimatedProgress_Call struct {
11420+ *mock.Call
11421+}
11422+
11423+// EstimatedProgress is a helper method to define mock.On call
11424+func (_e *MockWebView_Expecter) EstimatedProgress() *MockWebView_EstimatedProgress_Call {
11425+ return &MockWebView_EstimatedProgress_Call{Call: _e.mock.On("EstimatedProgress")}
11426+}
11427+
11428+func (_c *MockWebView_EstimatedProgress_Call) Run(run func()) *MockWebView_EstimatedProgress_Call {
11429+ _c.Call.Run(func(args mock.Arguments) {
11430+ run()
11431+ })
11432+ return _c
11433+}
11434+
11435+func (_c *MockWebView_EstimatedProgress_Call) Return(f float64) *MockWebView_EstimatedProgress_Call {
11436+ _c.Call.Return(f)
11437+ return _c
11438+}
11439+
11440+func (_c *MockWebView_EstimatedProgress_Call) RunAndReturn(run func() float64) *MockWebView_EstimatedProgress_Call {
11441+ _c.Call.Return(run)
11442+ return _c
11443+}
11444+
11445+// Favicon provides a mock function for the type MockWebView
11446+func (_mock *MockWebView) Favicon() port.Texture {
11447+ ret := _mock.Called()
11448+
11449+ if len(ret) == 0 {
11450+ panic("no return value specified for Favicon")
11451+ }
11452+
11453+ var r0 port.Texture
11454+ if returnFunc, ok := ret.Get(0).(func() port.Texture); ok {
11455+ r0 = returnFunc()
11456+ } else {
11457+ if ret.Get(0) != nil {
11458+ r0 = ret.Get(0).(port.Texture)
11459+ }
11460+ }
11461+ return r0
11462+}
11463+
11464+// MockWebView_Favicon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Favicon'
11465+type MockWebView_Favicon_Call struct {
11466+ *mock.Call
11467+}
11468+
11469+// Favicon is a helper method to define mock.On call
11470+func (_e *MockWebView_Expecter) Favicon() *MockWebView_Favicon_Call {
11471+ return &MockWebView_Favicon_Call{Call: _e.mock.On("Favicon")}
11472+}
11473+
11474+func (_c *MockWebView_Favicon_Call) Run(run func()) *MockWebView_Favicon_Call {
11475+ _c.Call.Run(func(args mock.Arguments) {
11476+ run()
11477+ })
11478+ return _c
11479+}
11480+
11481+func (_c *MockWebView_Favicon_Call) Return(texture port.Texture) *MockWebView_Favicon_Call {
11482+ _c.Call.Return(texture)
11483+ return _c
11484+}
11485+
11486+func (_c *MockWebView_Favicon_Call) RunAndReturn(run func() port.Texture) *MockWebView_Favicon_Call {
11487+ _c.Call.Return(run)
11488+ return _c
11489+}
11490+
11491+// Generation provides a mock function for the type MockWebView
11492+func (_mock *MockWebView) Generation() uint64 {
11493+ ret := _mock.Called()
11494+
11495+ if len(ret) == 0 {
11496+ panic("no return value specified for Generation")
11497+ }
11498+
11499+ var r0 uint64
11500+ if returnFunc, ok := ret.Get(0).(func() uint64); ok {
11501+ r0 = returnFunc()
11502+ } else {
11503+ r0 = ret.Get(0).(uint64)
11504+ }
11505+ return r0
11506+}
11507+
11508+// MockWebView_Generation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generation'
11509+type MockWebView_Generation_Call struct {
11510+ *mock.Call
11511+}
11512+
11513+// Generation is a helper method to define mock.On call
11514+func (_e *MockWebView_Expecter) Generation() *MockWebView_Generation_Call {
11515+ return &MockWebView_Generation_Call{Call: _e.mock.On("Generation")}
11516+}
11517+
11518+func (_c *MockWebView_Generation_Call) Run(run func()) *MockWebView_Generation_Call {
11519+ _c.Call.Run(func(args mock.Arguments) {
11520+ run()
11521+ })
11522+ return _c
11523+}
11524+
11525+func (_c *MockWebView_Generation_Call) Return(v uint64) *MockWebView_Generation_Call {
11526+ _c.Call.Return(v)
11527+ return _c
11528+}
11529+
11530+func (_c *MockWebView_Generation_Call) RunAndReturn(run func() uint64) *MockWebView_Generation_Call {
11531+ _c.Call.Return(run)
11532+ return _c
11533+}
11534+
11535+// GetFindController provides a mock function for the type MockWebView
11536+func (_mock *MockWebView) GetFindController() port.FindController {
11537+ ret := _mock.Called()
11538+
11539+ if len(ret) == 0 {
11540+ panic("no return value specified for GetFindController")
11541+ }
11542+
11543+ var r0 port.FindController
11544+ if returnFunc, ok := ret.Get(0).(func() port.FindController); ok {
11545+ r0 = returnFunc()
11546+ } else {
11547+ if ret.Get(0) != nil {
11548+ r0 = ret.Get(0).(port.FindController)
11549+ }
11550+ }
11551+ return r0
11552+}
11553+
11554+// MockWebView_GetFindController_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFindController'
11555+type MockWebView_GetFindController_Call struct {
11556+ *mock.Call
11557+}
11558+
11559+// GetFindController is a helper method to define mock.On call
11560+func (_e *MockWebView_Expecter) GetFindController() *MockWebView_GetFindController_Call {
11561+ return &MockWebView_GetFindController_Call{Call: _e.mock.On("GetFindController")}
11562+}
11563+
11564+func (_c *MockWebView_GetFindController_Call) Run(run func()) *MockWebView_GetFindController_Call {
11565+ _c.Call.Run(func(args mock.Arguments) {
11566+ run()
11567+ })
11568+ return _c
11569+}
11570+
11571+func (_c *MockWebView_GetFindController_Call) Return(findController port.FindController) *MockWebView_GetFindController_Call {
11572+ _c.Call.Return(findController)
11573+ return _c
11574+}
11575+
11576+func (_c *MockWebView_GetFindController_Call) RunAndReturn(run func() port.FindController) *MockWebView_GetFindController_Call {
11577+ _c.Call.Return(run)
11578+ return _c
11579+}
11580+
11581+// GetZoomLevel provides a mock function for the type MockWebView
11582+func (_mock *MockWebView) GetZoomLevel() float64 {
11583+ ret := _mock.Called()
11584+
11585+ if len(ret) == 0 {
11586+ panic("no return value specified for GetZoomLevel")
11587+ }
11588+
11589+ var r0 float64
11590+ if returnFunc, ok := ret.Get(0).(func() float64); ok {
11591+ r0 = returnFunc()
11592+ } else {
11593+ r0 = ret.Get(0).(float64)
11594+ }
11595+ return r0
11596+}
11597+
11598+// MockWebView_GetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZoomLevel'
11599+type MockWebView_GetZoomLevel_Call struct {
11600+ *mock.Call
11601+}
11602+
11603+// GetZoomLevel is a helper method to define mock.On call
11604+func (_e *MockWebView_Expecter) GetZoomLevel() *MockWebView_GetZoomLevel_Call {
11605+ return &MockWebView_GetZoomLevel_Call{Call: _e.mock.On("GetZoomLevel")}
11606+}
11607+
11608+func (_c *MockWebView_GetZoomLevel_Call) Run(run func()) *MockWebView_GetZoomLevel_Call {
11609+ _c.Call.Run(func(args mock.Arguments) {
11610+ run()
11611+ })
11612+ return _c
11613+}
11614+
11615+func (_c *MockWebView_GetZoomLevel_Call) Return(f float64) *MockWebView_GetZoomLevel_Call {
11616+ _c.Call.Return(f)
11617+ return _c
11618+}
11619+
11620+func (_c *MockWebView_GetZoomLevel_Call) RunAndReturn(run func() float64) *MockWebView_GetZoomLevel_Call {
11621+ _c.Call.Return(run)
11622+ return _c
11623+}
11624+
11625+// GoBack provides a mock function for the type MockWebView
11626+func (_mock *MockWebView) GoBack(ctx context.Context) error {
11627+ ret := _mock.Called(ctx)
11628+
11629+ if len(ret) == 0 {
11630+ panic("no return value specified for GoBack")
11631+ }
11632+
11633+ var r0 error
11634+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
11635+ r0 = returnFunc(ctx)
11636+ } else {
11637+ r0 = ret.Error(0)
11638+ }
11639+ return r0
11640+}
11641+
11642+// MockWebView_GoBack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoBack'
11643+type MockWebView_GoBack_Call struct {
11644+ *mock.Call
11645+}
11646+
11647+// GoBack is a helper method to define mock.On call
11648+// - ctx context.Context
11649+func (_e *MockWebView_Expecter) GoBack(ctx interface{}) *MockWebView_GoBack_Call {
11650+ return &MockWebView_GoBack_Call{Call: _e.mock.On("GoBack", ctx)}
11651+}
11652+
11653+func (_c *MockWebView_GoBack_Call) Run(run func(ctx context.Context)) *MockWebView_GoBack_Call {
11654+ _c.Call.Run(func(args mock.Arguments) {
11655+ var arg0 context.Context
11656+ if args[0] != nil {
11657+ arg0 = args[0].(context.Context)
11658+ }
11659+ run(
11660+ arg0,
11661+ )
11662+ })
11663+ return _c
11664+}
11665+
11666+func (_c *MockWebView_GoBack_Call) Return(err error) *MockWebView_GoBack_Call {
11667+ _c.Call.Return(err)
11668+ return _c
11669+}
11670+
11671+func (_c *MockWebView_GoBack_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoBack_Call {
11672+ _c.Call.Return(run)
11673+ return _c
11674+}
11675+
11676+// GoForward provides a mock function for the type MockWebView
11677+func (_mock *MockWebView) GoForward(ctx context.Context) error {
11678+ ret := _mock.Called(ctx)
11679+
11680+ if len(ret) == 0 {
11681+ panic("no return value specified for GoForward")
11682+ }
11683+
11684+ var r0 error
11685+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
11686+ r0 = returnFunc(ctx)
11687+ } else {
11688+ r0 = ret.Error(0)
11689+ }
11690+ return r0
11691+}
11692+
11693+// MockWebView_GoForward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GoForward'
11694+type MockWebView_GoForward_Call struct {
11695+ *mock.Call
11696+}
11697+
11698+// GoForward is a helper method to define mock.On call
11699+// - ctx context.Context
11700+func (_e *MockWebView_Expecter) GoForward(ctx interface{}) *MockWebView_GoForward_Call {
11701+ return &MockWebView_GoForward_Call{Call: _e.mock.On("GoForward", ctx)}
11702+}
11703+
11704+func (_c *MockWebView_GoForward_Call) Run(run func(ctx context.Context)) *MockWebView_GoForward_Call {
11705+ _c.Call.Run(func(args mock.Arguments) {
11706+ var arg0 context.Context
11707+ if args[0] != nil {
11708+ arg0 = args[0].(context.Context)
11709+ }
11710+ run(
11711+ arg0,
11712+ )
11713+ })
11714+ return _c
11715+}
11716+
11717+func (_c *MockWebView_GoForward_Call) Return(err error) *MockWebView_GoForward_Call {
11718+ _c.Call.Return(err)
11719+ return _c
11720+}
11721+
11722+func (_c *MockWebView_GoForward_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_GoForward_Call {
11723+ _c.Call.Return(run)
11724+ return _c
11725+}
11726+
11727+// ID provides a mock function for the type MockWebView
11728+func (_mock *MockWebView) ID() port.WebViewID {
11729+ ret := _mock.Called()
11730+
11731+ if len(ret) == 0 {
11732+ panic("no return value specified for ID")
11733+ }
11734+
11735+ var r0 port.WebViewID
11736+ if returnFunc, ok := ret.Get(0).(func() port.WebViewID); ok {
11737+ r0 = returnFunc()
11738+ } else {
11739+ r0 = ret.Get(0).(port.WebViewID)
11740+ }
11741+ return r0
11742+}
11743+
11744+// MockWebView_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
11745+type MockWebView_ID_Call struct {
11746+ *mock.Call
11747+}
11748+
11749+// ID is a helper method to define mock.On call
11750+func (_e *MockWebView_Expecter) ID() *MockWebView_ID_Call {
11751+ return &MockWebView_ID_Call{Call: _e.mock.On("ID")}
11752+}
11753+
11754+func (_c *MockWebView_ID_Call) Run(run func()) *MockWebView_ID_Call {
11755+ _c.Call.Run(func(args mock.Arguments) {
11756+ run()
11757+ })
11758+ return _c
11759+}
11760+
11761+func (_c *MockWebView_ID_Call) Return(webViewID port.WebViewID) *MockWebView_ID_Call {
11762+ _c.Call.Return(webViewID)
11763+ return _c
11764+}
11765+
11766+func (_c *MockWebView_ID_Call) RunAndReturn(run func() port.WebViewID) *MockWebView_ID_Call {
11767+ _c.Call.Return(run)
11768+ return _c
11769+}
11770+
11771+// IsDestroyed provides a mock function for the type MockWebView
11772+func (_mock *MockWebView) IsDestroyed() bool {
11773+ ret := _mock.Called()
11774+
11775+ if len(ret) == 0 {
11776+ panic("no return value specified for IsDestroyed")
11777+ }
11778+
11779+ var r0 bool
11780+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11781+ r0 = returnFunc()
11782+ } else {
11783+ r0 = ret.Get(0).(bool)
11784+ }
11785+ return r0
11786+}
11787+
11788+// MockWebView_IsDestroyed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDestroyed'
11789+type MockWebView_IsDestroyed_Call struct {
11790+ *mock.Call
11791+}
11792+
11793+// IsDestroyed is a helper method to define mock.On call
11794+func (_e *MockWebView_Expecter) IsDestroyed() *MockWebView_IsDestroyed_Call {
11795+ return &MockWebView_IsDestroyed_Call{Call: _e.mock.On("IsDestroyed")}
11796+}
11797+
11798+func (_c *MockWebView_IsDestroyed_Call) Run(run func()) *MockWebView_IsDestroyed_Call {
11799+ _c.Call.Run(func(args mock.Arguments) {
11800+ run()
11801+ })
11802+ return _c
11803+}
11804+
11805+func (_c *MockWebView_IsDestroyed_Call) Return(b bool) *MockWebView_IsDestroyed_Call {
11806+ _c.Call.Return(b)
11807+ return _c
11808+}
11809+
11810+func (_c *MockWebView_IsDestroyed_Call) RunAndReturn(run func() bool) *MockWebView_IsDestroyed_Call {
11811+ _c.Call.Return(run)
11812+ return _c
11813+}
11814+
11815+// IsFullscreen provides a mock function for the type MockWebView
11816+func (_mock *MockWebView) IsFullscreen() bool {
11817+ ret := _mock.Called()
11818+
11819+ if len(ret) == 0 {
11820+ panic("no return value specified for IsFullscreen")
11821+ }
11822+
11823+ var r0 bool
11824+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11825+ r0 = returnFunc()
11826+ } else {
11827+ r0 = ret.Get(0).(bool)
11828+ }
11829+ return r0
11830+}
11831+
11832+// MockWebView_IsFullscreen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsFullscreen'
11833+type MockWebView_IsFullscreen_Call struct {
11834+ *mock.Call
11835+}
11836+
11837+// IsFullscreen is a helper method to define mock.On call
11838+func (_e *MockWebView_Expecter) IsFullscreen() *MockWebView_IsFullscreen_Call {
11839+ return &MockWebView_IsFullscreen_Call{Call: _e.mock.On("IsFullscreen")}
11840+}
11841+
11842+func (_c *MockWebView_IsFullscreen_Call) Run(run func()) *MockWebView_IsFullscreen_Call {
11843+ _c.Call.Run(func(args mock.Arguments) {
11844+ run()
11845+ })
11846+ return _c
11847+}
11848+
11849+func (_c *MockWebView_IsFullscreen_Call) Return(b bool) *MockWebView_IsFullscreen_Call {
11850+ _c.Call.Return(b)
11851+ return _c
11852+}
11853+
11854+func (_c *MockWebView_IsFullscreen_Call) RunAndReturn(run func() bool) *MockWebView_IsFullscreen_Call {
11855+ _c.Call.Return(run)
11856+ return _c
11857+}
11858+
11859+// IsLoading provides a mock function for the type MockWebView
11860+func (_mock *MockWebView) IsLoading() bool {
11861+ ret := _mock.Called()
11862+
11863+ if len(ret) == 0 {
11864+ panic("no return value specified for IsLoading")
11865+ }
11866+
11867+ var r0 bool
11868+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11869+ r0 = returnFunc()
11870+ } else {
11871+ r0 = ret.Get(0).(bool)
11872+ }
11873+ return r0
11874+}
11875+
11876+// MockWebView_IsLoading_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoading'
11877+type MockWebView_IsLoading_Call struct {
11878+ *mock.Call
11879+}
11880+
11881+// IsLoading is a helper method to define mock.On call
11882+func (_e *MockWebView_Expecter) IsLoading() *MockWebView_IsLoading_Call {
11883+ return &MockWebView_IsLoading_Call{Call: _e.mock.On("IsLoading")}
11884+}
11885+
11886+func (_c *MockWebView_IsLoading_Call) Run(run func()) *MockWebView_IsLoading_Call {
11887+ _c.Call.Run(func(args mock.Arguments) {
11888+ run()
11889+ })
11890+ return _c
11891+}
11892+
11893+func (_c *MockWebView_IsLoading_Call) Return(b bool) *MockWebView_IsLoading_Call {
11894+ _c.Call.Return(b)
11895+ return _c
11896+}
11897+
11898+func (_c *MockWebView_IsLoading_Call) RunAndReturn(run func() bool) *MockWebView_IsLoading_Call {
11899+ _c.Call.Return(run)
11900+ return _c
11901+}
11902+
11903+// IsPlayingAudio provides a mock function for the type MockWebView
11904+func (_mock *MockWebView) IsPlayingAudio() bool {
11905+ ret := _mock.Called()
11906+
11907+ if len(ret) == 0 {
11908+ panic("no return value specified for IsPlayingAudio")
11909+ }
11910+
11911+ var r0 bool
11912+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
11913+ r0 = returnFunc()
11914+ } else {
11915+ r0 = ret.Get(0).(bool)
11916+ }
11917+ return r0
11918+}
11919+
11920+// MockWebView_IsPlayingAudio_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPlayingAudio'
11921+type MockWebView_IsPlayingAudio_Call struct {
11922+ *mock.Call
11923+}
11924+
11925+// IsPlayingAudio is a helper method to define mock.On call
11926+func (_e *MockWebView_Expecter) IsPlayingAudio() *MockWebView_IsPlayingAudio_Call {
11927+ return &MockWebView_IsPlayingAudio_Call{Call: _e.mock.On("IsPlayingAudio")}
11928+}
11929+
11930+func (_c *MockWebView_IsPlayingAudio_Call) Run(run func()) *MockWebView_IsPlayingAudio_Call {
11931+ _c.Call.Run(func(args mock.Arguments) {
11932+ run()
11933+ })
11934+ return _c
11935+}
11936+
11937+func (_c *MockWebView_IsPlayingAudio_Call) Return(b bool) *MockWebView_IsPlayingAudio_Call {
11938+ _c.Call.Return(b)
11939+ return _c
11940+}
11941+
11942+func (_c *MockWebView_IsPlayingAudio_Call) RunAndReturn(run func() bool) *MockWebView_IsPlayingAudio_Call {
11943+ _c.Call.Return(run)
11944+ return _c
11945+}
11946+
11947+// LoadHTML provides a mock function for the type MockWebView
11948+func (_mock *MockWebView) LoadHTML(ctx context.Context, content string, baseURI string) error {
11949+ ret := _mock.Called(ctx, content, baseURI)
11950+
11951+ if len(ret) == 0 {
11952+ panic("no return value specified for LoadHTML")
11953+ }
11954+
11955+ var r0 error
11956+ if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
11957+ r0 = returnFunc(ctx, content, baseURI)
11958+ } else {
11959+ r0 = ret.Error(0)
11960+ }
11961+ return r0
11962+}
11963+
11964+// MockWebView_LoadHTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadHTML'
11965+type MockWebView_LoadHTML_Call struct {
11966+ *mock.Call
11967+}
11968+
11969+// LoadHTML is a helper method to define mock.On call
11970+// - ctx context.Context
11971+// - content string
11972+// - baseURI string
11973+func (_e *MockWebView_Expecter) LoadHTML(ctx interface{}, content interface{}, baseURI interface{}) *MockWebView_LoadHTML_Call {
11974+ return &MockWebView_LoadHTML_Call{Call: _e.mock.On("LoadHTML", ctx, content, baseURI)}
11975+}
11976+
11977+func (_c *MockWebView_LoadHTML_Call) Run(run func(ctx context.Context, content string, baseURI string)) *MockWebView_LoadHTML_Call {
11978+ _c.Call.Run(func(args mock.Arguments) {
11979+ var arg0 context.Context
11980+ if args[0] != nil {
11981+ arg0 = args[0].(context.Context)
11982+ }
11983+ var arg1 string
11984+ if args[1] != nil {
11985+ arg1 = args[1].(string)
11986+ }
11987+ var arg2 string
11988+ if args[2] != nil {
11989+ arg2 = args[2].(string)
11990+ }
11991+ run(
11992+ arg0,
11993+ arg1,
11994+ arg2,
11995+ )
11996+ })
11997+ return _c
11998+}
11999+
12000+func (_c *MockWebView_LoadHTML_Call) Return(err error) *MockWebView_LoadHTML_Call {
12001+ _c.Call.Return(err)
12002+ return _c
12003+}
12004+
12005+func (_c *MockWebView_LoadHTML_Call) RunAndReturn(run func(ctx context.Context, content string, baseURI string) error) *MockWebView_LoadHTML_Call {
12006+ _c.Call.Return(run)
12007+ return _c
12008+}
12009+
12010+// LoadURI provides a mock function for the type MockWebView
12011+func (_mock *MockWebView) LoadURI(ctx context.Context, uri string) error {
12012+ ret := _mock.Called(ctx, uri)
12013+
12014+ if len(ret) == 0 {
12015+ panic("no return value specified for LoadURI")
12016+ }
12017+
12018+ var r0 error
12019+ if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
12020+ r0 = returnFunc(ctx, uri)
12021+ } else {
12022+ r0 = ret.Error(0)
12023+ }
12024+ return r0
12025+}
12026+
12027+// MockWebView_LoadURI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadURI'
12028+type MockWebView_LoadURI_Call struct {
12029+ *mock.Call
12030+}
12031+
12032+// LoadURI is a helper method to define mock.On call
12033+// - ctx context.Context
12034+// - uri string
12035+func (_e *MockWebView_Expecter) LoadURI(ctx interface{}, uri interface{}) *MockWebView_LoadURI_Call {
12036+ return &MockWebView_LoadURI_Call{Call: _e.mock.On("LoadURI", ctx, uri)}
12037+}
12038+
12039+func (_c *MockWebView_LoadURI_Call) Run(run func(ctx context.Context, uri string)) *MockWebView_LoadURI_Call {
12040+ _c.Call.Run(func(args mock.Arguments) {
12041+ var arg0 context.Context
12042+ if args[0] != nil {
12043+ arg0 = args[0].(context.Context)
12044+ }
12045+ var arg1 string
12046+ if args[1] != nil {
12047+ arg1 = args[1].(string)
12048+ }
12049+ run(
12050+ arg0,
12051+ arg1,
12052+ )
12053+ })
12054+ return _c
12055+}
12056+
12057+func (_c *MockWebView_LoadURI_Call) Return(err error) *MockWebView_LoadURI_Call {
12058+ _c.Call.Return(err)
12059+ return _c
12060+}
12061+
12062+func (_c *MockWebView_LoadURI_Call) RunAndReturn(run func(ctx context.Context, uri string) error) *MockWebView_LoadURI_Call {
12063+ _c.Call.Return(run)
12064+ return _c
12065+}
12066+
12067+// Reload provides a mock function for the type MockWebView
12068+func (_mock *MockWebView) Reload(ctx context.Context) error {
12069+ ret := _mock.Called(ctx)
12070+
12071+ if len(ret) == 0 {
12072+ panic("no return value specified for Reload")
12073+ }
12074+
12075+ var r0 error
12076+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
12077+ r0 = returnFunc(ctx)
12078+ } else {
12079+ r0 = ret.Error(0)
12080+ }
12081+ return r0
12082+}
12083+
12084+// MockWebView_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
12085+type MockWebView_Reload_Call struct {
12086+ *mock.Call
12087+}
12088+
12089+// Reload is a helper method to define mock.On call
12090+// - ctx context.Context
12091+func (_e *MockWebView_Expecter) Reload(ctx interface{}) *MockWebView_Reload_Call {
12092+ return &MockWebView_Reload_Call{Call: _e.mock.On("Reload", ctx)}
12093+}
12094+
12095+func (_c *MockWebView_Reload_Call) Run(run func(ctx context.Context)) *MockWebView_Reload_Call {
12096+ _c.Call.Run(func(args mock.Arguments) {
12097+ var arg0 context.Context
12098+ if args[0] != nil {
12099+ arg0 = args[0].(context.Context)
12100+ }
12101+ run(
12102+ arg0,
12103+ )
12104+ })
12105+ return _c
12106+}
12107+
12108+func (_c *MockWebView_Reload_Call) Return(err error) *MockWebView_Reload_Call {
12109+ _c.Call.Return(err)
12110+ return _c
12111+}
12112+
12113+func (_c *MockWebView_Reload_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Reload_Call {
12114+ _c.Call.Return(run)
12115+ return _c
12116+}
12117+
12118+// ReloadBypassCache provides a mock function for the type MockWebView
12119+func (_mock *MockWebView) ReloadBypassCache(ctx context.Context) error {
12120+ ret := _mock.Called(ctx)
12121+
12122+ if len(ret) == 0 {
12123+ panic("no return value specified for ReloadBypassCache")
12124+ }
12125+
12126+ var r0 error
12127+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
12128+ r0 = returnFunc(ctx)
12129+ } else {
12130+ r0 = ret.Error(0)
12131+ }
12132+ return r0
12133+}
12134+
12135+// MockWebView_ReloadBypassCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReloadBypassCache'
12136+type MockWebView_ReloadBypassCache_Call struct {
12137+ *mock.Call
12138+}
12139+
12140+// ReloadBypassCache is a helper method to define mock.On call
12141+// - ctx context.Context
12142+func (_e *MockWebView_Expecter) ReloadBypassCache(ctx interface{}) *MockWebView_ReloadBypassCache_Call {
12143+ return &MockWebView_ReloadBypassCache_Call{Call: _e.mock.On("ReloadBypassCache", ctx)}
12144+}
12145+
12146+func (_c *MockWebView_ReloadBypassCache_Call) Run(run func(ctx context.Context)) *MockWebView_ReloadBypassCache_Call {
12147+ _c.Call.Run(func(args mock.Arguments) {
12148+ var arg0 context.Context
12149+ if args[0] != nil {
12150+ arg0 = args[0].(context.Context)
12151+ }
12152+ run(
12153+ arg0,
12154+ )
12155+ })
12156+ return _c
12157+}
12158+
12159+func (_c *MockWebView_ReloadBypassCache_Call) Return(err error) *MockWebView_ReloadBypassCache_Call {
12160+ _c.Call.Return(err)
12161+ return _c
12162+}
12163+
12164+func (_c *MockWebView_ReloadBypassCache_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_ReloadBypassCache_Call {
12165+ _c.Call.Return(run)
12166+ return _c
12167+}
12168+
12169+// ResetBackgroundToDefault provides a mock function for the type MockWebView
12170+func (_mock *MockWebView) ResetBackgroundToDefault() {
12171+ _mock.Called()
12172+ return
12173+}
12174+
12175+// 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
12181+func (_e *MockWebView_Expecter) ResetBackgroundToDefault() *MockWebView_ResetBackgroundToDefault_Call {
12182+ return &MockWebView_ResetBackgroundToDefault_Call{Call: _e.mock.On("ResetBackgroundToDefault")}
12183+}
12184+
12185+func (_c *MockWebView_ResetBackgroundToDefault_Call) Run(run func()) *MockWebView_ResetBackgroundToDefault_Call {
12186+ _c.Call.Run(func(args mock.Arguments) {
12187+ run()
12188+ })
12189+ return _c
12190+}
12191+
12192+func (_c *MockWebView_ResetBackgroundToDefault_Call) Return() *MockWebView_ResetBackgroundToDefault_Call {
12193+ _c.Call.Return()
12194+ return _c
12195+}
12196+
12197+func (_c *MockWebView_ResetBackgroundToDefault_Call) RunAndReturn(run func()) *MockWebView_ResetBackgroundToDefault_Call {
12198+ _c.Run(run)
12199+ return _c
12200+}
12201+
12202+// RunJavaScript provides a mock function for the type MockWebView
12203+func (_mock *MockWebView) RunJavaScript(ctx context.Context, script string) {
12204+ _mock.Called(ctx, script)
12205+ return
12206+}
12207+
12208+// MockWebView_RunJavaScript_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunJavaScript'
12209+type MockWebView_RunJavaScript_Call struct {
12210+ *mock.Call
12211+}
12212+
12213+// RunJavaScript is a helper method to define mock.On call
12214+// - ctx context.Context
12215+// - script string
12216+func (_e *MockWebView_Expecter) RunJavaScript(ctx interface{}, script interface{}) *MockWebView_RunJavaScript_Call {
12217+ return &MockWebView_RunJavaScript_Call{Call: _e.mock.On("RunJavaScript", ctx, script)}
12218+}
12219+
12220+func (_c *MockWebView_RunJavaScript_Call) Run(run func(ctx context.Context, script string)) *MockWebView_RunJavaScript_Call {
12221+ _c.Call.Run(func(args mock.Arguments) {
12222+ var arg0 context.Context
12223+ if args[0] != nil {
12224+ arg0 = args[0].(context.Context)
12225+ }
12226+ var arg1 string
12227+ if args[1] != nil {
12228+ arg1 = args[1].(string)
12229+ }
12230+ run(
12231+ arg0,
12232+ arg1,
12233+ )
12234+ })
12235+ return _c
12236+}
12237+
12238+func (_c *MockWebView_RunJavaScript_Call) Return() *MockWebView_RunJavaScript_Call {
12239+ _c.Call.Return()
12240+ return _c
12241+}
12242+
12243+func (_c *MockWebView_RunJavaScript_Call) RunAndReturn(run func(ctx context.Context, script string)) *MockWebView_RunJavaScript_Call {
12244+ _c.Run(run)
12245+ return _c
12246+}
12247+
12248+// SetBackgroundColor provides a mock function for the type MockWebView
12249+func (_mock *MockWebView) SetBackgroundColor(r float64, g float64, b float64, a float64) {
12250+ _mock.Called(r, g, b, a)
12251+ return
12252+}
12253+
12254+// MockWebView_SetBackgroundColor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBackgroundColor'
12255+type MockWebView_SetBackgroundColor_Call struct {
12256+ *mock.Call
12257+}
12258+
12259+// SetBackgroundColor is a helper method to define mock.On call
12260+// - r float64
12261+// - g float64
12262+// - b float64
12263+// - a float64
12264+func (_e *MockWebView_Expecter) SetBackgroundColor(r interface{}, g interface{}, b interface{}, a interface{}) *MockWebView_SetBackgroundColor_Call {
12265+ return &MockWebView_SetBackgroundColor_Call{Call: _e.mock.On("SetBackgroundColor", r, g, b, a)}
12266+}
12267+
12268+func (_c *MockWebView_SetBackgroundColor_Call) Run(run func(r float64, g float64, b float64, a float64)) *MockWebView_SetBackgroundColor_Call {
12269+ _c.Call.Run(func(args mock.Arguments) {
12270+ var arg0 float64
12271+ if args[0] != nil {
12272+ arg0 = args[0].(float64)
12273+ }
12274+ var arg1 float64
12275+ if args[1] != nil {
12276+ arg1 = args[1].(float64)
12277+ }
12278+ var arg2 float64
12279+ if args[2] != nil {
12280+ arg2 = args[2].(float64)
12281+ }
12282+ var arg3 float64
12283+ if args[3] != nil {
12284+ arg3 = args[3].(float64)
12285+ }
12286+ run(
12287+ arg0,
12288+ arg1,
12289+ arg2,
12290+ arg3,
12291+ )
12292+ })
12293+ return _c
12294+}
12295+
12296+func (_c *MockWebView_SetBackgroundColor_Call) Return() *MockWebView_SetBackgroundColor_Call {
12297+ _c.Call.Return()
12298+ return _c
12299+}
12300+
12301+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
12307+func (_mock *MockWebView) SetCallbacks(callbacks *port.WebViewCallbacks) {
12308+ _mock.Called(callbacks)
12309+ return
12310+}
12311+
12312+// MockWebView_SetCallbacks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCallbacks'
12313+type MockWebView_SetCallbacks_Call struct {
12314+ *mock.Call
12315+}
12316+
12317+// SetCallbacks is a helper method to define mock.On call
12318+// - callbacks *port.WebViewCallbacks
12319+func (_e *MockWebView_Expecter) SetCallbacks(callbacks interface{}) *MockWebView_SetCallbacks_Call {
12320+ return &MockWebView_SetCallbacks_Call{Call: _e.mock.On("SetCallbacks", callbacks)}
12321+}
12322+
12323+func (_c *MockWebView_SetCallbacks_Call) Run(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
12324+ _c.Call.Run(func(args mock.Arguments) {
12325+ var arg0 *port.WebViewCallbacks
12326+ if args[0] != nil {
12327+ arg0 = args[0].(*port.WebViewCallbacks)
12328+ }
12329+ run(
12330+ arg0,
12331+ )
12332+ })
12333+ return _c
12334+}
12335+
12336+func (_c *MockWebView_SetCallbacks_Call) Return() *MockWebView_SetCallbacks_Call {
12337+ _c.Call.Return()
12338+ return _c
12339+}
12340+
12341+func (_c *MockWebView_SetCallbacks_Call) RunAndReturn(run func(callbacks *port.WebViewCallbacks)) *MockWebView_SetCallbacks_Call {
12342+ _c.Run(run)
12343+ return _c
12344+}
12345+
12346+// SetZoomLevel provides a mock function for the type MockWebView
12347+func (_mock *MockWebView) SetZoomLevel(ctx context.Context, level float64) error {
12348+ ret := _mock.Called(ctx, level)
12349+
12350+ if len(ret) == 0 {
12351+ panic("no return value specified for SetZoomLevel")
12352+ }
12353+
12354+ var r0 error
12355+ if returnFunc, ok := ret.Get(0).(func(context.Context, float64) error); ok {
12356+ r0 = returnFunc(ctx, level)
12357+ } else {
12358+ r0 = ret.Error(0)
12359+ }
12360+ return r0
12361+}
12362+
12363+// MockWebView_SetZoomLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetZoomLevel'
12364+type MockWebView_SetZoomLevel_Call struct {
12365+ *mock.Call
12366+}
12367+
12368+// SetZoomLevel is a helper method to define mock.On call
12369+// - ctx context.Context
12370+// - level float64
12371+func (_e *MockWebView_Expecter) SetZoomLevel(ctx interface{}, level interface{}) *MockWebView_SetZoomLevel_Call {
12372+ return &MockWebView_SetZoomLevel_Call{Call: _e.mock.On("SetZoomLevel", ctx, level)}
12373+}
12374+
12375+func (_c *MockWebView_SetZoomLevel_Call) Run(run func(ctx context.Context, level float64)) *MockWebView_SetZoomLevel_Call {
12376+ _c.Call.Run(func(args mock.Arguments) {
12377+ var arg0 context.Context
12378+ if args[0] != nil {
12379+ arg0 = args[0].(context.Context)
12380+ }
12381+ var arg1 float64
12382+ if args[1] != nil {
12383+ arg1 = args[1].(float64)
12384+ }
12385+ run(
12386+ arg0,
12387+ arg1,
12388+ )
12389+ })
12390+ return _c
12391+}
12392+
12393+func (_c *MockWebView_SetZoomLevel_Call) Return(err error) *MockWebView_SetZoomLevel_Call {
12394+ _c.Call.Return(err)
12395+ return _c
12396+}
12397+
12398+func (_c *MockWebView_SetZoomLevel_Call) RunAndReturn(run func(ctx context.Context, level float64) error) *MockWebView_SetZoomLevel_Call {
12399+ _c.Call.Return(run)
12400+ return _c
12401+}
12402+
12403+// State provides a mock function for the type MockWebView
12404+func (_mock *MockWebView) State() port.WebViewState {
12405+ ret := _mock.Called()
12406+
12407+ if len(ret) == 0 {
12408+ panic("no return value specified for State")
12409+ }
12410+
12411+ var r0 port.WebViewState
12412+ if returnFunc, ok := ret.Get(0).(func() port.WebViewState); ok {
12413+ r0 = returnFunc()
12414+ } else {
12415+ r0 = ret.Get(0).(port.WebViewState)
12416+ }
12417+ return r0
12418+}
12419+
12420+// MockWebView_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'
12421+type MockWebView_State_Call struct {
12422+ *mock.Call
12423+}
12424+
12425+// State is a helper method to define mock.On call
12426+func (_e *MockWebView_Expecter) State() *MockWebView_State_Call {
12427+ return &MockWebView_State_Call{Call: _e.mock.On("State")}
12428+}
12429+
12430+func (_c *MockWebView_State_Call) Run(run func()) *MockWebView_State_Call {
12431+ _c.Call.Run(func(args mock.Arguments) {
12432+ run()
12433+ })
12434+ return _c
12435+}
12436+
12437+func (_c *MockWebView_State_Call) Return(webViewState port.WebViewState) *MockWebView_State_Call {
12438+ _c.Call.Return(webViewState)
12439+ return _c
12440+}
12441+
12442+func (_c *MockWebView_State_Call) RunAndReturn(run func() port.WebViewState) *MockWebView_State_Call {
12443+ _c.Call.Return(run)
12444+ return _c
12445+}
12446+
12447+// Stop provides a mock function for the type MockWebView
12448+func (_mock *MockWebView) Stop(ctx context.Context) error {
12449+ ret := _mock.Called(ctx)
12450+
12451+ if len(ret) == 0 {
12452+ panic("no return value specified for Stop")
12453+ }
12454+
12455+ var r0 error
12456+ if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok {
12457+ r0 = returnFunc(ctx)
12458+ } else {
12459+ r0 = ret.Error(0)
12460+ }
12461+ return r0
12462+}
12463+
12464+// MockWebView_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
12465+type MockWebView_Stop_Call struct {
12466+ *mock.Call
12467+}
12468+
12469+// Stop is a helper method to define mock.On call
12470+// - ctx context.Context
12471+func (_e *MockWebView_Expecter) Stop(ctx interface{}) *MockWebView_Stop_Call {
12472+ return &MockWebView_Stop_Call{Call: _e.mock.On("Stop", ctx)}
12473+}
12474+
12475+func (_c *MockWebView_Stop_Call) Run(run func(ctx context.Context)) *MockWebView_Stop_Call {
12476+ _c.Call.Run(func(args mock.Arguments) {
12477+ var arg0 context.Context
12478+ if args[0] != nil {
12479+ arg0 = args[0].(context.Context)
12480+ }
12481+ run(
12482+ arg0,
12483+ )
12484+ })
12485+ return _c
12486+}
12487+
12488+func (_c *MockWebView_Stop_Call) Return(err error) *MockWebView_Stop_Call {
12489+ _c.Call.Return(err)
12490+ return _c
12491+}
12492+
12493+func (_c *MockWebView_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockWebView_Stop_Call {
12494+ _c.Call.Return(run)
12495+ return _c
12496+}
12497+
12498+// Title provides a mock function for the type MockWebView
12499+func (_mock *MockWebView) Title() string {
12500+ ret := _mock.Called()
12501+
12502+ if len(ret) == 0 {
12503+ panic("no return value specified for Title")
12504+ }
12505+
12506+ var r0 string
12507+ if returnFunc, ok := ret.Get(0).(func() string); ok {
12508+ r0 = returnFunc()
12509+ } else {
12510+ r0 = ret.Get(0).(string)
12511+ }
12512+ return r0
12513+}
12514+
12515+// MockWebView_Title_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Title'
12516+type MockWebView_Title_Call struct {
12517+ *mock.Call
12518+}
12519+
12520+// Title is a helper method to define mock.On call
12521+func (_e *MockWebView_Expecter) Title() *MockWebView_Title_Call {
12522+ return &MockWebView_Title_Call{Call: _e.mock.On("Title")}
12523+}
12524+
12525+func (_c *MockWebView_Title_Call) Run(run func()) *MockWebView_Title_Call {
12526+ _c.Call.Run(func(args mock.Arguments) {
12527+ run()
12528+ })
12529+ return _c
12530+}
12531+
12532+func (_c *MockWebView_Title_Call) Return(s string) *MockWebView_Title_Call {
12533+ _c.Call.Return(s)
12534+ return _c
12535+}
12536+
12537+func (_c *MockWebView_Title_Call) RunAndReturn(run func() string) *MockWebView_Title_Call {
12538+ _c.Call.Return(run)
12539+ return _c
12540+}
12541+
12542+// URI provides a mock function for the type MockWebView
12543+func (_mock *MockWebView) URI() string {
12544+ ret := _mock.Called()
12545+
12546+ if len(ret) == 0 {
12547+ panic("no return value specified for URI")
12548+ }
12549+
12550+ var r0 string
12551+ if returnFunc, ok := ret.Get(0).(func() string); ok {
12552+ r0 = returnFunc()
12553+ } else {
12554+ r0 = ret.Get(0).(string)
12555+ }
12556+ return r0
12557+}
12558+
12559+// MockWebView_URI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URI'
12560+type MockWebView_URI_Call struct {
12561+ *mock.Call
12562+}
12563+
12564+// URI is a helper method to define mock.On call
12565+func (_e *MockWebView_Expecter) URI() *MockWebView_URI_Call {
12566+ return &MockWebView_URI_Call{Call: _e.mock.On("URI")}
12567+}
12568+
12569+func (_c *MockWebView_URI_Call) Run(run func()) *MockWebView_URI_Call {
12570+ _c.Call.Run(func(args mock.Arguments) {
12571+ run()
12572+ })
12573+ return _c
12574+}
12575+
12576+func (_c *MockWebView_URI_Call) Return(s string) *MockWebView_URI_Call {
12577+ _c.Call.Return(s)
12578+ return _c
12579+}
12580+
12581+func (_c *MockWebView_URI_Call) RunAndReturn(run func() string) *MockWebView_URI_Call {
12582+ _c.Call.Return(run)
12583+ return _c
12584+}
12585+
12586+// 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
12601+type MockWebViewPool struct {
12602+ mock.Mock
12603+}
12604+
12605+type MockWebViewPool_Expecter struct {
12606+ mock *mock.Mock
12607+}
12608+
12609+func (_m *MockWebViewPool) EXPECT() *MockWebViewPool_Expecter {
12610+ return &MockWebViewPool_Expecter{mock: &_m.Mock}
12611+}
12612+
12613+// Acquire provides a mock function for the type MockWebViewPool
12614+func (_mock *MockWebViewPool) Acquire(ctx context.Context) (port.WebView, error) {
12615+ ret := _mock.Called(ctx)
12616+
12617+ if len(ret) == 0 {
12618+ panic("no return value specified for Acquire")
12619+ }
12620+
12621+ var r0 port.WebView
12622+ var r1 error
12623+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
12624+ return returnFunc(ctx)
12625+ }
12626+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
12627+ r0 = returnFunc(ctx)
12628+ } else {
12629+ if ret.Get(0) != nil {
12630+ r0 = ret.Get(0).(port.WebView)
12631+ }
12632+ }
12633+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
12634+ r1 = returnFunc(ctx)
12635+ } else {
12636+ r1 = ret.Error(1)
12637+ }
12638+ return r0, r1
12639+}
12640+
12641+// MockWebViewPool_Acquire_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Acquire'
12642+type MockWebViewPool_Acquire_Call struct {
12643+ *mock.Call
12644+}
12645+
12646+// Acquire is a helper method to define mock.On call
12647+// - ctx context.Context
12648+func (_e *MockWebViewPool_Expecter) Acquire(ctx interface{}) *MockWebViewPool_Acquire_Call {
12649+ return &MockWebViewPool_Acquire_Call{Call: _e.mock.On("Acquire", ctx)}
12650+}
12651+
12652+func (_c *MockWebViewPool_Acquire_Call) Run(run func(ctx context.Context)) *MockWebViewPool_Acquire_Call {
12653+ _c.Call.Run(func(args mock.Arguments) {
12654+ var arg0 context.Context
12655+ if args[0] != nil {
12656+ arg0 = args[0].(context.Context)
12657+ }
12658+ run(
12659+ arg0,
12660+ )
12661+ })
12662+ return _c
12663+}
12664+
12665+func (_c *MockWebViewPool_Acquire_Call) Return(webView port.WebView, err error) *MockWebViewPool_Acquire_Call {
12666+ _c.Call.Return(webView, err)
12667+ return _c
12668+}
12669+
12670+func (_c *MockWebViewPool_Acquire_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewPool_Acquire_Call {
12671+ _c.Call.Return(run)
12672+ return _c
12673+}
12674+
12675+// Close provides a mock function for the type MockWebViewPool
12676+func (_mock *MockWebViewPool) Close() {
12677+ _mock.Called()
12678+ return
12679+}
12680+
12681+// MockWebViewPool_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
12682+type MockWebViewPool_Close_Call struct {
12683+ *mock.Call
12684+}
12685+
12686+// Close is a helper method to define mock.On call
12687+func (_e *MockWebViewPool_Expecter) Close() *MockWebViewPool_Close_Call {
12688+ return &MockWebViewPool_Close_Call{Call: _e.mock.On("Close")}
12689+}
12690+
12691+func (_c *MockWebViewPool_Close_Call) Run(run func()) *MockWebViewPool_Close_Call {
12692+ _c.Call.Run(func(args mock.Arguments) {
12693+ run()
12694+ })
12695+ return _c
12696+}
12697+
12698+func (_c *MockWebViewPool_Close_Call) Return() *MockWebViewPool_Close_Call {
12699+ _c.Call.Return()
12700+ return _c
12701+}
12702+
12703+func (_c *MockWebViewPool_Close_Call) RunAndReturn(run func()) *MockWebViewPool_Close_Call {
12704+ _c.Run(run)
12705+ return _c
12706+}
12707+
12708+// Prewarm provides a mock function for the type MockWebViewPool
12709+func (_mock *MockWebViewPool) Prewarm(count int) {
12710+ _mock.Called(count)
12711+ return
12712+}
12713+
12714+// MockWebViewPool_Prewarm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prewarm'
12715+type MockWebViewPool_Prewarm_Call struct {
12716+ *mock.Call
12717+}
12718+
12719+// Prewarm is a helper method to define mock.On call
12720+// - count int
12721+func (_e *MockWebViewPool_Expecter) Prewarm(count interface{}) *MockWebViewPool_Prewarm_Call {
12722+ return &MockWebViewPool_Prewarm_Call{Call: _e.mock.On("Prewarm", count)}
12723+}
12724+
12725+func (_c *MockWebViewPool_Prewarm_Call) Run(run func(count int)) *MockWebViewPool_Prewarm_Call {
12726+ _c.Call.Run(func(args mock.Arguments) {
12727+ var arg0 int
12728+ if args[0] != nil {
12729+ arg0 = args[0].(int)
12730+ }
12731+ run(
12732+ arg0,
12733+ )
12734+ })
12735+ return _c
12736+}
12737+
12738+func (_c *MockWebViewPool_Prewarm_Call) Return() *MockWebViewPool_Prewarm_Call {
12739+ _c.Call.Return()
12740+ return _c
12741+}
12742+
12743+func (_c *MockWebViewPool_Prewarm_Call) RunAndReturn(run func(count int)) *MockWebViewPool_Prewarm_Call {
12744+ _c.Run(run)
12745+ return _c
12746+}
12747+
12748+// Release provides a mock function for the type MockWebViewPool
12749+func (_mock *MockWebViewPool) Release(wv port.WebView) {
12750+ _mock.Called(wv)
12751+ return
12752+}
12753+
12754+// MockWebViewPool_Release_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Release'
12755+type MockWebViewPool_Release_Call struct {
12756+ *mock.Call
12757+}
12758+
12759+// Release is a helper method to define mock.On call
12760+// - wv port.WebView
12761+func (_e *MockWebViewPool_Expecter) Release(wv interface{}) *MockWebViewPool_Release_Call {
12762+ return &MockWebViewPool_Release_Call{Call: _e.mock.On("Release", wv)}
12763+}
12764+
12765+func (_c *MockWebViewPool_Release_Call) Run(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
12766+ _c.Call.Run(func(args mock.Arguments) {
12767+ var arg0 port.WebView
12768+ if args[0] != nil {
12769+ arg0 = args[0].(port.WebView)
12770+ }
12771+ run(
12772+ arg0,
12773+ )
12774+ })
12775+ return _c
12776+}
12777+
12778+func (_c *MockWebViewPool_Release_Call) Return() *MockWebViewPool_Release_Call {
12779+ _c.Call.Return()
12780+ return _c
12781+}
12782+
12783+func (_c *MockWebViewPool_Release_Call) RunAndReturn(run func(wv port.WebView)) *MockWebViewPool_Release_Call {
12784+ _c.Run(run)
12785+ return _c
12786+}
12787+
12788+// Size provides a mock function for the type MockWebViewPool
12789+func (_mock *MockWebViewPool) Size() int {
12790+ ret := _mock.Called()
12791+
12792+ if len(ret) == 0 {
12793+ panic("no return value specified for Size")
12794+ }
12795+
12796+ var r0 int
12797+ if returnFunc, ok := ret.Get(0).(func() int); ok {
12798+ r0 = returnFunc()
12799+ } else {
12800+ r0 = ret.Get(0).(int)
12801+ }
12802+ return r0
12803+}
12804+
12805+// MockWebViewPool_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
12806+type MockWebViewPool_Size_Call struct {
12807+ *mock.Call
12808+}
12809+
12810+// Size is a helper method to define mock.On call
12811+func (_e *MockWebViewPool_Expecter) Size() *MockWebViewPool_Size_Call {
12812+ return &MockWebViewPool_Size_Call{Call: _e.mock.On("Size")}
12813+}
12814+
12815+func (_c *MockWebViewPool_Size_Call) Run(run func()) *MockWebViewPool_Size_Call {
12816+ _c.Call.Run(func(args mock.Arguments) {
12817+ run()
12818+ })
12819+ return _c
12820+}
12821+
12822+func (_c *MockWebViewPool_Size_Call) Return(n int) *MockWebViewPool_Size_Call {
12823+ _c.Call.Return(n)
12824+ return _c
12825+}
12826+
12827+func (_c *MockWebViewPool_Size_Call) RunAndReturn(run func() int) *MockWebViewPool_Size_Call {
12828+ _c.Call.Return(run)
12829+ return _c
12830+}
12831+
12832+// 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
12847+type MockWebViewFactory struct {
12848+ mock.Mock
12849+}
12850+
12851+type MockWebViewFactory_Expecter struct {
12852+ mock *mock.Mock
12853+}
12854+
12855+func (_m *MockWebViewFactory) EXPECT() *MockWebViewFactory_Expecter {
12856+ return &MockWebViewFactory_Expecter{mock: &_m.Mock}
12857+}
12858+
12859+// Create provides a mock function for the type MockWebViewFactory
12860+func (_mock *MockWebViewFactory) Create(ctx context.Context) (port.WebView, error) {
12861+ ret := _mock.Called(ctx)
12862+
12863+ if len(ret) == 0 {
12864+ panic("no return value specified for Create")
12865+ }
12866+
12867+ var r0 port.WebView
12868+ var r1 error
12869+ if returnFunc, ok := ret.Get(0).(func(context.Context) (port.WebView, error)); ok {
12870+ return returnFunc(ctx)
12871+ }
12872+ if returnFunc, ok := ret.Get(0).(func(context.Context) port.WebView); ok {
12873+ r0 = returnFunc(ctx)
12874+ } else {
12875+ if ret.Get(0) != nil {
12876+ r0 = ret.Get(0).(port.WebView)
12877+ }
12878+ }
12879+ if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
12880+ r1 = returnFunc(ctx)
12881+ } else {
12882+ r1 = ret.Error(1)
12883+ }
12884+ return r0, r1
12885+}
12886+
12887+// MockWebViewFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
12888+type MockWebViewFactory_Create_Call struct {
12889+ *mock.Call
12890+}
12891+
12892+// Create is a helper method to define mock.On call
12893+// - ctx context.Context
12894+func (_e *MockWebViewFactory_Expecter) Create(ctx interface{}) *MockWebViewFactory_Create_Call {
12895+ return &MockWebViewFactory_Create_Call{Call: _e.mock.On("Create", ctx)}
12896+}
12897+
12898+func (_c *MockWebViewFactory_Create_Call) Run(run func(ctx context.Context)) *MockWebViewFactory_Create_Call {
12899+ _c.Call.Run(func(args mock.Arguments) {
12900+ var arg0 context.Context
12901+ if args[0] != nil {
12902+ arg0 = args[0].(context.Context)
12903+ }
12904+ run(
12905+ arg0,
12906+ )
12907+ })
12908+ return _c
12909+}
12910+
12911+func (_c *MockWebViewFactory_Create_Call) Return(webView port.WebView, err error) *MockWebViewFactory_Create_Call {
12912+ _c.Call.Return(webView, err)
12913+ return _c
12914+}
12915+
12916+func (_c *MockWebViewFactory_Create_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewFactory_Create_Call {
12917+ _c.Call.Return(run)
12918+ return _c
12919+}
12920+
12921+// CreateRelated provides a mock function for the type MockWebViewFactory
12922+func (_mock *MockWebViewFactory) CreateRelated(ctx context.Context, parentID port.WebViewID) (port.WebView, error) {
12923+ ret := _mock.Called(ctx, parentID)
12924+
12925+ if len(ret) == 0 {
12926+ panic("no return value specified for CreateRelated")
12927+ }
12928+
12929+ var r0 port.WebView
12930+ var r1 error
12931+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) (port.WebView, error)); ok {
12932+ return returnFunc(ctx, parentID)
12933+ }
12934+ if returnFunc, ok := ret.Get(0).(func(context.Context, port.WebViewID) port.WebView); ok {
12935+ r0 = returnFunc(ctx, parentID)
12936+ } else {
12937+ if ret.Get(0) != nil {
12938+ r0 = ret.Get(0).(port.WebView)
12939+ }
12940+ }
12941+ if returnFunc, ok := ret.Get(1).(func(context.Context, port.WebViewID) error); ok {
12942+ r1 = returnFunc(ctx, parentID)
12943+ } else {
12944+ r1 = ret.Error(1)
12945+ }
12946+ return r0, r1
12947+}
12948+
12949+// MockWebViewFactory_CreateRelated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRelated'
12950+type MockWebViewFactory_CreateRelated_Call struct {
12951+ *mock.Call
12952+}
12953+
12954+// CreateRelated is a helper method to define mock.On call
12955+// - ctx context.Context
12956+// - parentID port.WebViewID
12957+func (_e *MockWebViewFactory_Expecter) CreateRelated(ctx interface{}, parentID interface{}) *MockWebViewFactory_CreateRelated_Call {
12958+ return &MockWebViewFactory_CreateRelated_Call{Call: _e.mock.On("CreateRelated", ctx, parentID)}
12959+}
12960+
12961+func (_c *MockWebViewFactory_CreateRelated_Call) Run(run func(ctx context.Context, parentID port.WebViewID)) *MockWebViewFactory_CreateRelated_Call {
12962+ _c.Call.Run(func(args mock.Arguments) {
12963+ var arg0 context.Context
12964+ if args[0] != nil {
12965+ arg0 = args[0].(context.Context)
12966+ }
12967+ var arg1 port.WebViewID
12968+ if args[1] != nil {
12969+ arg1 = args[1].(port.WebViewID)
12970+ }
12971+ run(
12972+ arg0,
12973+ arg1,
12974+ )
12975+ })
12976+ return _c
12977+}
12978+
12979+func (_c *MockWebViewFactory_CreateRelated_Call) Return(webView port.WebView, err error) *MockWebViewFactory_CreateRelated_Call {
12980+ _c.Call.Return(webView, err)
12981+ return _c
12982+}
12983+
12984+func (_c *MockWebViewFactory_CreateRelated_Call) RunAndReturn(run func(ctx context.Context, parentID port.WebViewID) (port.WebView, error)) *MockWebViewFactory_CreateRelated_Call {
12985+ _c.Call.Return(run)
12986+ return _c
12987+}
12988+
12989+// 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
13004+type MockDevToolsOpener struct {
13005+ mock.Mock
13006+}
13007+
13008+type MockDevToolsOpener_Expecter struct {
13009+ mock *mock.Mock
13010+}
13011+
13012+func (_m *MockDevToolsOpener) EXPECT() *MockDevToolsOpener_Expecter {
13013+ return &MockDevToolsOpener_Expecter{mock: &_m.Mock}
13014+}
13015+
13016+// OpenDevTools provides a mock function for the type MockDevToolsOpener
13017+func (_mock *MockDevToolsOpener) OpenDevTools() {
13018+ _mock.Called()
13019+ return
13020+}
13021+
13022+// MockDevToolsOpener_OpenDevTools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenDevTools'
13023+type MockDevToolsOpener_OpenDevTools_Call struct {
13024+ *mock.Call
13025+}
13026+
13027+// OpenDevTools is a helper method to define mock.On call
13028+func (_e *MockDevToolsOpener_Expecter) OpenDevTools() *MockDevToolsOpener_OpenDevTools_Call {
13029+ return &MockDevToolsOpener_OpenDevTools_Call{Call: _e.mock.On("OpenDevTools")}
13030+}
13031+
13032+func (_c *MockDevToolsOpener_OpenDevTools_Call) Run(run func()) *MockDevToolsOpener_OpenDevTools_Call {
13033+ _c.Call.Run(func(args mock.Arguments) {
13034+ run()
13035+ })
13036+ return _c
13037+}
13038+
13039+func (_c *MockDevToolsOpener_OpenDevTools_Call) Return() *MockDevToolsOpener_OpenDevTools_Call {
13040+ _c.Call.Return()
13041+ return _c
13042+}
13043+
13044+func (_c *MockDevToolsOpener_OpenDevTools_Call) RunAndReturn(run func()) *MockDevToolsOpener_OpenDevTools_Call {
13045+ _c.Run(run)
13046+ return _c
13047+}
13048+
13049+// 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
13064+type MockPrinter struct {
13065+ mock.Mock
13066+}
13067+
13068+type MockPrinter_Expecter struct {
13069+ mock *mock.Mock
13070+}
13071+
13072+func (_m *MockPrinter) EXPECT() *MockPrinter_Expecter {
13073+ return &MockPrinter_Expecter{mock: &_m.Mock}
13074+}
13075+
13076+// PrintPage provides a mock function for the type MockPrinter
13077+func (_mock *MockPrinter) PrintPage() {
13078+ _mock.Called()
13079+ return
13080+}
13081+
13082+// MockPrinter_PrintPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrintPage'
13083+type MockPrinter_PrintPage_Call struct {
13084+ *mock.Call
13085+}
13086+
13087+// PrintPage is a helper method to define mock.On call
13088+func (_e *MockPrinter_Expecter) PrintPage() *MockPrinter_PrintPage_Call {
13089+ return &MockPrinter_PrintPage_Call{Call: _e.mock.On("PrintPage")}
13090+}
13091+
13092+func (_c *MockPrinter_PrintPage_Call) Run(run func()) *MockPrinter_PrintPage_Call {
13093+ _c.Call.Run(func(args mock.Arguments) {
13094+ run()
13095+ })
13096+ return _c
13097+}
13098+
13099+func (_c *MockPrinter_PrintPage_Call) Return() *MockPrinter_PrintPage_Call {
13100+ _c.Call.Return()
13101+ return _c
13102+}
13103+
13104+func (_c *MockPrinter_PrintPage_Call) RunAndReturn(run func()) *MockPrinter_PrintPage_Call {
13105+ _c.Run(run)
13106+ return _c
13107+}
13108+
13109+// 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
13124+type MockPopupCapable struct {
13125+ mock.Mock
13126+}
13127+
13128+type MockPopupCapable_Expecter struct {
13129+ mock *mock.Mock
13130+}
13131+
13132+func (_m *MockPopupCapable) EXPECT() *MockPopupCapable_Expecter {
13133+ return &MockPopupCapable_Expecter{mock: &_m.Mock}
13134+}
13135+
13136+// SetOnClose provides a mock function for the type MockPopupCapable
13137+func (_mock *MockPopupCapable) SetOnClose(fn func()) {
13138+ _mock.Called(fn)
13139+ return
13140+}
13141+
13142+// MockPopupCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'
13143+type MockPopupCapable_SetOnClose_Call struct {
13144+ *mock.Call
13145+}
13146+
13147+// SetOnClose is a helper method to define mock.On call
13148+// - fn func()
13149+func (_e *MockPopupCapable_Expecter) SetOnClose(fn interface{}) *MockPopupCapable_SetOnClose_Call {
13150+ return &MockPopupCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}
13151+}
13152+
13153+func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
13154+ _c.Call.Run(func(args mock.Arguments) {
13155+ var arg0 func()
13156+ if args[0] != nil {
13157+ arg0 = args[0].(func())
13158+ }
13159+ run(
13160+ arg0,
13161+ )
13162+ })
13163+ return _c
13164+}
13165+
13166+func (_c *MockPopupCapable_SetOnClose_Call) Return() *MockPopupCapable_SetOnClose_Call {
13167+ _c.Call.Return()
13168+ return _c
13169+}
13170+
13171+func (_c *MockPopupCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
13172+ _c.Run(run)
13173+ return _c
13174+}
13175+
13176+// SetOnReadyToShow provides a mock function for the type MockPopupCapable
13177+func (_mock *MockPopupCapable) SetOnReadyToShow(fn func()) {
13178+ _mock.Called(fn)
13179+ return
13180+}
13181+
13182+// MockPopupCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'
13183+type MockPopupCapable_SetOnReadyToShow_Call struct {
13184+ *mock.Call
13185+}
13186+
13187+// SetOnReadyToShow is a helper method to define mock.On call
13188+// - fn func()
13189+func (_e *MockPopupCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupCapable_SetOnReadyToShow_Call {
13190+ return &MockPopupCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}
13191+}
13192+
13193+func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
13194+ _c.Call.Run(func(args mock.Arguments) {
13195+ var arg0 func()
13196+ if args[0] != nil {
13197+ arg0 = args[0].(func())
13198+ }
13199+ run(
13200+ arg0,
13201+ )
13202+ })
13203+ return _c
13204+}
13205+
13206+func (_c *MockPopupCapable_SetOnReadyToShow_Call) Return() *MockPopupCapable_SetOnReadyToShow_Call {
13207+ _c.Call.Return()
13208+ return _c
13209+}
13210+
13211+func (_c *MockPopupCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
13212+ _c.Run(run)
13213+ return _c
13214+}
13215+
13216+// Show provides a mock function for the type MockPopupCapable
13217+func (_mock *MockPopupCapable) Show() {
13218+ _mock.Called()
13219+ return
13220+}
13221+
13222+// MockPopupCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
13223+type MockPopupCapable_Show_Call struct {
13224+ *mock.Call
13225+}
13226+
13227+// Show is a helper method to define mock.On call
13228+func (_e *MockPopupCapable_Expecter) Show() *MockPopupCapable_Show_Call {
13229+ return &MockPopupCapable_Show_Call{Call: _e.mock.On("Show")}
13230+}
13231+
13232+func (_c *MockPopupCapable_Show_Call) Run(run func()) *MockPopupCapable_Show_Call {
13233+ _c.Call.Run(func(args mock.Arguments) {
13234+ run()
13235+ })
13236+ return _c
13237+}
13238+
13239+func (_c *MockPopupCapable_Show_Call) Return() *MockPopupCapable_Show_Call {
13240+ _c.Call.Return()
13241+ return _c
13242+}
13243+
13244+func (_c *MockPopupCapable_Show_Call) RunAndReturn(run func()) *MockPopupCapable_Show_Call {
13245+ _c.Run(run)
13246+ return _c
13247+}
13248+
13249+// 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
13264+type MockOAuthCallbackCapable struct {
13265+ mock.Mock
13266+}
13267+
13268+type MockOAuthCallbackCapable_Expecter struct {
13269+ mock *mock.Mock
13270+}
13271+
13272+func (_m *MockOAuthCallbackCapable) EXPECT() *MockOAuthCallbackCapable_Expecter {
13273+ return &MockOAuthCallbackCapable_Expecter{mock: &_m.Mock}
13274+}
13275+
13276+// AddCloseCallback provides a mock function for the type MockOAuthCallbackCapable
13277+func (_mock *MockOAuthCallbackCapable) AddCloseCallback(fn func()) {
13278+ _mock.Called(fn)
13279+ return
13280+}
13281+
13282+// 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
13288+// - fn func()
13289+func (_e *MockOAuthCallbackCapable_Expecter) AddCloseCallback(fn interface{}) *MockOAuthCallbackCapable_AddCloseCallback_Call {
13290+ return &MockOAuthCallbackCapable_AddCloseCallback_Call{Call: _e.mock.On("AddCloseCallback", fn)}
13291+}
13292+
13293+func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) Run(run func(fn func())) *MockOAuthCallbackCapable_AddCloseCallback_Call {
13294+ _c.Call.Run(func(args mock.Arguments) {
13295+ var arg0 func()
13296+ if args[0] != nil {
13297+ arg0 = args[0].(func())
13298+ }
13299+ run(
13300+ arg0,
13301+ )
13302+ })
13303+ return _c
13304+}
13305+
13306+func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) Return() *MockOAuthCallbackCapable_AddCloseCallback_Call {
13307+ _c.Call.Return()
13308+ return _c
13309+}
13310+
13311+func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) RunAndReturn(run func(fn func())) *MockOAuthCallbackCapable_AddCloseCallback_Call {
13312+ _c.Run(run)
13313+ return _c
13314+}
13315+
13316+// AddNavigationCallback provides a mock function for the type MockOAuthCallbackCapable
13317+func (_mock *MockOAuthCallbackCapable) AddNavigationCallback(fn func(uri string)) {
13318+ _mock.Called(fn)
13319+ return
13320+}
13321+
13322+// 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
13328+// - fn func(uri string)
13329+func (_e *MockOAuthCallbackCapable_Expecter) AddNavigationCallback(fn interface{}) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
13330+ return &MockOAuthCallbackCapable_AddNavigationCallback_Call{Call: _e.mock.On("AddNavigationCallback", fn)}
13331+}
13332+
13333+func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) Run(run func(fn func(uri string))) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
13334+ _c.Call.Run(func(args mock.Arguments) {
13335+ var arg0 func(uri string)
13336+ if args[0] != nil {
13337+ arg0 = args[0].(func(uri string))
13338+ }
13339+ run(
13340+ arg0,
13341+ )
13342+ })
13343+ return _c
13344+}
13345+
13346+func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) Return() *MockOAuthCallbackCapable_AddNavigationCallback_Call {
13347+ _c.Call.Return()
13348+ return _c
13349+}
13350+
13351+func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) RunAndReturn(run func(fn func(uri string))) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
13352+ _c.Run(run)
13353+ return _c
13354+}
13355+
13356+// Close provides a mock function for the type MockOAuthCallbackCapable
13357+func (_mock *MockOAuthCallbackCapable) Close() {
13358+ _mock.Called()
13359+ return
13360+}
13361+
13362+// MockOAuthCallbackCapable_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
13363+type MockOAuthCallbackCapable_Close_Call struct {
13364+ *mock.Call
13365+}
13366+
13367+// Close is a helper method to define mock.On call
13368+func (_e *MockOAuthCallbackCapable_Expecter) Close() *MockOAuthCallbackCapable_Close_Call {
13369+ return &MockOAuthCallbackCapable_Close_Call{Call: _e.mock.On("Close")}
13370+}
13371+
13372+func (_c *MockOAuthCallbackCapable_Close_Call) Run(run func()) *MockOAuthCallbackCapable_Close_Call {
13373+ _c.Call.Run(func(args mock.Arguments) {
13374+ run()
13375+ })
13376+ return _c
13377+}
13378+
13379+func (_c *MockOAuthCallbackCapable_Close_Call) Return() *MockOAuthCallbackCapable_Close_Call {
13380+ _c.Call.Return()
615413381 return _c
615513382 }
615613383
6157-func (_c *MockWebViewFactory_Create_Call) RunAndReturn(run func(ctx context.Context) (port.WebView, error)) *MockWebViewFactory_Create_Call {
6158- _c.Call.Return(run)
13384+func (_c *MockOAuthCallbackCapable_Close_Call) RunAndReturn(run func()) *MockOAuthCallbackCapable_Close_Call {
13385+ _c.Run(run)
615913386 return _c
616013387 }
616113388
6162-// CreateRelated provides a mock function for the type MockWebViewFactory
6163-func (_mock *MockWebViewFactory) CreateRelated(ctx context.Context, parentID port.WebViewID) (port.WebView, error) {
6164- ret := _mock.Called(ctx, parentID)
13389+// 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 {
13409+ mock *mock.Mock
13410+}
13411+
13412+func (_m *MockTextInputTargetProvider) EXPECT() *MockTextInputTargetProvider_Expecter {
13413+ return &MockTextInputTargetProvider_Expecter{mock: &_m.Mock}
13414+}
13415+
13416+// TextInputTarget provides a mock function for the type MockTextInputTargetProvider
13417+func (_mock *MockTextInputTargetProvider) TextInputTarget() port.TextInputTarget {
13418+ ret := _mock.Called()
616513419
616613420 if len(ret) == 0 {
6167- panic("no return value specified for CreateRelated")
13421+ panic("no return value specified for TextInputTarget")
616813422 }
616913423
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()
617713427 } else {
617813428 if ret.Get(0) != nil {
6179- r0 = ret.Get(0).(port.WebView)
13429+ r0 = ret.Get(0).(port.TextInputTarget)
618013430 }
618113431 }
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
618813433 }
618913434
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 {
619213437 *mock.Call
619313438 }
619413439
6195-// CreateRelated is a helper method to define mock.On call
6196-// - ctx context.Context
6197-// - parentID port.WebViewID
6198-func (_e *MockWebViewFactory_Expecter) CreateRelated(ctx interface{}, parentID interface{}) *MockWebViewFactory_CreateRelated_Call {
6199- return &MockWebViewFactory_CreateRelated_Call{Call: _e.mock.On("CreateRelated", ctx, parentID)}
13440+// TextInputTarget is a helper method to define mock.On call
13441+func (_e *MockTextInputTargetProvider_Expecter) TextInputTarget() *MockTextInputTargetProvider_TextInputTarget_Call {
13442+ return &MockTextInputTargetProvider_TextInputTarget_Call{Call: _e.mock.On("TextInputTarget")}
620013443 }
620113444
6202-func (_c *MockWebViewFactory_CreateRelated_Call) Run(run func(ctx context.Context, parentID port.WebViewID)) *MockWebViewFactory_CreateRelated_Call {
13445+func (_c *MockTextInputTargetProvider_TextInputTarget_Call) Run(run func()) *MockTextInputTargetProvider_TextInputTarget_Call {
620313446 _c.Call.Run(func(args mock.Arguments) {
6204- var arg0 context.Context
6205- if args[0] != nil {
6206- arg0 = args[0].(context.Context)
6207- }
6208- var arg1 port.WebViewID
6209- if args[1] != nil {
6210- arg1 = args[1].(port.WebViewID)
6211- }
6212- run(
6213- arg0,
6214- arg1,
6215- )
13447+ run()
621613448 })
621713449 return _c
621813450 }
621913451
6220-func (_c *MockWebViewFactory_CreateRelated_Call) Return(webView port.WebView, err error) *MockWebViewFactory_CreateRelated_Call {
6221- _c.Call.Return(webView, err)
13452+func (_c *MockTextInputTargetProvider_TextInputTarget_Call) Return(textInputTarget port.TextInputTarget) *MockTextInputTargetProvider_TextInputTarget_Call {
13453+ _c.Call.Return(textInputTarget)
622213454 return _c
622313455 }
622413456
6225-func (_c *MockWebViewFactory_CreateRelated_Call) RunAndReturn(run func(ctx context.Context, parentID port.WebViewID) (port.WebView, error)) *MockWebViewFactory_CreateRelated_Call {
13457+func (_c *MockTextInputTargetProvider_TextInputTarget_Call) RunAndReturn(run func() port.TextInputTarget) *MockTextInputTargetProvider_TextInputTarget_Call {
622613458 _c.Call.Return(run)
622713459 return _c
622813460 }
622913461
6230-// 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.
623113463 // The first argument is typically a *testing.T value.
6232-func NewMockDevToolsOpener(t interface {
13464+func NewMockXDGPaths(t interface {
623313465 mock.TestingT
623413466 Cleanup(func())
6235-}) *MockDevToolsOpener {
6236- mock := &MockDevToolsOpener{}
13467+}) *MockXDGPaths {
13468+ mock := &MockXDGPaths{}
623713469 mock.Mock.Test(t)
623813470
623913471 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -6241,388 +13473,492 @@ func NewMockDevToolsOpener(t interface {
624113473 return mock
624213474 }
624313475
6244-// MockDevToolsOpener is an autogenerated mock type for the DevToolsOpener type
6245-type MockDevToolsOpener struct {
13476+// MockXDGPaths is an autogenerated mock type for the XDGPaths type
13477+type MockXDGPaths struct {
624613478 mock.Mock
624713479 }
624813480
6249-type MockDevToolsOpener_Expecter struct {
13481+type MockXDGPaths_Expecter struct {
625013482 mock *mock.Mock
625113483 }
625213484
6253-func (_m *MockDevToolsOpener) EXPECT() *MockDevToolsOpener_Expecter {
6254- return &MockDevToolsOpener_Expecter{mock: &_m.Mock}
13485+func (_m *MockXDGPaths) EXPECT() *MockXDGPaths_Expecter {
13486+ return &MockXDGPaths_Expecter{mock: &_m.Mock}
625513487 }
625613488
6257-// OpenDevTools provides a mock function for the type MockDevToolsOpener
6258-func (_mock *MockDevToolsOpener) OpenDevTools() {
6259- _mock.Called()
6260- return
13489+// CacheDir provides a mock function for the type MockXDGPaths
13490+func (_mock *MockXDGPaths) CacheDir() (string, error) {
13491+ ret := _mock.Called()
13492+
13493+ if len(ret) == 0 {
13494+ panic("no return value specified for CacheDir")
13495+ }
13496+
13497+ var r0 string
13498+ var r1 error
13499+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13500+ return returnFunc()
13501+ }
13502+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13503+ r0 = returnFunc()
13504+ } else {
13505+ r0 = ret.Get(0).(string)
13506+ }
13507+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13508+ r1 = returnFunc()
13509+ } else {
13510+ r1 = ret.Error(1)
13511+ }
13512+ return r0, r1
626113513 }
626213514
6263-// MockDevToolsOpener_OpenDevTools_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenDevTools'
6264-type MockDevToolsOpener_OpenDevTools_Call struct {
13515+// MockXDGPaths_CacheDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CacheDir'
13516+type MockXDGPaths_CacheDir_Call struct {
626513517 *mock.Call
626613518 }
626713519
6268-// OpenDevTools is a helper method to define mock.On call
6269-func (_e *MockDevToolsOpener_Expecter) OpenDevTools() *MockDevToolsOpener_OpenDevTools_Call {
6270- return &MockDevToolsOpener_OpenDevTools_Call{Call: _e.mock.On("OpenDevTools")}
13520+// CacheDir is a helper method to define mock.On call
13521+func (_e *MockXDGPaths_Expecter) CacheDir() *MockXDGPaths_CacheDir_Call {
13522+ return &MockXDGPaths_CacheDir_Call{Call: _e.mock.On("CacheDir")}
627113523 }
627213524
6273-func (_c *MockDevToolsOpener_OpenDevTools_Call) Run(run func()) *MockDevToolsOpener_OpenDevTools_Call {
13525+func (_c *MockXDGPaths_CacheDir_Call) Run(run func()) *MockXDGPaths_CacheDir_Call {
627413526 _c.Call.Run(func(args mock.Arguments) {
627513527 run()
627613528 })
627713529 return _c
627813530 }
627913531
6280-func (_c *MockDevToolsOpener_OpenDevTools_Call) Return() *MockDevToolsOpener_OpenDevTools_Call {
6281- _c.Call.Return()
13532+func (_c *MockXDGPaths_CacheDir_Call) Return(s string, err error) *MockXDGPaths_CacheDir_Call {
13533+ _c.Call.Return(s, err)
628213534 return _c
628313535 }
628413536
6285-func (_c *MockDevToolsOpener_OpenDevTools_Call) RunAndReturn(run func()) *MockDevToolsOpener_OpenDevTools_Call {
6286- _c.Run(run)
13537+func (_c *MockXDGPaths_CacheDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_CacheDir_Call {
13538+ _c.Call.Return(run)
628713539 return _c
628813540 }
628913541
6290-// 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
13543+func (_mock *MockXDGPaths) ConfigDir() (string, error) {
13544+ ret := _mock.Called()
631213545
6313-func (_m *MockPrinter) EXPECT() *MockPrinter_Expecter {
6314- return &MockPrinter_Expecter{mock: &_m.Mock}
6315-}
13546+ if len(ret) == 0 {
13547+ panic("no return value specified for ConfigDir")
13548+ }
631613549
6317-// PrintPage provides a mock function for the type MockPrinter
6318-func (_mock *MockPrinter) PrintPage() {
6319- _mock.Called()
6320- return
13550+ var r0 string
13551+ var r1 error
13552+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13553+ return returnFunc()
13554+ }
13555+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13556+ r0 = returnFunc()
13557+ } else {
13558+ r0 = ret.Get(0).(string)
13559+ }
13560+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13561+ r1 = returnFunc()
13562+ } else {
13563+ r1 = ret.Error(1)
13564+ }
13565+ return r0, r1
632113566 }
632213567
6323-// MockPrinter_PrintPage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrintPage'
6324-type MockPrinter_PrintPage_Call struct {
13568+// MockXDGPaths_ConfigDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigDir'
13569+type MockXDGPaths_ConfigDir_Call struct {
632513570 *mock.Call
632613571 }
632713572
6328-// PrintPage is a helper method to define mock.On call
6329-func (_e *MockPrinter_Expecter) PrintPage() *MockPrinter_PrintPage_Call {
6330- return &MockPrinter_PrintPage_Call{Call: _e.mock.On("PrintPage")}
13573+// ConfigDir is a helper method to define mock.On call
13574+func (_e *MockXDGPaths_Expecter) ConfigDir() *MockXDGPaths_ConfigDir_Call {
13575+ return &MockXDGPaths_ConfigDir_Call{Call: _e.mock.On("ConfigDir")}
633113576 }
633213577
6333-func (_c *MockPrinter_PrintPage_Call) Run(run func()) *MockPrinter_PrintPage_Call {
13578+func (_c *MockXDGPaths_ConfigDir_Call) Run(run func()) *MockXDGPaths_ConfigDir_Call {
633413579 _c.Call.Run(func(args mock.Arguments) {
633513580 run()
633613581 })
633713582 return _c
633813583 }
633913584
6340-func (_c *MockPrinter_PrintPage_Call) Return() *MockPrinter_PrintPage_Call {
6341- _c.Call.Return()
13585+func (_c *MockXDGPaths_ConfigDir_Call) Return(s string, err error) *MockXDGPaths_ConfigDir_Call {
13586+ _c.Call.Return(s, err)
634213587 return _c
634313588 }
634413589
6345-func (_c *MockPrinter_PrintPage_Call) RunAndReturn(run func()) *MockPrinter_PrintPage_Call {
6346- _c.Run(run)
13590+func (_c *MockXDGPaths_ConfigDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_ConfigDir_Call {
13591+ _c.Call.Return(run)
634713592 return _c
634813593 }
634913594
6350-// 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
13596+func (_mock *MockXDGPaths) DataDir() (string, error) {
13597+ ret := _mock.Called()
635813598
6359- t.Cleanup(func() { mock.AssertExpectations(t) })
13599+ if len(ret) == 0 {
13600+ panic("no return value specified for DataDir")
13601+ }
636013602
6361- return mock
13603+ var r0 string
13604+ var r1 error
13605+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13606+ return returnFunc()
13607+ }
13608+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13609+ r0 = returnFunc()
13610+ } else {
13611+ r0 = ret.Get(0).(string)
13612+ }
13613+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13614+ r1 = returnFunc()
13615+ } else {
13616+ r1 = ret.Error(1)
13617+ }
13618+ return r0, r1
636213619 }
636313620
6364-// MockPopupCapable is an autogenerated mock type for the PopupCapable type
6365-type MockPopupCapable struct {
6366- mock.Mock
13621+// MockXDGPaths_DataDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DataDir'
13622+type MockXDGPaths_DataDir_Call struct {
13623+ *mock.Call
636713624 }
636813625
6369-type MockPopupCapable_Expecter struct {
6370- mock *mock.Mock
13626+// DataDir is a helper method to define mock.On call
13627+func (_e *MockXDGPaths_Expecter) DataDir() *MockXDGPaths_DataDir_Call {
13628+ return &MockXDGPaths_DataDir_Call{Call: _e.mock.On("DataDir")}
637113629 }
637213630
6373-func (_m *MockPopupCapable) EXPECT() *MockPopupCapable_Expecter {
6374- return &MockPopupCapable_Expecter{mock: &_m.Mock}
13631+func (_c *MockXDGPaths_DataDir_Call) Run(run func()) *MockXDGPaths_DataDir_Call {
13632+ _c.Call.Run(func(args mock.Arguments) {
13633+ run()
13634+ })
13635+ return _c
637513636 }
637613637
6377-// SetOnClose provides a mock function for the type MockPopupCapable
6378-func (_mock *MockPopupCapable) SetOnClose(fn func()) {
6379- _mock.Called(fn)
6380- return
13638+func (_c *MockXDGPaths_DataDir_Call) Return(s string, err error) *MockXDGPaths_DataDir_Call {
13639+ _c.Call.Return(s, err)
13640+ return _c
13641+}
13642+
13643+func (_c *MockXDGPaths_DataDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_DataDir_Call {
13644+ _c.Call.Return(run)
13645+ return _c
13646+}
13647+
13648+// DownloadDir provides a mock function for the type MockXDGPaths
13649+func (_mock *MockXDGPaths) DownloadDir() (string, error) {
13650+ ret := _mock.Called()
13651+
13652+ if len(ret) == 0 {
13653+ panic("no return value specified for DownloadDir")
13654+ }
13655+
13656+ var r0 string
13657+ var r1 error
13658+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13659+ return returnFunc()
13660+ }
13661+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13662+ r0 = returnFunc()
13663+ } else {
13664+ r0 = ret.Get(0).(string)
13665+ }
13666+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13667+ r1 = returnFunc()
13668+ } else {
13669+ r1 = ret.Error(1)
13670+ }
13671+ return r0, r1
638113672 }
638213673
6383-// MockPopupCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'
6384-type MockPopupCapable_SetOnClose_Call struct {
13674+// MockXDGPaths_DownloadDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadDir'
13675+type MockXDGPaths_DownloadDir_Call struct {
638513676 *mock.Call
638613677 }
638713678
6388-// SetOnClose is a helper method to define mock.On call
6389-// - fn func()
6390-func (_e *MockPopupCapable_Expecter) SetOnClose(fn interface{}) *MockPopupCapable_SetOnClose_Call {
6391- return &MockPopupCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}
13679+// DownloadDir is a helper method to define mock.On call
13680+func (_e *MockXDGPaths_Expecter) DownloadDir() *MockXDGPaths_DownloadDir_Call {
13681+ return &MockXDGPaths_DownloadDir_Call{Call: _e.mock.On("DownloadDir")}
639213682 }
639313683
6394-func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
13684+func (_c *MockXDGPaths_DownloadDir_Call) Run(run func()) *MockXDGPaths_DownloadDir_Call {
639513685 _c.Call.Run(func(args mock.Arguments) {
6396- var arg0 func()
6397- if args[0] != nil {
6398- arg0 = args[0].(func())
6399- }
6400- run(
6401- arg0,
6402- )
13686+ run()
640313687 })
640413688 return _c
640513689 }
640613690
6407-func (_c *MockPopupCapable_SetOnClose_Call) Return() *MockPopupCapable_SetOnClose_Call {
6408- _c.Call.Return()
13691+func (_c *MockXDGPaths_DownloadDir_Call) Return(s string, err error) *MockXDGPaths_DownloadDir_Call {
13692+ _c.Call.Return(s, err)
640913693 return _c
641013694 }
641113695
6412-func (_c *MockPopupCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
6413- _c.Run(run)
13696+func (_c *MockXDGPaths_DownloadDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_DownloadDir_Call {
13697+ _c.Call.Return(run)
641413698 return _c
641513699 }
641613700
6417-// SetOnReadyToShow provides a mock function for the type MockPopupCapable
6418-func (_mock *MockPopupCapable) SetOnReadyToShow(fn func()) {
6419- _mock.Called(fn)
6420- return
13701+// FilterCacheDir provides a mock function for the type MockXDGPaths
13702+func (_mock *MockXDGPaths) FilterCacheDir() (string, error) {
13703+ ret := _mock.Called()
13704+
13705+ if len(ret) == 0 {
13706+ panic("no return value specified for FilterCacheDir")
13707+ }
13708+
13709+ var r0 string
13710+ var r1 error
13711+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13712+ return returnFunc()
13713+ }
13714+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13715+ r0 = returnFunc()
13716+ } else {
13717+ r0 = ret.Get(0).(string)
13718+ }
13719+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13720+ r1 = returnFunc()
13721+ } else {
13722+ r1 = ret.Error(1)
13723+ }
13724+ return r0, r1
642113725 }
642213726
6423-// MockPopupCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'
6424-type MockPopupCapable_SetOnReadyToShow_Call struct {
13727+// MockXDGPaths_FilterCacheDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterCacheDir'
13728+type MockXDGPaths_FilterCacheDir_Call struct {
642513729 *mock.Call
642613730 }
642713731
6428-// SetOnReadyToShow is a helper method to define mock.On call
6429-// - fn func()
6430-func (_e *MockPopupCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupCapable_SetOnReadyToShow_Call {
6431- return &MockPopupCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}
13732+// FilterCacheDir is a helper method to define mock.On call
13733+func (_e *MockXDGPaths_Expecter) FilterCacheDir() *MockXDGPaths_FilterCacheDir_Call {
13734+ return &MockXDGPaths_FilterCacheDir_Call{Call: _e.mock.On("FilterCacheDir")}
643213735 }
643313736
6434-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
13737+func (_c *MockXDGPaths_FilterCacheDir_Call) Run(run func()) *MockXDGPaths_FilterCacheDir_Call {
643513738 _c.Call.Run(func(args mock.Arguments) {
6436- var arg0 func()
6437- if args[0] != nil {
6438- arg0 = args[0].(func())
6439- }
6440- run(
6441- arg0,
6442- )
13739+ run()
644313740 })
644413741 return _c
644513742 }
644613743
6447-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Return() *MockPopupCapable_SetOnReadyToShow_Call {
6448- _c.Call.Return()
13744+func (_c *MockXDGPaths_FilterCacheDir_Call) Return(s string, err error) *MockXDGPaths_FilterCacheDir_Call {
13745+ _c.Call.Return(s, err)
644913746 return _c
645013747 }
645113748
6452-func (_c *MockPopupCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
6453- _c.Run(run)
13749+func (_c *MockXDGPaths_FilterCacheDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_FilterCacheDir_Call {
13750+ _c.Call.Return(run)
645413751 return _c
645513752 }
645613753
6457-// Show provides a mock function for the type MockPopupCapable
6458-func (_mock *MockPopupCapable) Show() {
6459- _mock.Called()
6460- return
13754+// FilterJSONDir provides a mock function for the type MockXDGPaths
13755+func (_mock *MockXDGPaths) FilterJSONDir() (string, error) {
13756+ ret := _mock.Called()
13757+
13758+ if len(ret) == 0 {
13759+ panic("no return value specified for FilterJSONDir")
13760+ }
13761+
13762+ var r0 string
13763+ var r1 error
13764+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13765+ return returnFunc()
13766+ }
13767+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13768+ r0 = returnFunc()
13769+ } else {
13770+ r0 = ret.Get(0).(string)
13771+ }
13772+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13773+ r1 = returnFunc()
13774+ } else {
13775+ r1 = ret.Error(1)
13776+ }
13777+ return r0, r1
646113778 }
646213779
6463-// MockPopupCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
6464-type MockPopupCapable_Show_Call struct {
13780+// MockXDGPaths_FilterJSONDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterJSONDir'
13781+type MockXDGPaths_FilterJSONDir_Call struct {
646513782 *mock.Call
646613783 }
646713784
6468-// Show is a helper method to define mock.On call
6469-func (_e *MockPopupCapable_Expecter) Show() *MockPopupCapable_Show_Call {
6470- return &MockPopupCapable_Show_Call{Call: _e.mock.On("Show")}
13785+// FilterJSONDir is a helper method to define mock.On call
13786+func (_e *MockXDGPaths_Expecter) FilterJSONDir() *MockXDGPaths_FilterJSONDir_Call {
13787+ return &MockXDGPaths_FilterJSONDir_Call{Call: _e.mock.On("FilterJSONDir")}
647113788 }
647213789
6473-func (_c *MockPopupCapable_Show_Call) Run(run func()) *MockPopupCapable_Show_Call {
13790+func (_c *MockXDGPaths_FilterJSONDir_Call) Run(run func()) *MockXDGPaths_FilterJSONDir_Call {
647413791 _c.Call.Run(func(args mock.Arguments) {
647513792 run()
647613793 })
647713794 return _c
647813795 }
647913796
6480-func (_c *MockPopupCapable_Show_Call) Return() *MockPopupCapable_Show_Call {
6481- _c.Call.Return()
13797+func (_c *MockXDGPaths_FilterJSONDir_Call) Return(s string, err error) *MockXDGPaths_FilterJSONDir_Call {
13798+ _c.Call.Return(s, err)
648213799 return _c
648313800 }
648413801
6485-func (_c *MockPopupCapable_Show_Call) RunAndReturn(run func()) *MockPopupCapable_Show_Call {
6486- _c.Run(run)
13802+func (_c *MockXDGPaths_FilterJSONDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_FilterJSONDir_Call {
13803+ _c.Call.Return(run)
648713804 return _c
648813805 }
648913806
6490-// 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
13808+func (_mock *MockXDGPaths) FilterStoreDir() (string, error) {
13809+ ret := _mock.Called()
651213810
6513-func (_m *MockOAuthCallbackCapable) EXPECT() *MockOAuthCallbackCapable_Expecter {
6514- return &MockOAuthCallbackCapable_Expecter{mock: &_m.Mock}
6515-}
13811+ if len(ret) == 0 {
13812+ panic("no return value specified for FilterStoreDir")
13813+ }
651613814
6517-// AddCloseCallback provides a mock function for the type MockOAuthCallbackCapable
6518-func (_mock *MockOAuthCallbackCapable) AddCloseCallback(fn func()) {
6519- _mock.Called(fn)
6520- return
13815+ var r0 string
13816+ var r1 error
13817+ 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
652113831 }
652213832
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 {
652513835 *mock.Call
652613836 }
652713837
6528-// AddCloseCallback is a helper method to define mock.On call
6529-// - fn func()
6530-func (_e *MockOAuthCallbackCapable_Expecter) AddCloseCallback(fn interface{}) *MockOAuthCallbackCapable_AddCloseCallback_Call {
6531- return &MockOAuthCallbackCapable_AddCloseCallback_Call{Call: _e.mock.On("AddCloseCallback", fn)}
13838+// FilterStoreDir is a helper method to define mock.On call
13839+func (_e *MockXDGPaths_Expecter) FilterStoreDir() *MockXDGPaths_FilterStoreDir_Call {
13840+ return &MockXDGPaths_FilterStoreDir_Call{Call: _e.mock.On("FilterStoreDir")}
653213841 }
653313842
6534-func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) Run(run func(fn func())) *MockOAuthCallbackCapable_AddCloseCallback_Call {
13843+func (_c *MockXDGPaths_FilterStoreDir_Call) Run(run func()) *MockXDGPaths_FilterStoreDir_Call {
653513844 _c.Call.Run(func(args mock.Arguments) {
6536- var arg0 func()
6537- if args[0] != nil {
6538- arg0 = args[0].(func())
6539- }
6540- run(
6541- arg0,
6542- )
13845+ run()
654313846 })
654413847 return _c
654513848 }
654613849
6547-func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) Return() *MockOAuthCallbackCapable_AddCloseCallback_Call {
6548- _c.Call.Return()
13850+func (_c *MockXDGPaths_FilterStoreDir_Call) Return(s string, err error) *MockXDGPaths_FilterStoreDir_Call {
13851+ _c.Call.Return(s, err)
654913852 return _c
655013853 }
655113854
6552-func (_c *MockOAuthCallbackCapable_AddCloseCallback_Call) RunAndReturn(run func(fn func())) *MockOAuthCallbackCapable_AddCloseCallback_Call {
6553- _c.Run(run)
13855+func (_c *MockXDGPaths_FilterStoreDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_FilterStoreDir_Call {
13856+ _c.Call.Return(run)
655413857 return _c
655513858 }
655613859
6557-// AddNavigationCallback provides a mock function for the type MockOAuthCallbackCapable
6558-func (_mock *MockOAuthCallbackCapable) AddNavigationCallback(fn func(uri string)) {
6559- _mock.Called(fn)
6560- return
13860+// ManDir provides a mock function for the type MockXDGPaths
13861+func (_mock *MockXDGPaths) ManDir() (string, error) {
13862+ ret := _mock.Called()
13863+
13864+ if len(ret) == 0 {
13865+ panic("no return value specified for ManDir")
13866+ }
13867+
13868+ var r0 string
13869+ var r1 error
13870+ 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
656113884 }
656213885
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 {
656513888 *mock.Call
656613889 }
656713890
6568-// AddNavigationCallback is a helper method to define mock.On call
6569-// - fn func(uri string)
6570-func (_e *MockOAuthCallbackCapable_Expecter) AddNavigationCallback(fn interface{}) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
6571- return &MockOAuthCallbackCapable_AddNavigationCallback_Call{Call: _e.mock.On("AddNavigationCallback", fn)}
13891+// ManDir is a helper method to define mock.On call
13892+func (_e *MockXDGPaths_Expecter) ManDir() *MockXDGPaths_ManDir_Call {
13893+ return &MockXDGPaths_ManDir_Call{Call: _e.mock.On("ManDir")}
657213894 }
657313895
6574-func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) Run(run func(fn func(uri string))) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
13896+func (_c *MockXDGPaths_ManDir_Call) Run(run func()) *MockXDGPaths_ManDir_Call {
657513897 _c.Call.Run(func(args mock.Arguments) {
6576- var arg0 func(uri string)
6577- if args[0] != nil {
6578- arg0 = args[0].(func(uri string))
6579- }
6580- run(
6581- arg0,
6582- )
13898+ run()
658313899 })
658413900 return _c
658513901 }
658613902
6587-func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) Return() *MockOAuthCallbackCapable_AddNavigationCallback_Call {
6588- _c.Call.Return()
13903+func (_c *MockXDGPaths_ManDir_Call) Return(s string, err error) *MockXDGPaths_ManDir_Call {
13904+ _c.Call.Return(s, err)
658913905 return _c
659013906 }
659113907
6592-func (_c *MockOAuthCallbackCapable_AddNavigationCallback_Call) RunAndReturn(run func(fn func(uri string))) *MockOAuthCallbackCapable_AddNavigationCallback_Call {
6593- _c.Run(run)
13908+func (_c *MockXDGPaths_ManDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_ManDir_Call {
13909+ _c.Call.Return(run)
659413910 return _c
659513911 }
659613912
6597-// Close provides a mock function for the type MockOAuthCallbackCapable
6598-func (_mock *MockOAuthCallbackCapable) Close() {
6599- _mock.Called()
6600- return
13913+// StateDir provides a mock function for the type MockXDGPaths
13914+func (_mock *MockXDGPaths) StateDir() (string, error) {
13915+ ret := _mock.Called()
13916+
13917+ if len(ret) == 0 {
13918+ panic("no return value specified for StateDir")
13919+ }
13920+
13921+ var r0 string
13922+ var r1 error
13923+ if returnFunc, ok := ret.Get(0).(func() (string, error)); ok {
13924+ return returnFunc()
13925+ }
13926+ if returnFunc, ok := ret.Get(0).(func() string); ok {
13927+ r0 = returnFunc()
13928+ } else {
13929+ r0 = ret.Get(0).(string)
13930+ }
13931+ if returnFunc, ok := ret.Get(1).(func() error); ok {
13932+ r1 = returnFunc()
13933+ } else {
13934+ r1 = ret.Error(1)
13935+ }
13936+ return r0, r1
660113937 }
660213938
6603-// MockOAuthCallbackCapable_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
6604-type MockOAuthCallbackCapable_Close_Call struct {
13939+// MockXDGPaths_StateDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StateDir'
13940+type MockXDGPaths_StateDir_Call struct {
660513941 *mock.Call
660613942 }
660713943
6608-// Close is a helper method to define mock.On call
6609-func (_e *MockOAuthCallbackCapable_Expecter) Close() *MockOAuthCallbackCapable_Close_Call {
6610- return &MockOAuthCallbackCapable_Close_Call{Call: _e.mock.On("Close")}
13944+// StateDir is a helper method to define mock.On call
13945+func (_e *MockXDGPaths_Expecter) StateDir() *MockXDGPaths_StateDir_Call {
13946+ return &MockXDGPaths_StateDir_Call{Call: _e.mock.On("StateDir")}
661113947 }
661213948
6613-func (_c *MockOAuthCallbackCapable_Close_Call) Run(run func()) *MockOAuthCallbackCapable_Close_Call {
13949+func (_c *MockXDGPaths_StateDir_Call) Run(run func()) *MockXDGPaths_StateDir_Call {
661413950 _c.Call.Run(func(args mock.Arguments) {
661513951 run()
661613952 })
661713953 return _c
661813954 }
661913955
6620-func (_c *MockOAuthCallbackCapable_Close_Call) Return() *MockOAuthCallbackCapable_Close_Call {
6621- _c.Call.Return()
13956+func (_c *MockXDGPaths_StateDir_Call) Return(s string, err error) *MockXDGPaths_StateDir_Call {
13957+ _c.Call.Return(s, err)
662213958 return _c
662313959 }
662413960
6625-func (_c *MockOAuthCallbackCapable_Close_Call) RunAndReturn(run func()) *MockOAuthCallbackCapable_Close_Call {
6626- _c.Run(run)
13961+func (_c *MockXDGPaths_StateDir_Call) RunAndReturn(run func() (string, error)) *MockXDGPaths_StateDir_Call {
13962+ _c.Call.Return(run)
662713963 return _c
662813964 }
A internal/bootstrap/engine_test.go +25 -0
@@ -0,0 +1,25 @@
1+package bootstrap
2+
3+import (
4+ "context"
5+ "testing"
6+
7+ "github.com/bnema/dumber/internal/infrastructure/config"
8+ "github.com/stretchr/testify/require"
9+)
10+
11+func TestBuildEngine_UnknownType(t *testing.T) {
12+ cfg := config.DefaultConfig()
13+ cfg.Engine.Type = "unknown"
14+ _, err := BuildEngine(EngineInput{Config: cfg, Ctx: context.Background()})
15+ require.Error(t, err)
16+ require.Contains(t, err.Error(), "unknown engine type")
17+}
18+
19+func TestBuildEngine_CEF_NotImplemented(t *testing.T) {
20+ cfg := config.DefaultConfig()
21+ cfg.Engine.Type = "cef"
22+ _, err := BuildEngine(EngineInput{Config: cfg, Ctx: context.Background()})
23+ require.Error(t, err)
24+ require.Contains(t, err.Error(), "not yet implemented")
25+}
M internal/infrastructure/webkit/download_handler_test.go +1 -1
@@ -16,7 +16,7 @@ func TestNewDownloadHandler(t *testing.T) {
1616 assert.NotNil(t, handler)
1717 assert.Equal(t, "/tmp/downloads", handler.downloadPath)
1818 assert.Nil(t, handler.eventHandler)
19- assert.NotNil(t, handler.prepareDownloadUC)
19+ assert.NotNil(t, handler.preparer)
2020 })
2121
2222 t.Run("creates handler with custom path", func(t *testing.T) {
A internal/infrastructure/webkit/engine_runtime_test.go +53 -0
@@ -0,0 +1,53 @@
1+package webkit
2+
3+import (
4+ "context"
5+ "testing"
6+
7+ "github.com/bnema/dumber/internal/application/port"
8+ "github.com/bnema/dumber/internal/infrastructure/config"
9+ "github.com/stretchr/testify/require"
10+)
11+
12+func TestEngine_UpdateSettings_WrongType(t *testing.T) {
13+ e := &Engine{}
14+ err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{Raw: "wrong"})
15+ require.Error(t, err)
16+ require.Contains(t, err.Error(), "expected *config.Config")
17+}
18+
19+func TestEngine_UpdateSettings_NilSettings(t *testing.T) {
20+ // settings is nil — should not panic, just be a no-op.
21+ e := &Engine{}
22+ // Use a nil *config.Config to pass the type assertion.
23+ var cfg *config.Config
24+ err := e.UpdateSettings(context.Background(), port.EngineSettingsUpdate{Raw: cfg})
25+ require.NoError(t, err)
26+}
27+
28+func TestEngine_RegisterHandlers_NilRouter(t *testing.T) {
29+ e := &Engine{}
30+ err := e.RegisterHandlers(context.Background(), port.HandlerDependencies{})
31+ require.Error(t, err)
32+ require.Contains(t, err.Error(), "message router not initialized")
33+}
34+
35+func TestEngine_RegisterAccentHandlers_NilRouter(t *testing.T) {
36+ e := &Engine{}
37+ err := e.RegisterAccentHandlers(context.Background(), nil)
38+ require.Error(t, err)
39+ require.Contains(t, err.Error(), "message router not initialized")
40+}
41+
42+func TestEngine_ConfigureDownloads_NilContext(t *testing.T) {
43+ e := &Engine{}
44+ err := e.ConfigureDownloads(context.Background(), "/tmp", nil, nil)
45+ require.Error(t, err)
46+ require.Contains(t, err.Error(), "webkit context not initialized")
47+}
48+
49+func TestEngine_Close_NilPool(t *testing.T) {
50+ e := &Engine{}
51+ err := e.Close()
52+ require.NoError(t, err)
53+}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close