Koren Lev | 19ca78f | 2018-11-21 18:46:54 +0200 | [diff] [blame] | 1 | // Code generated by MockGen. DO NOT EDIT. |
| 2 | // Source: git.fd.io/govpp.git/api (Interfaces: Channel) |
| 3 | |
| 4 | // Package mock_api is a generated GoMock package. |
| 5 | package main |
| 6 | |
| 7 | import ( |
| 8 | api "git.fd.io/govpp.git/api" |
| 9 | gomock "github.com/golang/mock/gomock" |
| 10 | reflect "reflect" |
| 11 | time "time" |
| 12 | ) |
| 13 | |
| 14 | // MockChannel is a mock of Channel interface |
| 15 | type MockChannel struct { |
| 16 | ctrl *gomock.Controller |
| 17 | recorder *MockChannelMockRecorder |
| 18 | } |
| 19 | |
| 20 | // MockChannelMockRecorder is the mock recorder for MockChannel |
| 21 | type MockChannelMockRecorder struct { |
| 22 | mock *MockChannel |
| 23 | } |
| 24 | |
| 25 | // NewMockChannel creates a new mock instance |
| 26 | func NewMockChannel(ctrl *gomock.Controller) *MockChannel { |
| 27 | mock := &MockChannel{ctrl: ctrl} |
| 28 | mock.recorder = &MockChannelMockRecorder{mock} |
| 29 | return mock |
| 30 | } |
| 31 | |
| 32 | // EXPECT returns an object that allows the caller to indicate expected use |
| 33 | func (m *MockChannel) EXPECT() *MockChannelMockRecorder { |
| 34 | return m.recorder |
| 35 | } |
| 36 | |
| 37 | // Close mocks base method |
| 38 | func (m *MockChannel) Close() { |
| 39 | m.ctrl.Call(m, "Close") |
| 40 | } |
| 41 | |
| 42 | // Close indicates an expected call of Close |
| 43 | func (mr *MockChannelMockRecorder) Close() *gomock.Call { |
| 44 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockChannel)(nil).Close)) |
| 45 | } |
| 46 | |
| 47 | // SendMultiRequest mocks base method |
| 48 | func (m *MockChannel) SendMultiRequest(arg0 api.Message) api.MultiRequestCtx { |
| 49 | ret := m.ctrl.Call(m, "SendMultiRequest", arg0) |
| 50 | ret0, _ := ret[0].(api.MultiRequestCtx) |
| 51 | return ret0 |
| 52 | } |
| 53 | |
| 54 | // SendMultiRequest indicates an expected call of SendMultiRequest |
| 55 | func (mr *MockChannelMockRecorder) SendMultiRequest(arg0 interface{}) *gomock.Call { |
| 56 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMultiRequest", reflect.TypeOf((*MockChannel)(nil).SendMultiRequest), arg0) |
| 57 | } |
| 58 | |
| 59 | // SendRequest mocks base method |
| 60 | func (m *MockChannel) SendRequest(arg0 api.Message) api.RequestCtx { |
| 61 | ret := m.ctrl.Call(m, "SendRequest", arg0) |
| 62 | ret0, _ := ret[0].(api.RequestCtx) |
| 63 | return ret0 |
| 64 | } |
| 65 | |
| 66 | // SendRequest indicates an expected call of SendRequest |
| 67 | func (mr *MockChannelMockRecorder) SendRequest(arg0 interface{}) *gomock.Call { |
| 68 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockChannel)(nil).SendRequest), arg0) |
| 69 | } |
| 70 | |
| 71 | // SetReplyTimeout mocks base method |
| 72 | func (m *MockChannel) SetReplyTimeout(arg0 time.Duration) { |
| 73 | m.ctrl.Call(m, "SetReplyTimeout", arg0) |
| 74 | } |
| 75 | |
| 76 | // SetReplyTimeout indicates an expected call of SetReplyTimeout |
| 77 | func (mr *MockChannelMockRecorder) SetReplyTimeout(arg0 interface{}) *gomock.Call { |
| 78 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReplyTimeout", reflect.TypeOf((*MockChannel)(nil).SetReplyTimeout), arg0) |
| 79 | } |
| 80 | |
| 81 | // SubscribeNotification mocks base method |
| 82 | func (m *MockChannel) SubscribeNotification(arg0 chan api.Message, arg1 api.Message) (api.SubscriptionCtx, error) { |
| 83 | ret := m.ctrl.Call(m, "SubscribeNotification", arg0, arg1) |
| 84 | ret0, _ := ret[0].(api.SubscriptionCtx) |
| 85 | ret1, _ := ret[1].(error) |
| 86 | return ret0, ret1 |
| 87 | } |
| 88 | |
| 89 | // SubscribeNotification indicates an expected call of SubscribeNotification |
| 90 | func (mr *MockChannelMockRecorder) SubscribeNotification(arg0, arg1 interface{}) *gomock.Call { |
| 91 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscribeNotification", reflect.TypeOf((*MockChannel)(nil).SubscribeNotification), arg0, arg1) |
| 92 | } |