mock_auth_test.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. // Code generated by mockery v2.53.3. DO NOT EDIT.
  2. package oscar
  3. import (
  4. context "context"
  5. state "github.com/mk6i/retro-aim-server/state"
  6. mock "github.com/stretchr/testify/mock"
  7. uuid "github.com/google/uuid"
  8. wire "github.com/mk6i/retro-aim-server/wire"
  9. )
  10. // mockAuthService is an autogenerated mock type for the AuthService type
  11. type mockAuthService struct {
  12. mock.Mock
  13. }
  14. type mockAuthService_Expecter struct {
  15. mock *mock.Mock
  16. }
  17. func (_m *mockAuthService) EXPECT() *mockAuthService_Expecter {
  18. return &mockAuthService_Expecter{mock: &_m.Mock}
  19. }
  20. // BUCPChallenge provides a mock function with given fields: ctx, bodyIn, newUUID
  21. func (_m *mockAuthService) BUCPChallenge(ctx context.Context, bodyIn wire.SNAC_0x17_0x06_BUCPChallengeRequest, newUUID func() uuid.UUID) (wire.SNACMessage, error) {
  22. ret := _m.Called(ctx, bodyIn, newUUID)
  23. if len(ret) == 0 {
  24. panic("no return value specified for BUCPChallenge")
  25. }
  26. var r0 wire.SNACMessage
  27. var r1 error
  28. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) (wire.SNACMessage, error)); ok {
  29. return rf(ctx, bodyIn, newUUID)
  30. }
  31. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) wire.SNACMessage); ok {
  32. r0 = rf(ctx, bodyIn, newUUID)
  33. } else {
  34. r0 = ret.Get(0).(wire.SNACMessage)
  35. }
  36. if rf, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) error); ok {
  37. r1 = rf(ctx, bodyIn, newUUID)
  38. } else {
  39. r1 = ret.Error(1)
  40. }
  41. return r0, r1
  42. }
  43. // mockAuthService_BUCPChallenge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BUCPChallenge'
  44. type mockAuthService_BUCPChallenge_Call struct {
  45. *mock.Call
  46. }
  47. // BUCPChallenge is a helper method to define mock.On call
  48. // - ctx context.Context
  49. // - bodyIn wire.SNAC_0x17_0x06_BUCPChallengeRequest
  50. // - newUUID func() uuid.UUID
  51. func (_e *mockAuthService_Expecter) BUCPChallenge(ctx interface{}, bodyIn interface{}, newUUID interface{}) *mockAuthService_BUCPChallenge_Call {
  52. return &mockAuthService_BUCPChallenge_Call{Call: _e.mock.On("BUCPChallenge", ctx, bodyIn, newUUID)}
  53. }
  54. func (_c *mockAuthService_BUCPChallenge_Call) Run(run func(ctx context.Context, bodyIn wire.SNAC_0x17_0x06_BUCPChallengeRequest, newUUID func() uuid.UUID)) *mockAuthService_BUCPChallenge_Call {
  55. _c.Call.Run(func(args mock.Arguments) {
  56. run(args[0].(context.Context), args[1].(wire.SNAC_0x17_0x06_BUCPChallengeRequest), args[2].(func() uuid.UUID))
  57. })
  58. return _c
  59. }
  60. func (_c *mockAuthService_BUCPChallenge_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockAuthService_BUCPChallenge_Call {
  61. _c.Call.Return(_a0, _a1)
  62. return _c
  63. }
  64. func (_c *mockAuthService_BUCPChallenge_Call) RunAndReturn(run func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) (wire.SNACMessage, error)) *mockAuthService_BUCPChallenge_Call {
  65. _c.Call.Return(run)
  66. return _c
  67. }
  68. // BUCPLogin provides a mock function with given fields: ctx, bodyIn, newUserFn
  69. func (_m *mockAuthService) BUCPLogin(ctx context.Context, bodyIn wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error) {
  70. ret := _m.Called(ctx, bodyIn, newUserFn)
  71. if len(ret) == 0 {
  72. panic("no return value specified for BUCPLogin")
  73. }
  74. var r0 wire.SNACMessage
  75. var r1 error
  76. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error)); ok {
  77. return rf(ctx, bodyIn, newUserFn)
  78. }
  79. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error)) wire.SNACMessage); ok {
  80. r0 = rf(ctx, bodyIn, newUserFn)
  81. } else {
  82. r0 = ret.Get(0).(wire.SNACMessage)
  83. }
  84. if rf, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error)) error); ok {
  85. r1 = rf(ctx, bodyIn, newUserFn)
  86. } else {
  87. r1 = ret.Error(1)
  88. }
  89. return r0, r1
  90. }
  91. // mockAuthService_BUCPLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BUCPLogin'
  92. type mockAuthService_BUCPLogin_Call struct {
  93. *mock.Call
  94. }
  95. // BUCPLogin is a helper method to define mock.On call
  96. // - ctx context.Context
  97. // - bodyIn wire.SNAC_0x17_0x02_BUCPLoginRequest
  98. // - newUserFn func(state.DisplayScreenName)(state.User , error)
  99. func (_e *mockAuthService_Expecter) BUCPLogin(ctx interface{}, bodyIn interface{}, newUserFn interface{}) *mockAuthService_BUCPLogin_Call {
  100. return &mockAuthService_BUCPLogin_Call{Call: _e.mock.On("BUCPLogin", ctx, bodyIn, newUserFn)}
  101. }
  102. func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, bodyIn wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error))) *mockAuthService_BUCPLogin_Call {
  103. _c.Call.Run(func(args mock.Arguments) {
  104. run(args[0].(context.Context), args[1].(wire.SNAC_0x17_0x02_BUCPLoginRequest), args[2].(func(state.DisplayScreenName) (state.User, error)))
  105. })
  106. return _c
  107. }
  108. func (_c *mockAuthService_BUCPLogin_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockAuthService_BUCPLogin_Call {
  109. _c.Call.Return(_a0, _a1)
  110. return _c
  111. }
  112. func (_c *mockAuthService_BUCPLogin_Call) RunAndReturn(run func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error)) *mockAuthService_BUCPLogin_Call {
  113. _c.Call.Return(run)
  114. return _c
  115. }
  116. // FLAPLogin provides a mock function with given fields: ctx, frame, newUserFn
  117. func (_m *mockAuthService) FLAPLogin(ctx context.Context, frame wire.FLAPSignonFrame, newUserFn func(state.DisplayScreenName) (state.User, error)) (wire.TLVRestBlock, error) {
  118. ret := _m.Called(ctx, frame, newUserFn)
  119. if len(ret) == 0 {
  120. panic("no return value specified for FLAPLogin")
  121. }
  122. var r0 wire.TLVRestBlock
  123. var r1 error
  124. if rf, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error)) (wire.TLVRestBlock, error)); ok {
  125. return rf(ctx, frame, newUserFn)
  126. }
  127. if rf, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error)) wire.TLVRestBlock); ok {
  128. r0 = rf(ctx, frame, newUserFn)
  129. } else {
  130. r0 = ret.Get(0).(wire.TLVRestBlock)
  131. }
  132. if rf, ok := ret.Get(1).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error)) error); ok {
  133. r1 = rf(ctx, frame, newUserFn)
  134. } else {
  135. r1 = ret.Error(1)
  136. }
  137. return r0, r1
  138. }
  139. // mockAuthService_FLAPLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FLAPLogin'
  140. type mockAuthService_FLAPLogin_Call struct {
  141. *mock.Call
  142. }
  143. // FLAPLogin is a helper method to define mock.On call
  144. // - ctx context.Context
  145. // - frame wire.FLAPSignonFrame
  146. // - newUserFn func(state.DisplayScreenName)(state.User , error)
  147. func (_e *mockAuthService_Expecter) FLAPLogin(ctx interface{}, frame interface{}, newUserFn interface{}) *mockAuthService_FLAPLogin_Call {
  148. return &mockAuthService_FLAPLogin_Call{Call: _e.mock.On("FLAPLogin", ctx, frame, newUserFn)}
  149. }
  150. func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, frame wire.FLAPSignonFrame, newUserFn func(state.DisplayScreenName) (state.User, error))) *mockAuthService_FLAPLogin_Call {
  151. _c.Call.Run(func(args mock.Arguments) {
  152. run(args[0].(context.Context), args[1].(wire.FLAPSignonFrame), args[2].(func(state.DisplayScreenName) (state.User, error)))
  153. })
  154. return _c
  155. }
  156. func (_c *mockAuthService_FLAPLogin_Call) Return(_a0 wire.TLVRestBlock, _a1 error) *mockAuthService_FLAPLogin_Call {
  157. _c.Call.Return(_a0, _a1)
  158. return _c
  159. }
  160. func (_c *mockAuthService_FLAPLogin_Call) RunAndReturn(run func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error)) (wire.TLVRestBlock, error)) *mockAuthService_FLAPLogin_Call {
  161. _c.Call.Return(run)
  162. return _c
  163. }
  164. // KerberosLogin provides a mock function with given fields: ctx, inBody, newUserFn
  165. func (_m *mockAuthService) KerberosLogin(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error) {
  166. ret := _m.Called(ctx, inBody, newUserFn)
  167. if len(ret) == 0 {
  168. panic("no return value specified for KerberosLogin")
  169. }
  170. var r0 wire.SNACMessage
  171. var r1 error
  172. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error)); ok {
  173. return rf(ctx, inBody, newUserFn)
  174. }
  175. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(state.DisplayScreenName) (state.User, error)) wire.SNACMessage); ok {
  176. r0 = rf(ctx, inBody, newUserFn)
  177. } else {
  178. r0 = ret.Get(0).(wire.SNACMessage)
  179. }
  180. if rf, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(state.DisplayScreenName) (state.User, error)) error); ok {
  181. r1 = rf(ctx, inBody, newUserFn)
  182. } else {
  183. r1 = ret.Error(1)
  184. }
  185. return r0, r1
  186. }
  187. // mockAuthService_KerberosLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KerberosLogin'
  188. type mockAuthService_KerberosLogin_Call struct {
  189. *mock.Call
  190. }
  191. // KerberosLogin is a helper method to define mock.On call
  192. // - ctx context.Context
  193. // - inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest
  194. // - newUserFn func(state.DisplayScreenName)(state.User , error)
  195. func (_e *mockAuthService_Expecter) KerberosLogin(ctx interface{}, inBody interface{}, newUserFn interface{}) *mockAuthService_KerberosLogin_Call {
  196. return &mockAuthService_KerberosLogin_Call{Call: _e.mock.On("KerberosLogin", ctx, inBody, newUserFn)}
  197. }
  198. func (_c *mockAuthService_KerberosLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x050C_0x0002_KerberosLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error))) *mockAuthService_KerberosLogin_Call {
  199. _c.Call.Run(func(args mock.Arguments) {
  200. run(args[0].(context.Context), args[1].(wire.SNAC_0x050C_0x0002_KerberosLoginRequest), args[2].(func(state.DisplayScreenName) (state.User, error)))
  201. })
  202. return _c
  203. }
  204. func (_c *mockAuthService_KerberosLogin_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockAuthService_KerberosLogin_Call {
  205. _c.Call.Return(_a0, _a1)
  206. return _c
  207. }
  208. func (_c *mockAuthService_KerberosLogin_Call) RunAndReturn(run func(context.Context, wire.SNAC_0x050C_0x0002_KerberosLoginRequest, func(state.DisplayScreenName) (state.User, error)) (wire.SNACMessage, error)) *mockAuthService_KerberosLogin_Call {
  209. _c.Call.Return(run)
  210. return _c
  211. }
  212. // RegisterBOSSession provides a mock function with given fields: ctx, authCookie
  213. func (_m *mockAuthService) RegisterBOSSession(ctx context.Context, authCookie []byte) (*state.Session, error) {
  214. ret := _m.Called(ctx, authCookie)
  215. if len(ret) == 0 {
  216. panic("no return value specified for RegisterBOSSession")
  217. }
  218. var r0 *state.Session
  219. var r1 error
  220. if rf, ok := ret.Get(0).(func(context.Context, []byte) (*state.Session, error)); ok {
  221. return rf(ctx, authCookie)
  222. }
  223. if rf, ok := ret.Get(0).(func(context.Context, []byte) *state.Session); ok {
  224. r0 = rf(ctx, authCookie)
  225. } else {
  226. if ret.Get(0) != nil {
  227. r0 = ret.Get(0).(*state.Session)
  228. }
  229. }
  230. if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
  231. r1 = rf(ctx, authCookie)
  232. } else {
  233. r1 = ret.Error(1)
  234. }
  235. return r0, r1
  236. }
  237. // mockAuthService_RegisterBOSSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterBOSSession'
  238. type mockAuthService_RegisterBOSSession_Call struct {
  239. *mock.Call
  240. }
  241. // RegisterBOSSession is a helper method to define mock.On call
  242. // - ctx context.Context
  243. // - authCookie []byte
  244. func (_e *mockAuthService_Expecter) RegisterBOSSession(ctx interface{}, authCookie interface{}) *mockAuthService_RegisterBOSSession_Call {
  245. return &mockAuthService_RegisterBOSSession_Call{Call: _e.mock.On("RegisterBOSSession", ctx, authCookie)}
  246. }
  247. func (_c *mockAuthService_RegisterBOSSession_Call) Run(run func(ctx context.Context, authCookie []byte)) *mockAuthService_RegisterBOSSession_Call {
  248. _c.Call.Run(func(args mock.Arguments) {
  249. run(args[0].(context.Context), args[1].([]byte))
  250. })
  251. return _c
  252. }
  253. func (_c *mockAuthService_RegisterBOSSession_Call) Return(_a0 *state.Session, _a1 error) *mockAuthService_RegisterBOSSession_Call {
  254. _c.Call.Return(_a0, _a1)
  255. return _c
  256. }
  257. func (_c *mockAuthService_RegisterBOSSession_Call) RunAndReturn(run func(context.Context, []byte) (*state.Session, error)) *mockAuthService_RegisterBOSSession_Call {
  258. _c.Call.Return(run)
  259. return _c
  260. }
  261. // RegisterChatSession provides a mock function with given fields: ctx, authCookie
  262. func (_m *mockAuthService) RegisterChatSession(ctx context.Context, authCookie []byte) (*state.Session, error) {
  263. ret := _m.Called(ctx, authCookie)
  264. if len(ret) == 0 {
  265. panic("no return value specified for RegisterChatSession")
  266. }
  267. var r0 *state.Session
  268. var r1 error
  269. if rf, ok := ret.Get(0).(func(context.Context, []byte) (*state.Session, error)); ok {
  270. return rf(ctx, authCookie)
  271. }
  272. if rf, ok := ret.Get(0).(func(context.Context, []byte) *state.Session); ok {
  273. r0 = rf(ctx, authCookie)
  274. } else {
  275. if ret.Get(0) != nil {
  276. r0 = ret.Get(0).(*state.Session)
  277. }
  278. }
  279. if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
  280. r1 = rf(ctx, authCookie)
  281. } else {
  282. r1 = ret.Error(1)
  283. }
  284. return r0, r1
  285. }
  286. // mockAuthService_RegisterChatSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterChatSession'
  287. type mockAuthService_RegisterChatSession_Call struct {
  288. *mock.Call
  289. }
  290. // RegisterChatSession is a helper method to define mock.On call
  291. // - ctx context.Context
  292. // - authCookie []byte
  293. func (_e *mockAuthService_Expecter) RegisterChatSession(ctx interface{}, authCookie interface{}) *mockAuthService_RegisterChatSession_Call {
  294. return &mockAuthService_RegisterChatSession_Call{Call: _e.mock.On("RegisterChatSession", ctx, authCookie)}
  295. }
  296. func (_c *mockAuthService_RegisterChatSession_Call) Run(run func(ctx context.Context, authCookie []byte)) *mockAuthService_RegisterChatSession_Call {
  297. _c.Call.Run(func(args mock.Arguments) {
  298. run(args[0].(context.Context), args[1].([]byte))
  299. })
  300. return _c
  301. }
  302. func (_c *mockAuthService_RegisterChatSession_Call) Return(_a0 *state.Session, _a1 error) *mockAuthService_RegisterChatSession_Call {
  303. _c.Call.Return(_a0, _a1)
  304. return _c
  305. }
  306. func (_c *mockAuthService_RegisterChatSession_Call) RunAndReturn(run func(context.Context, []byte) (*state.Session, error)) *mockAuthService_RegisterChatSession_Call {
  307. _c.Call.Return(run)
  308. return _c
  309. }
  310. // RetrieveBOSSession provides a mock function with given fields: ctx, authCookie
  311. func (_m *mockAuthService) RetrieveBOSSession(ctx context.Context, authCookie []byte) (*state.Session, error) {
  312. ret := _m.Called(ctx, authCookie)
  313. if len(ret) == 0 {
  314. panic("no return value specified for RetrieveBOSSession")
  315. }
  316. var r0 *state.Session
  317. var r1 error
  318. if rf, ok := ret.Get(0).(func(context.Context, []byte) (*state.Session, error)); ok {
  319. return rf(ctx, authCookie)
  320. }
  321. if rf, ok := ret.Get(0).(func(context.Context, []byte) *state.Session); ok {
  322. r0 = rf(ctx, authCookie)
  323. } else {
  324. if ret.Get(0) != nil {
  325. r0 = ret.Get(0).(*state.Session)
  326. }
  327. }
  328. if rf, ok := ret.Get(1).(func(context.Context, []byte) error); ok {
  329. r1 = rf(ctx, authCookie)
  330. } else {
  331. r1 = ret.Error(1)
  332. }
  333. return r0, r1
  334. }
  335. // mockAuthService_RetrieveBOSSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveBOSSession'
  336. type mockAuthService_RetrieveBOSSession_Call struct {
  337. *mock.Call
  338. }
  339. // RetrieveBOSSession is a helper method to define mock.On call
  340. // - ctx context.Context
  341. // - authCookie []byte
  342. func (_e *mockAuthService_Expecter) RetrieveBOSSession(ctx interface{}, authCookie interface{}) *mockAuthService_RetrieveBOSSession_Call {
  343. return &mockAuthService_RetrieveBOSSession_Call{Call: _e.mock.On("RetrieveBOSSession", ctx, authCookie)}
  344. }
  345. func (_c *mockAuthService_RetrieveBOSSession_Call) Run(run func(ctx context.Context, authCookie []byte)) *mockAuthService_RetrieveBOSSession_Call {
  346. _c.Call.Run(func(args mock.Arguments) {
  347. run(args[0].(context.Context), args[1].([]byte))
  348. })
  349. return _c
  350. }
  351. func (_c *mockAuthService_RetrieveBOSSession_Call) Return(_a0 *state.Session, _a1 error) *mockAuthService_RetrieveBOSSession_Call {
  352. _c.Call.Return(_a0, _a1)
  353. return _c
  354. }
  355. func (_c *mockAuthService_RetrieveBOSSession_Call) RunAndReturn(run func(context.Context, []byte) (*state.Session, error)) *mockAuthService_RetrieveBOSSession_Call {
  356. _c.Call.Return(run)
  357. return _c
  358. }
  359. // Signout provides a mock function with given fields: ctx, sess
  360. func (_m *mockAuthService) Signout(ctx context.Context, sess *state.Session) {
  361. _m.Called(ctx, sess)
  362. }
  363. // mockAuthService_Signout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signout'
  364. type mockAuthService_Signout_Call struct {
  365. *mock.Call
  366. }
  367. // Signout is a helper method to define mock.On call
  368. // - ctx context.Context
  369. // - sess *state.Session
  370. func (_e *mockAuthService_Expecter) Signout(ctx interface{}, sess interface{}) *mockAuthService_Signout_Call {
  371. return &mockAuthService_Signout_Call{Call: _e.mock.On("Signout", ctx, sess)}
  372. }
  373. func (_c *mockAuthService_Signout_Call) Run(run func(ctx context.Context, sess *state.Session)) *mockAuthService_Signout_Call {
  374. _c.Call.Run(func(args mock.Arguments) {
  375. run(args[0].(context.Context), args[1].(*state.Session))
  376. })
  377. return _c
  378. }
  379. func (_c *mockAuthService_Signout_Call) Return() *mockAuthService_Signout_Call {
  380. _c.Call.Return()
  381. return _c
  382. }
  383. func (_c *mockAuthService_Signout_Call) RunAndReturn(run func(context.Context, *state.Session)) *mockAuthService_Signout_Call {
  384. _c.Run(run)
  385. return _c
  386. }
  387. // SignoutChat provides a mock function with given fields: ctx, sess
  388. func (_m *mockAuthService) SignoutChat(ctx context.Context, sess *state.Session) {
  389. _m.Called(ctx, sess)
  390. }
  391. // mockAuthService_SignoutChat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignoutChat'
  392. type mockAuthService_SignoutChat_Call struct {
  393. *mock.Call
  394. }
  395. // SignoutChat is a helper method to define mock.On call
  396. // - ctx context.Context
  397. // - sess *state.Session
  398. func (_e *mockAuthService_Expecter) SignoutChat(ctx interface{}, sess interface{}) *mockAuthService_SignoutChat_Call {
  399. return &mockAuthService_SignoutChat_Call{Call: _e.mock.On("SignoutChat", ctx, sess)}
  400. }
  401. func (_c *mockAuthService_SignoutChat_Call) Run(run func(ctx context.Context, sess *state.Session)) *mockAuthService_SignoutChat_Call {
  402. _c.Call.Run(func(args mock.Arguments) {
  403. run(args[0].(context.Context), args[1].(*state.Session))
  404. })
  405. return _c
  406. }
  407. func (_c *mockAuthService_SignoutChat_Call) Return() *mockAuthService_SignoutChat_Call {
  408. _c.Call.Return()
  409. return _c
  410. }
  411. func (_c *mockAuthService_SignoutChat_Call) RunAndReturn(run func(context.Context, *state.Session)) *mockAuthService_SignoutChat_Call {
  412. _c.Run(run)
  413. return _c
  414. }
  415. // newMockAuthService creates a new instance of mockAuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  416. // The first argument is typically a *testing.T value.
  417. func newMockAuthService(t interface {
  418. mock.TestingT
  419. Cleanup(func())
  420. }) *mockAuthService {
  421. mock := &mockAuthService{}
  422. mock.Mock.Test(t)
  423. t.Cleanup(func() { mock.AssertExpectations(t) })
  424. return mock
  425. }