|
|
@@ -113,8 +113,8 @@ func (_c *mockAuthService_BUCPChallenge_Call) RunAndReturn(run func(ctx context.
|
|
|
}
|
|
|
|
|
|
// BUCPLogin provides a mock function for the type mockAuthService
|
|
|
-func (_mock *mockAuthService) BUCPLogin(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.SNACMessage, error) {
|
|
|
- ret := _mock.Called(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+func (_mock *mockAuthService) BUCPLogin(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string) (wire.SNACMessage, error) {
|
|
|
+ ret := _mock.Called(ctx, inBody, advertisedHost)
|
|
|
|
|
|
if len(ret) == 0 {
|
|
|
panic("no return value specified for BUCPLogin")
|
|
|
@@ -122,16 +122,16 @@ func (_mock *mockAuthService) BUCPLogin(ctx context.Context, inBody wire.SNAC_0x
|
|
|
|
|
|
var r0 wire.SNACMessage
|
|
|
var r1 error
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) (wire.SNACMessage, error)); ok {
|
|
|
- return returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) (wire.SNACMessage, error)); ok {
|
|
|
+ return returnFunc(ctx, inBody, advertisedHost)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) wire.SNACMessage); ok {
|
|
|
- r0 = returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) wire.SNACMessage); ok {
|
|
|
+ r0 = returnFunc(ctx, inBody, advertisedHost)
|
|
|
} else {
|
|
|
r0 = ret.Get(0).(wire.SNACMessage)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) error); ok {
|
|
|
- r1 = returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) error); ok {
|
|
|
+ r1 = returnFunc(ctx, inBody, advertisedHost)
|
|
|
} else {
|
|
|
r1 = ret.Error(1)
|
|
|
}
|
|
|
@@ -146,13 +146,12 @@ type mockAuthService_BUCPLogin_Call struct {
|
|
|
// BUCPLogin is a helper method to define mock.On call
|
|
|
// - ctx context.Context
|
|
|
// - inBody wire.SNAC_0x17_0x02_BUCPLoginRequest
|
|
|
-// - newUserFn func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
// - advertisedHost string
|
|
|
-func (_e *mockAuthService_Expecter) BUCPLogin(ctx interface{}, inBody interface{}, newUserFn interface{}, advertisedHost interface{}) *mockAuthService_BUCPLogin_Call {
|
|
|
- return &mockAuthService_BUCPLogin_Call{Call: _e.mock.On("BUCPLogin", ctx, inBody, newUserFn, advertisedHost)}
|
|
|
+func (_e *mockAuthService_Expecter) BUCPLogin(ctx interface{}, inBody interface{}, advertisedHost interface{}) *mockAuthService_BUCPLogin_Call {
|
|
|
+ return &mockAuthService_BUCPLogin_Call{Call: _e.mock.On("BUCPLogin", ctx, inBody, advertisedHost)}
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string)) *mockAuthService_BUCPLogin_Call {
|
|
|
+func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string)) *mockAuthService_BUCPLogin_Call {
|
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
|
var arg0 context.Context
|
|
|
if args[0] != nil {
|
|
|
@@ -162,19 +161,14 @@ func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, inBo
|
|
|
if args[1] != nil {
|
|
|
arg1 = args[1].(wire.SNAC_0x17_0x02_BUCPLoginRequest)
|
|
|
}
|
|
|
- var arg2 func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
+ var arg2 string
|
|
|
if args[2] != nil {
|
|
|
- arg2 = args[2].(func(screenName state.DisplayScreenName) (state.User, error))
|
|
|
- }
|
|
|
- var arg3 string
|
|
|
- if args[3] != nil {
|
|
|
- arg3 = args[3].(string)
|
|
|
+ arg2 = args[2].(string)
|
|
|
}
|
|
|
run(
|
|
|
arg0,
|
|
|
arg1,
|
|
|
arg2,
|
|
|
- arg3,
|
|
|
)
|
|
|
})
|
|
|
return _c
|
|
|
@@ -185,7 +179,7 @@ func (_c *mockAuthService_BUCPLogin_Call) Return(sNACMessage wire.SNACMessage, e
|
|
|
return _c
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_BUCPLogin_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.SNACMessage, error)) *mockAuthService_BUCPLogin_Call {
|
|
|
+func (_c *mockAuthService_BUCPLogin_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string) (wire.SNACMessage, error)) *mockAuthService_BUCPLogin_Call {
|
|
|
_c.Call.Return(run)
|
|
|
return _c
|
|
|
}
|
|
|
@@ -251,8 +245,8 @@ func (_c *mockAuthService_CrackCookie_Call) RunAndReturn(run func(authCookie []b
|
|
|
}
|
|
|
|
|
|
// FLAPLogin provides a mock function for the type mockAuthService
|
|
|
-func (_mock *mockAuthService) FLAPLogin(ctx context.Context, inFrame wire.FLAPSignonFrame, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.TLVRestBlock, error) {
|
|
|
- ret := _mock.Called(ctx, inFrame, newUserFn, advertisedHost)
|
|
|
+func (_mock *mockAuthService) FLAPLogin(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string) (wire.TLVRestBlock, error) {
|
|
|
+ ret := _mock.Called(ctx, inFrame, advertisedHost)
|
|
|
|
|
|
if len(ret) == 0 {
|
|
|
panic("no return value specified for FLAPLogin")
|
|
|
@@ -260,16 +254,16 @@ func (_mock *mockAuthService) FLAPLogin(ctx context.Context, inFrame wire.FLAPSi
|
|
|
|
|
|
var r0 wire.TLVRestBlock
|
|
|
var r1 error
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(screenName state.DisplayScreenName) (state.User, error), string) (wire.TLVRestBlock, error)); ok {
|
|
|
- return returnFunc(ctx, inFrame, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, string) (wire.TLVRestBlock, error)); ok {
|
|
|
+ return returnFunc(ctx, inFrame, advertisedHost)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(screenName state.DisplayScreenName) (state.User, error), string) wire.TLVRestBlock); ok {
|
|
|
- r0 = returnFunc(ctx, inFrame, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, string) wire.TLVRestBlock); ok {
|
|
|
+ r0 = returnFunc(ctx, inFrame, advertisedHost)
|
|
|
} else {
|
|
|
r0 = ret.Get(0).(wire.TLVRestBlock)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.FLAPSignonFrame, func(screenName state.DisplayScreenName) (state.User, error), string) error); ok {
|
|
|
- r1 = returnFunc(ctx, inFrame, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(1).(func(context.Context, wire.FLAPSignonFrame, string) error); ok {
|
|
|
+ r1 = returnFunc(ctx, inFrame, advertisedHost)
|
|
|
} else {
|
|
|
r1 = ret.Error(1)
|
|
|
}
|
|
|
@@ -284,13 +278,12 @@ type mockAuthService_FLAPLogin_Call struct {
|
|
|
// FLAPLogin is a helper method to define mock.On call
|
|
|
// - ctx context.Context
|
|
|
// - inFrame wire.FLAPSignonFrame
|
|
|
-// - newUserFn func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
// - advertisedHost string
|
|
|
-func (_e *mockAuthService_Expecter) FLAPLogin(ctx interface{}, inFrame interface{}, newUserFn interface{}, advertisedHost interface{}) *mockAuthService_FLAPLogin_Call {
|
|
|
- return &mockAuthService_FLAPLogin_Call{Call: _e.mock.On("FLAPLogin", ctx, inFrame, newUserFn, advertisedHost)}
|
|
|
+func (_e *mockAuthService_Expecter) FLAPLogin(ctx interface{}, inFrame interface{}, advertisedHost interface{}) *mockAuthService_FLAPLogin_Call {
|
|
|
+ return &mockAuthService_FLAPLogin_Call{Call: _e.mock.On("FLAPLogin", ctx, inFrame, advertisedHost)}
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string)) *mockAuthService_FLAPLogin_Call {
|
|
|
+func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string)) *mockAuthService_FLAPLogin_Call {
|
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
|
var arg0 context.Context
|
|
|
if args[0] != nil {
|
|
|
@@ -300,19 +293,14 @@ func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, inFr
|
|
|
if args[1] != nil {
|
|
|
arg1 = args[1].(wire.FLAPSignonFrame)
|
|
|
}
|
|
|
- var arg2 func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
+ var arg2 string
|
|
|
if args[2] != nil {
|
|
|
- arg2 = args[2].(func(screenName state.DisplayScreenName) (state.User, error))
|
|
|
- }
|
|
|
- var arg3 string
|
|
|
- if args[3] != nil {
|
|
|
- arg3 = args[3].(string)
|
|
|
+ arg2 = args[2].(string)
|
|
|
}
|
|
|
run(
|
|
|
arg0,
|
|
|
arg1,
|
|
|
arg2,
|
|
|
- arg3,
|
|
|
)
|
|
|
})
|
|
|
return _c
|
|
|
@@ -323,14 +311,14 @@ func (_c *mockAuthService_FLAPLogin_Call) Return(tLVRestBlock wire.TLVRestBlock,
|
|
|
return _c
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_FLAPLogin_Call) RunAndReturn(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.TLVRestBlock, error)) *mockAuthService_FLAPLogin_Call {
|
|
|
+func (_c *mockAuthService_FLAPLogin_Call) RunAndReturn(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string) (wire.TLVRestBlock, error)) *mockAuthService_FLAPLogin_Call {
|
|
|
_c.Call.Return(run)
|
|
|
return _c
|
|
|
}
|
|
|
|
|
|
// KerberosLogin provides a mock function for the type mockAuthService
|
|
|
-func (_mock *mockAuthService) KerberosLogin(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.SNACMessage, error) {
|
|
|
- ret := _mock.Called(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+func (_mock *mockAuthService) KerberosLogin(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, advertisedHost string) (wire.SNACMessage, error) {
|
|
|
+ ret := _mock.Called(ctx, inBody, advertisedHost)
|
|
|
|
|
|
if len(ret) == 0 {
|
|
|
panic("no return value specified for KerberosLogin")
|
|
|
@@ -338,16 +326,16 @@ func (_mock *mockAuthService) KerberosLogin(ctx context.Context, inBody wire.SNA
|
|
|
|
|
|
var r0 wire.SNACMessage
|
|
|
var r1 error
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) (wire.SNACMessage, error)); ok {
|
|
|
- return returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, string) (wire.SNACMessage, error)); ok {
|
|
|
+ return returnFunc(ctx, inBody, advertisedHost)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) wire.SNACMessage); ok {
|
|
|
- r0 = returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, string) wire.SNACMessage); ok {
|
|
|
+ r0 = returnFunc(ctx, inBody, advertisedHost)
|
|
|
} else {
|
|
|
r0 = ret.Get(0).(wire.SNACMessage)
|
|
|
}
|
|
|
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(screenName state.DisplayScreenName) (state.User, error), string) error); ok {
|
|
|
- r1 = returnFunc(ctx, inBody, newUserFn, advertisedHost)
|
|
|
+ if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, string) error); ok {
|
|
|
+ r1 = returnFunc(ctx, inBody, advertisedHost)
|
|
|
} else {
|
|
|
r1 = ret.Error(1)
|
|
|
}
|
|
|
@@ -362,13 +350,12 @@ type mockAuthService_KerberosLogin_Call struct {
|
|
|
// KerberosLogin is a helper method to define mock.On call
|
|
|
// - ctx context.Context
|
|
|
// - inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest
|
|
|
-// - newUserFn func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
// - advertisedHost string
|
|
|
-func (_e *mockAuthService_Expecter) KerberosLogin(ctx interface{}, inBody interface{}, newUserFn interface{}, advertisedHost interface{}) *mockAuthService_KerberosLogin_Call {
|
|
|
- return &mockAuthService_KerberosLogin_Call{Call: _e.mock.On("KerberosLogin", ctx, inBody, newUserFn, advertisedHost)}
|
|
|
+func (_e *mockAuthService_Expecter) KerberosLogin(ctx interface{}, inBody interface{}, advertisedHost interface{}) *mockAuthService_KerberosLogin_Call {
|
|
|
+ return &mockAuthService_KerberosLogin_Call{Call: _e.mock.On("KerberosLogin", ctx, inBody, advertisedHost)}
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_KerberosLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string)) *mockAuthService_KerberosLogin_Call {
|
|
|
+func (_c *mockAuthService_KerberosLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, advertisedHost string)) *mockAuthService_KerberosLogin_Call {
|
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
|
var arg0 context.Context
|
|
|
if args[0] != nil {
|
|
|
@@ -378,19 +365,14 @@ func (_c *mockAuthService_KerberosLogin_Call) Run(run func(ctx context.Context,
|
|
|
if args[1] != nil {
|
|
|
arg1 = args[1].(wire.SNAC_0x050C_0x0002_KerberosLoginRequest)
|
|
|
}
|
|
|
- var arg2 func(screenName state.DisplayScreenName) (state.User, error)
|
|
|
+ var arg2 string
|
|
|
if args[2] != nil {
|
|
|
- arg2 = args[2].(func(screenName state.DisplayScreenName) (state.User, error))
|
|
|
- }
|
|
|
- var arg3 string
|
|
|
- if args[3] != nil {
|
|
|
- arg3 = args[3].(string)
|
|
|
+ arg2 = args[2].(string)
|
|
|
}
|
|
|
run(
|
|
|
arg0,
|
|
|
arg1,
|
|
|
arg2,
|
|
|
- arg3,
|
|
|
)
|
|
|
})
|
|
|
return _c
|
|
|
@@ -401,7 +383,7 @@ func (_c *mockAuthService_KerberosLogin_Call) Return(sNACMessage wire.SNACMessag
|
|
|
return _c
|
|
|
}
|
|
|
|
|
|
-func (_c *mockAuthService_KerberosLogin_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, newUserFn func(screenName state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.SNACMessage, error)) *mockAuthService_KerberosLogin_Call {
|
|
|
+func (_c *mockAuthService_KerberosLogin_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, advertisedHost string) (wire.SNACMessage, error)) *mockAuthService_KerberosLogin_Call {
|
|
|
_c.Call.Return(run)
|
|
|
return _c
|
|
|
}
|