mock_auth_service_test.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. // Code generated by mockery v2.53.3. DO NOT EDIT.
  2. package toc
  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, advertisedHost
  69. func (_m *mockAuthService) BUCPLogin(ctx context.Context, bodyIn wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error), advertisedHost string) (wire.SNACMessage, error) {
  70. ret := _m.Called(ctx, bodyIn, newUserFn, advertisedHost)
  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), string) (wire.SNACMessage, error)); ok {
  77. return rf(ctx, bodyIn, newUserFn, advertisedHost)
  78. }
  79. if rf, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error), string) wire.SNACMessage); ok {
  80. r0 = rf(ctx, bodyIn, newUserFn, advertisedHost)
  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), string) error); ok {
  85. r1 = rf(ctx, bodyIn, newUserFn, advertisedHost)
  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. // - advertisedHost string
  100. func (_e *mockAuthService_Expecter) BUCPLogin(ctx interface{}, bodyIn interface{}, newUserFn interface{}, advertisedHost interface{}) *mockAuthService_BUCPLogin_Call {
  101. return &mockAuthService_BUCPLogin_Call{Call: _e.mock.On("BUCPLogin", ctx, bodyIn, newUserFn, advertisedHost)}
  102. }
  103. func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, bodyIn wire.SNAC_0x17_0x02_BUCPLoginRequest, newUserFn func(state.DisplayScreenName) (state.User, error), advertisedHost string)) *mockAuthService_BUCPLogin_Call {
  104. _c.Call.Run(func(args mock.Arguments) {
  105. run(args[0].(context.Context), args[1].(wire.SNAC_0x17_0x02_BUCPLoginRequest), args[2].(func(state.DisplayScreenName) (state.User, error)), args[3].(string))
  106. })
  107. return _c
  108. }
  109. func (_c *mockAuthService_BUCPLogin_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockAuthService_BUCPLogin_Call {
  110. _c.Call.Return(_a0, _a1)
  111. return _c
  112. }
  113. func (_c *mockAuthService_BUCPLogin_Call) RunAndReturn(run func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, func(state.DisplayScreenName) (state.User, error), string) (wire.SNACMessage, error)) *mockAuthService_BUCPLogin_Call {
  114. _c.Call.Return(run)
  115. return _c
  116. }
  117. // CrackCookie provides a mock function with given fields: authCookie
  118. func (_m *mockAuthService) CrackCookie(authCookie []byte) (state.ServerCookie, error) {
  119. ret := _m.Called(authCookie)
  120. if len(ret) == 0 {
  121. panic("no return value specified for CrackCookie")
  122. }
  123. var r0 state.ServerCookie
  124. var r1 error
  125. if rf, ok := ret.Get(0).(func([]byte) (state.ServerCookie, error)); ok {
  126. return rf(authCookie)
  127. }
  128. if rf, ok := ret.Get(0).(func([]byte) state.ServerCookie); ok {
  129. r0 = rf(authCookie)
  130. } else {
  131. r0 = ret.Get(0).(state.ServerCookie)
  132. }
  133. if rf, ok := ret.Get(1).(func([]byte) error); ok {
  134. r1 = rf(authCookie)
  135. } else {
  136. r1 = ret.Error(1)
  137. }
  138. return r0, r1
  139. }
  140. // mockAuthService_CrackCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CrackCookie'
  141. type mockAuthService_CrackCookie_Call struct {
  142. *mock.Call
  143. }
  144. // CrackCookie is a helper method to define mock.On call
  145. // - authCookie []byte
  146. func (_e *mockAuthService_Expecter) CrackCookie(authCookie interface{}) *mockAuthService_CrackCookie_Call {
  147. return &mockAuthService_CrackCookie_Call{Call: _e.mock.On("CrackCookie", authCookie)}
  148. }
  149. func (_c *mockAuthService_CrackCookie_Call) Run(run func(authCookie []byte)) *mockAuthService_CrackCookie_Call {
  150. _c.Call.Run(func(args mock.Arguments) {
  151. run(args[0].([]byte))
  152. })
  153. return _c
  154. }
  155. func (_c *mockAuthService_CrackCookie_Call) Return(_a0 state.ServerCookie, _a1 error) *mockAuthService_CrackCookie_Call {
  156. _c.Call.Return(_a0, _a1)
  157. return _c
  158. }
  159. func (_c *mockAuthService_CrackCookie_Call) RunAndReturn(run func([]byte) (state.ServerCookie, error)) *mockAuthService_CrackCookie_Call {
  160. _c.Call.Return(run)
  161. return _c
  162. }
  163. // FLAPLogin provides a mock function with given fields: ctx, frame, newUserFn, here
  164. func (_m *mockAuthService) FLAPLogin(ctx context.Context, frame wire.FLAPSignonFrame, newUserFn func(state.DisplayScreenName) (state.User, error), here string) (wire.TLVRestBlock, error) {
  165. ret := _m.Called(ctx, frame, newUserFn, here)
  166. if len(ret) == 0 {
  167. panic("no return value specified for FLAPLogin")
  168. }
  169. var r0 wire.TLVRestBlock
  170. var r1 error
  171. if rf, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error), string) (wire.TLVRestBlock, error)); ok {
  172. return rf(ctx, frame, newUserFn, here)
  173. }
  174. if rf, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error), string) wire.TLVRestBlock); ok {
  175. r0 = rf(ctx, frame, newUserFn, here)
  176. } else {
  177. r0 = ret.Get(0).(wire.TLVRestBlock)
  178. }
  179. if rf, ok := ret.Get(1).(func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error), string) error); ok {
  180. r1 = rf(ctx, frame, newUserFn, here)
  181. } else {
  182. r1 = ret.Error(1)
  183. }
  184. return r0, r1
  185. }
  186. // mockAuthService_FLAPLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FLAPLogin'
  187. type mockAuthService_FLAPLogin_Call struct {
  188. *mock.Call
  189. }
  190. // FLAPLogin is a helper method to define mock.On call
  191. // - ctx context.Context
  192. // - frame wire.FLAPSignonFrame
  193. // - newUserFn func(state.DisplayScreenName)(state.User , error)
  194. // - here string
  195. func (_e *mockAuthService_Expecter) FLAPLogin(ctx interface{}, frame interface{}, newUserFn interface{}, here interface{}) *mockAuthService_FLAPLogin_Call {
  196. return &mockAuthService_FLAPLogin_Call{Call: _e.mock.On("FLAPLogin", ctx, frame, newUserFn, here)}
  197. }
  198. func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, frame wire.FLAPSignonFrame, newUserFn func(state.DisplayScreenName) (state.User, error), here string)) *mockAuthService_FLAPLogin_Call {
  199. _c.Call.Run(func(args mock.Arguments) {
  200. run(args[0].(context.Context), args[1].(wire.FLAPSignonFrame), args[2].(func(state.DisplayScreenName) (state.User, error)), args[3].(string))
  201. })
  202. return _c
  203. }
  204. func (_c *mockAuthService_FLAPLogin_Call) Return(_a0 wire.TLVRestBlock, _a1 error) *mockAuthService_FLAPLogin_Call {
  205. _c.Call.Return(_a0, _a1)
  206. return _c
  207. }
  208. func (_c *mockAuthService_FLAPLogin_Call) RunAndReturn(run func(context.Context, wire.FLAPSignonFrame, func(state.DisplayScreenName) (state.User, error), string) (wire.TLVRestBlock, error)) *mockAuthService_FLAPLogin_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 state.ServerCookie) (*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, state.ServerCookie) (*state.Session, error)); ok {
  221. return rf(ctx, authCookie)
  222. }
  223. if rf, ok := ret.Get(0).(func(context.Context, state.ServerCookie) *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, state.ServerCookie) 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 state.ServerCookie
  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 state.ServerCookie)) *mockAuthService_RegisterBOSSession_Call {
  248. _c.Call.Run(func(args mock.Arguments) {
  249. run(args[0].(context.Context), args[1].(state.ServerCookie))
  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, state.ServerCookie) (*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 state.ServerCookie) (*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, state.ServerCookie) (*state.Session, error)); ok {
  270. return rf(ctx, authCookie)
  271. }
  272. if rf, ok := ret.Get(0).(func(context.Context, state.ServerCookie) *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, state.ServerCookie) 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 state.ServerCookie
  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 state.ServerCookie)) *mockAuthService_RegisterChatSession_Call {
  297. _c.Call.Run(func(args mock.Arguments) {
  298. run(args[0].(context.Context), args[1].(state.ServerCookie))
  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, state.ServerCookie) (*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 state.ServerCookie) (*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, state.ServerCookie) (*state.Session, error)); ok {
  319. return rf(ctx, authCookie)
  320. }
  321. if rf, ok := ret.Get(0).(func(context.Context, state.ServerCookie) *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, state.ServerCookie) 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 state.ServerCookie
  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 state.ServerCookie)) *mockAuthService_RetrieveBOSSession_Call {
  346. _c.Call.Run(func(args mock.Arguments) {
  347. run(args[0].(context.Context), args[1].(state.ServerCookie))
  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, state.ServerCookie) (*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. }