1 // Automatically generated by MockGen. DO NOT EDIT!
2 // Source: google.golang.org/grpc/examples/route_guide/routeguide (interfaces: RouteGuideClient,RouteGuide_RouteChatClient)
4 package mock_routeguide
7 gomock "github.com/golang/mock/gomock"
8 context "golang.org/x/net/context"
9 grpc "google.golang.org/grpc"
10 routeguide "google.golang.org/grpc/examples/route_guide/routeguide"
11 metadata "google.golang.org/grpc/metadata"
14 // Mock of RouteGuideClient interface
15 type MockRouteGuideClient struct {
16 ctrl *gomock.Controller
17 recorder *_MockRouteGuideClientRecorder
20 // Recorder for MockRouteGuideClient (not exported)
21 type _MockRouteGuideClientRecorder struct {
22 mock *MockRouteGuideClient
25 func NewMockRouteGuideClient(ctrl *gomock.Controller) *MockRouteGuideClient {
26 mock := &MockRouteGuideClient{ctrl: ctrl}
27 mock.recorder = &_MockRouteGuideClientRecorder{mock}
31 func (_m *MockRouteGuideClient) EXPECT() *_MockRouteGuideClientRecorder {
35 func (_m *MockRouteGuideClient) GetFeature(_param0 context.Context, _param1 *routeguide.Point, _param2 ...grpc.CallOption) (*routeguide.Feature, error) {
36 _s := []interface{}{_param0, _param1}
37 for _, _x := range _param2 {
40 ret := _m.ctrl.Call(_m, "GetFeature", _s...)
41 ret0, _ := ret[0].(*routeguide.Feature)
42 ret1, _ := ret[1].(error)
46 func (_mr *_MockRouteGuideClientRecorder) GetFeature(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
47 _s := append([]interface{}{arg0, arg1}, arg2...)
48 return _mr.mock.ctrl.RecordCall(_mr.mock, "GetFeature", _s...)
51 func (_m *MockRouteGuideClient) ListFeatures(_param0 context.Context, _param1 *routeguide.Rectangle, _param2 ...grpc.CallOption) (routeguide.RouteGuide_ListFeaturesClient, error) {
52 _s := []interface{}{_param0, _param1}
53 for _, _x := range _param2 {
56 ret := _m.ctrl.Call(_m, "ListFeatures", _s...)
57 ret0, _ := ret[0].(routeguide.RouteGuide_ListFeaturesClient)
58 ret1, _ := ret[1].(error)
62 func (_mr *_MockRouteGuideClientRecorder) ListFeatures(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
63 _s := append([]interface{}{arg0, arg1}, arg2...)
64 return _mr.mock.ctrl.RecordCall(_mr.mock, "ListFeatures", _s...)
67 func (_m *MockRouteGuideClient) RecordRoute(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RecordRouteClient, error) {
68 _s := []interface{}{_param0}
69 for _, _x := range _param1 {
72 ret := _m.ctrl.Call(_m, "RecordRoute", _s...)
73 ret0, _ := ret[0].(routeguide.RouteGuide_RecordRouteClient)
74 ret1, _ := ret[1].(error)
78 func (_mr *_MockRouteGuideClientRecorder) RecordRoute(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
79 _s := append([]interface{}{arg0}, arg1...)
80 return _mr.mock.ctrl.RecordCall(_mr.mock, "RecordRoute", _s...)
83 func (_m *MockRouteGuideClient) RouteChat(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RouteChatClient, error) {
84 _s := []interface{}{_param0}
85 for _, _x := range _param1 {
88 ret := _m.ctrl.Call(_m, "RouteChat", _s...)
89 ret0, _ := ret[0].(routeguide.RouteGuide_RouteChatClient)
90 ret1, _ := ret[1].(error)
94 func (_mr *_MockRouteGuideClientRecorder) RouteChat(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
95 _s := append([]interface{}{arg0}, arg1...)
96 return _mr.mock.ctrl.RecordCall(_mr.mock, "RouteChat", _s...)
99 // Mock of RouteGuide_RouteChatClient interface
100 type MockRouteGuide_RouteChatClient struct {
101 ctrl *gomock.Controller
102 recorder *_MockRouteGuide_RouteChatClientRecorder
105 // Recorder for MockRouteGuide_RouteChatClient (not exported)
106 type _MockRouteGuide_RouteChatClientRecorder struct {
107 mock *MockRouteGuide_RouteChatClient
110 func NewMockRouteGuide_RouteChatClient(ctrl *gomock.Controller) *MockRouteGuide_RouteChatClient {
111 mock := &MockRouteGuide_RouteChatClient{ctrl: ctrl}
112 mock.recorder = &_MockRouteGuide_RouteChatClientRecorder{mock}
116 func (_m *MockRouteGuide_RouteChatClient) EXPECT() *_MockRouteGuide_RouteChatClientRecorder {
120 func (_m *MockRouteGuide_RouteChatClient) CloseSend() error {
121 ret := _m.ctrl.Call(_m, "CloseSend")
122 ret0, _ := ret[0].(error)
126 func (_mr *_MockRouteGuide_RouteChatClientRecorder) CloseSend() *gomock.Call {
127 return _mr.mock.ctrl.RecordCall(_mr.mock, "CloseSend")
130 func (_m *MockRouteGuide_RouteChatClient) Context() context.Context {
131 ret := _m.ctrl.Call(_m, "Context")
132 ret0, _ := ret[0].(context.Context)
136 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Context() *gomock.Call {
137 return _mr.mock.ctrl.RecordCall(_mr.mock, "Context")
140 func (_m *MockRouteGuide_RouteChatClient) Header() (metadata.MD, error) {
141 ret := _m.ctrl.Call(_m, "Header")
142 ret0, _ := ret[0].(metadata.MD)
143 ret1, _ := ret[1].(error)
147 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Header() *gomock.Call {
148 return _mr.mock.ctrl.RecordCall(_mr.mock, "Header")
151 func (_m *MockRouteGuide_RouteChatClient) Recv() (*routeguide.RouteNote, error) {
152 ret := _m.ctrl.Call(_m, "Recv")
153 ret0, _ := ret[0].(*routeguide.RouteNote)
154 ret1, _ := ret[1].(error)
158 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Recv() *gomock.Call {
159 return _mr.mock.ctrl.RecordCall(_mr.mock, "Recv")
162 func (_m *MockRouteGuide_RouteChatClient) RecvMsg(_param0 interface{}) error {
163 ret := _m.ctrl.Call(_m, "RecvMsg", _param0)
164 ret0, _ := ret[0].(error)
168 func (_mr *_MockRouteGuide_RouteChatClientRecorder) RecvMsg(arg0 interface{}) *gomock.Call {
169 return _mr.mock.ctrl.RecordCall(_mr.mock, "RecvMsg", arg0)
172 func (_m *MockRouteGuide_RouteChatClient) Send(_param0 *routeguide.RouteNote) error {
173 ret := _m.ctrl.Call(_m, "Send", _param0)
174 ret0, _ := ret[0].(error)
178 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Send(arg0 interface{}) *gomock.Call {
179 return _mr.mock.ctrl.RecordCall(_mr.mock, "Send", arg0)
182 func (_m *MockRouteGuide_RouteChatClient) SendMsg(_param0 interface{}) error {
183 ret := _m.ctrl.Call(_m, "SendMsg", _param0)
184 ret0, _ := ret[0].(error)
188 func (_mr *_MockRouteGuide_RouteChatClientRecorder) SendMsg(arg0 interface{}) *gomock.Call {
189 return _mr.mock.ctrl.RecordCall(_mr.mock, "SendMsg", arg0)
192 func (_m *MockRouteGuide_RouteChatClient) Trailer() metadata.MD {
193 ret := _m.ctrl.Call(_m, "Trailer")
194 ret0, _ := ret[0].(metadata.MD)
198 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Trailer() *gomock.Call {
199 return _mr.mock.ctrl.RecordCall(_mr.mock, "Trailer")