You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

201 lines
6.5 KiB

  1. // Automatically generated by MockGen. DO NOT EDIT!
  2. // Source: google.golang.org/grpc/examples/route_guide/routeguide (interfaces: RouteGuideClient,RouteGuide_RouteChatClient)
  3. package mock_routeguide
  4. import (
  5. gomock "github.com/golang/mock/gomock"
  6. context "golang.org/x/net/context"
  7. grpc "google.golang.org/grpc"
  8. routeguide "google.golang.org/grpc/examples/route_guide/routeguide"
  9. metadata "google.golang.org/grpc/metadata"
  10. )
  11. // Mock of RouteGuideClient interface
  12. type MockRouteGuideClient struct {
  13. ctrl *gomock.Controller
  14. recorder *_MockRouteGuideClientRecorder
  15. }
  16. // Recorder for MockRouteGuideClient (not exported)
  17. type _MockRouteGuideClientRecorder struct {
  18. mock *MockRouteGuideClient
  19. }
  20. func NewMockRouteGuideClient(ctrl *gomock.Controller) *MockRouteGuideClient {
  21. mock := &MockRouteGuideClient{ctrl: ctrl}
  22. mock.recorder = &_MockRouteGuideClientRecorder{mock}
  23. return mock
  24. }
  25. func (_m *MockRouteGuideClient) EXPECT() *_MockRouteGuideClientRecorder {
  26. return _m.recorder
  27. }
  28. func (_m *MockRouteGuideClient) GetFeature(_param0 context.Context, _param1 *routeguide.Point, _param2 ...grpc.CallOption) (*routeguide.Feature, error) {
  29. _s := []interface{}{_param0, _param1}
  30. for _, _x := range _param2 {
  31. _s = append(_s, _x)
  32. }
  33. ret := _m.ctrl.Call(_m, "GetFeature", _s...)
  34. ret0, _ := ret[0].(*routeguide.Feature)
  35. ret1, _ := ret[1].(error)
  36. return ret0, ret1
  37. }
  38. func (_mr *_MockRouteGuideClientRecorder) GetFeature(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  39. _s := append([]interface{}{arg0, arg1}, arg2...)
  40. return _mr.mock.ctrl.RecordCall(_mr.mock, "GetFeature", _s...)
  41. }
  42. func (_m *MockRouteGuideClient) ListFeatures(_param0 context.Context, _param1 *routeguide.Rectangle, _param2 ...grpc.CallOption) (routeguide.RouteGuide_ListFeaturesClient, error) {
  43. _s := []interface{}{_param0, _param1}
  44. for _, _x := range _param2 {
  45. _s = append(_s, _x)
  46. }
  47. ret := _m.ctrl.Call(_m, "ListFeatures", _s...)
  48. ret0, _ := ret[0].(routeguide.RouteGuide_ListFeaturesClient)
  49. ret1, _ := ret[1].(error)
  50. return ret0, ret1
  51. }
  52. func (_mr *_MockRouteGuideClientRecorder) ListFeatures(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
  53. _s := append([]interface{}{arg0, arg1}, arg2...)
  54. return _mr.mock.ctrl.RecordCall(_mr.mock, "ListFeatures", _s...)
  55. }
  56. func (_m *MockRouteGuideClient) RecordRoute(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RecordRouteClient, error) {
  57. _s := []interface{}{_param0}
  58. for _, _x := range _param1 {
  59. _s = append(_s, _x)
  60. }
  61. ret := _m.ctrl.Call(_m, "RecordRoute", _s...)
  62. ret0, _ := ret[0].(routeguide.RouteGuide_RecordRouteClient)
  63. ret1, _ := ret[1].(error)
  64. return ret0, ret1
  65. }
  66. func (_mr *_MockRouteGuideClientRecorder) RecordRoute(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
  67. _s := append([]interface{}{arg0}, arg1...)
  68. return _mr.mock.ctrl.RecordCall(_mr.mock, "RecordRoute", _s...)
  69. }
  70. func (_m *MockRouteGuideClient) RouteChat(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RouteChatClient, error) {
  71. _s := []interface{}{_param0}
  72. for _, _x := range _param1 {
  73. _s = append(_s, _x)
  74. }
  75. ret := _m.ctrl.Call(_m, "RouteChat", _s...)
  76. ret0, _ := ret[0].(routeguide.RouteGuide_RouteChatClient)
  77. ret1, _ := ret[1].(error)
  78. return ret0, ret1
  79. }
  80. func (_mr *_MockRouteGuideClientRecorder) RouteChat(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
  81. _s := append([]interface{}{arg0}, arg1...)
  82. return _mr.mock.ctrl.RecordCall(_mr.mock, "RouteChat", _s...)
  83. }
  84. // Mock of RouteGuide_RouteChatClient interface
  85. type MockRouteGuide_RouteChatClient struct {
  86. ctrl *gomock.Controller
  87. recorder *_MockRouteGuide_RouteChatClientRecorder
  88. }
  89. // Recorder for MockRouteGuide_RouteChatClient (not exported)
  90. type _MockRouteGuide_RouteChatClientRecorder struct {
  91. mock *MockRouteGuide_RouteChatClient
  92. }
  93. func NewMockRouteGuide_RouteChatClient(ctrl *gomock.Controller) *MockRouteGuide_RouteChatClient {
  94. mock := &MockRouteGuide_RouteChatClient{ctrl: ctrl}
  95. mock.recorder = &_MockRouteGuide_RouteChatClientRecorder{mock}
  96. return mock
  97. }
  98. func (_m *MockRouteGuide_RouteChatClient) EXPECT() *_MockRouteGuide_RouteChatClientRecorder {
  99. return _m.recorder
  100. }
  101. func (_m *MockRouteGuide_RouteChatClient) CloseSend() error {
  102. ret := _m.ctrl.Call(_m, "CloseSend")
  103. ret0, _ := ret[0].(error)
  104. return ret0
  105. }
  106. func (_mr *_MockRouteGuide_RouteChatClientRecorder) CloseSend() *gomock.Call {
  107. return _mr.mock.ctrl.RecordCall(_mr.mock, "CloseSend")
  108. }
  109. func (_m *MockRouteGuide_RouteChatClient) Context() context.Context {
  110. ret := _m.ctrl.Call(_m, "Context")
  111. ret0, _ := ret[0].(context.Context)
  112. return ret0
  113. }
  114. func (_mr *_MockRouteGuide_RouteChatClientRecorder) Context() *gomock.Call {
  115. return _mr.mock.ctrl.RecordCall(_mr.mock, "Context")
  116. }
  117. func (_m *MockRouteGuide_RouteChatClient) Header() (metadata.MD, error) {
  118. ret := _m.ctrl.Call(_m, "Header")
  119. ret0, _ := ret[0].(metadata.MD)
  120. ret1, _ := ret[1].(error)
  121. return ret0, ret1
  122. }
  123. func (_mr *_MockRouteGuide_RouteChatClientRecorder) Header() *gomock.Call {
  124. return _mr.mock.ctrl.RecordCall(_mr.mock, "Header")
  125. }
  126. func (_m *MockRouteGuide_RouteChatClient) Recv() (*routeguide.RouteNote, error) {
  127. ret := _m.ctrl.Call(_m, "Recv")
  128. ret0, _ := ret[0].(*routeguide.RouteNote)
  129. ret1, _ := ret[1].(error)
  130. return ret0, ret1
  131. }
  132. func (_mr *_MockRouteGuide_RouteChatClientRecorder) Recv() *gomock.Call {
  133. return _mr.mock.ctrl.RecordCall(_mr.mock, "Recv")
  134. }
  135. func (_m *MockRouteGuide_RouteChatClient) RecvMsg(_param0 interface{}) error {
  136. ret := _m.ctrl.Call(_m, "RecvMsg", _param0)
  137. ret0, _ := ret[0].(error)
  138. return ret0
  139. }
  140. func (_mr *_MockRouteGuide_RouteChatClientRecorder) RecvMsg(arg0 interface{}) *gomock.Call {
  141. return _mr.mock.ctrl.RecordCall(_mr.mock, "RecvMsg", arg0)
  142. }
  143. func (_m *MockRouteGuide_RouteChatClient) Send(_param0 *routeguide.RouteNote) error {
  144. ret := _m.ctrl.Call(_m, "Send", _param0)
  145. ret0, _ := ret[0].(error)
  146. return ret0
  147. }
  148. func (_mr *_MockRouteGuide_RouteChatClientRecorder) Send(arg0 interface{}) *gomock.Call {
  149. return _mr.mock.ctrl.RecordCall(_mr.mock, "Send", arg0)
  150. }
  151. func (_m *MockRouteGuide_RouteChatClient) SendMsg(_param0 interface{}) error {
  152. ret := _m.ctrl.Call(_m, "SendMsg", _param0)
  153. ret0, _ := ret[0].(error)
  154. return ret0
  155. }
  156. func (_mr *_MockRouteGuide_RouteChatClientRecorder) SendMsg(arg0 interface{}) *gomock.Call {
  157. return _mr.mock.ctrl.RecordCall(_mr.mock, "SendMsg", arg0)
  158. }
  159. func (_m *MockRouteGuide_RouteChatClient) Trailer() metadata.MD {
  160. ret := _m.ctrl.Call(_m, "Trailer")
  161. ret0, _ := ret[0].(metadata.MD)
  162. return ret0
  163. }
  164. func (_mr *_MockRouteGuide_RouteChatClientRecorder) Trailer() *gomock.Call {
  165. return _mr.mock.ctrl.RecordCall(_mr.mock, "Trailer")
  166. }