OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / grpc / examples / route_guide / mock_routeguide / rg_mock.go
1 // Automatically generated by MockGen. DO NOT EDIT!
2 // Source: google.golang.org/grpc/examples/route_guide/routeguide (interfaces: RouteGuideClient,RouteGuide_RouteChatClient)
3
4 package mock_routeguide
5
6 import (
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"
12 )
13
14 // Mock of RouteGuideClient interface
15 type MockRouteGuideClient struct {
16         ctrl     *gomock.Controller
17         recorder *_MockRouteGuideClientRecorder
18 }
19
20 // Recorder for MockRouteGuideClient (not exported)
21 type _MockRouteGuideClientRecorder struct {
22         mock *MockRouteGuideClient
23 }
24
25 func NewMockRouteGuideClient(ctrl *gomock.Controller) *MockRouteGuideClient {
26         mock := &MockRouteGuideClient{ctrl: ctrl}
27         mock.recorder = &_MockRouteGuideClientRecorder{mock}
28         return mock
29 }
30
31 func (_m *MockRouteGuideClient) EXPECT() *_MockRouteGuideClientRecorder {
32         return _m.recorder
33 }
34
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 {
38                 _s = append(_s, _x)
39         }
40         ret := _m.ctrl.Call(_m, "GetFeature", _s...)
41         ret0, _ := ret[0].(*routeguide.Feature)
42         ret1, _ := ret[1].(error)
43         return ret0, ret1
44 }
45
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...)
49 }
50
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 {
54                 _s = append(_s, _x)
55         }
56         ret := _m.ctrl.Call(_m, "ListFeatures", _s...)
57         ret0, _ := ret[0].(routeguide.RouteGuide_ListFeaturesClient)
58         ret1, _ := ret[1].(error)
59         return ret0, ret1
60 }
61
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...)
65 }
66
67 func (_m *MockRouteGuideClient) RecordRoute(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RecordRouteClient, error) {
68         _s := []interface{}{_param0}
69         for _, _x := range _param1 {
70                 _s = append(_s, _x)
71         }
72         ret := _m.ctrl.Call(_m, "RecordRoute", _s...)
73         ret0, _ := ret[0].(routeguide.RouteGuide_RecordRouteClient)
74         ret1, _ := ret[1].(error)
75         return ret0, ret1
76 }
77
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...)
81 }
82
83 func (_m *MockRouteGuideClient) RouteChat(_param0 context.Context, _param1 ...grpc.CallOption) (routeguide.RouteGuide_RouteChatClient, error) {
84         _s := []interface{}{_param0}
85         for _, _x := range _param1 {
86                 _s = append(_s, _x)
87         }
88         ret := _m.ctrl.Call(_m, "RouteChat", _s...)
89         ret0, _ := ret[0].(routeguide.RouteGuide_RouteChatClient)
90         ret1, _ := ret[1].(error)
91         return ret0, ret1
92 }
93
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...)
97 }
98
99 // Mock of RouteGuide_RouteChatClient interface
100 type MockRouteGuide_RouteChatClient struct {
101         ctrl     *gomock.Controller
102         recorder *_MockRouteGuide_RouteChatClientRecorder
103 }
104
105 // Recorder for MockRouteGuide_RouteChatClient (not exported)
106 type _MockRouteGuide_RouteChatClientRecorder struct {
107         mock *MockRouteGuide_RouteChatClient
108 }
109
110 func NewMockRouteGuide_RouteChatClient(ctrl *gomock.Controller) *MockRouteGuide_RouteChatClient {
111         mock := &MockRouteGuide_RouteChatClient{ctrl: ctrl}
112         mock.recorder = &_MockRouteGuide_RouteChatClientRecorder{mock}
113         return mock
114 }
115
116 func (_m *MockRouteGuide_RouteChatClient) EXPECT() *_MockRouteGuide_RouteChatClientRecorder {
117         return _m.recorder
118 }
119
120 func (_m *MockRouteGuide_RouteChatClient) CloseSend() error {
121         ret := _m.ctrl.Call(_m, "CloseSend")
122         ret0, _ := ret[0].(error)
123         return ret0
124 }
125
126 func (_mr *_MockRouteGuide_RouteChatClientRecorder) CloseSend() *gomock.Call {
127         return _mr.mock.ctrl.RecordCall(_mr.mock, "CloseSend")
128 }
129
130 func (_m *MockRouteGuide_RouteChatClient) Context() context.Context {
131         ret := _m.ctrl.Call(_m, "Context")
132         ret0, _ := ret[0].(context.Context)
133         return ret0
134 }
135
136 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Context() *gomock.Call {
137         return _mr.mock.ctrl.RecordCall(_mr.mock, "Context")
138 }
139
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)
144         return ret0, ret1
145 }
146
147 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Header() *gomock.Call {
148         return _mr.mock.ctrl.RecordCall(_mr.mock, "Header")
149 }
150
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)
155         return ret0, ret1
156 }
157
158 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Recv() *gomock.Call {
159         return _mr.mock.ctrl.RecordCall(_mr.mock, "Recv")
160 }
161
162 func (_m *MockRouteGuide_RouteChatClient) RecvMsg(_param0 interface{}) error {
163         ret := _m.ctrl.Call(_m, "RecvMsg", _param0)
164         ret0, _ := ret[0].(error)
165         return ret0
166 }
167
168 func (_mr *_MockRouteGuide_RouteChatClientRecorder) RecvMsg(arg0 interface{}) *gomock.Call {
169         return _mr.mock.ctrl.RecordCall(_mr.mock, "RecvMsg", arg0)
170 }
171
172 func (_m *MockRouteGuide_RouteChatClient) Send(_param0 *routeguide.RouteNote) error {
173         ret := _m.ctrl.Call(_m, "Send", _param0)
174         ret0, _ := ret[0].(error)
175         return ret0
176 }
177
178 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Send(arg0 interface{}) *gomock.Call {
179         return _mr.mock.ctrl.RecordCall(_mr.mock, "Send", arg0)
180 }
181
182 func (_m *MockRouteGuide_RouteChatClient) SendMsg(_param0 interface{}) error {
183         ret := _m.ctrl.Call(_m, "SendMsg", _param0)
184         ret0, _ := ret[0].(error)
185         return ret0
186 }
187
188 func (_mr *_MockRouteGuide_RouteChatClientRecorder) SendMsg(arg0 interface{}) *gomock.Call {
189         return _mr.mock.ctrl.RecordCall(_mr.mock, "SendMsg", arg0)
190 }
191
192 func (_m *MockRouteGuide_RouteChatClient) Trailer() metadata.MD {
193         ret := _m.ctrl.Call(_m, "Trailer")
194         ret0, _ := ret[0].(metadata.MD)
195         return ret0
196 }
197
198 func (_mr *_MockRouteGuide_RouteChatClientRecorder) Trailer() *gomock.Call {
199         return _mr.mock.ctrl.RecordCall(_mr.mock, "Trailer")
200 }