github.com/hyperledger/aries-framework-go@v0.3.2/pkg/internal/gomocks/client/introduce/mocks.gen.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/hyperledger/aries-framework-go/pkg/client/introduce (interfaces: Provider,ProtocolService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 service "github.com/hyperledger/aries-framework-go/pkg/didcomm/common/service" 12 introduce "github.com/hyperledger/aries-framework-go/pkg/didcomm/protocol/introduce" 13 ) 14 15 // MockProvider is a mock of Provider interface. 16 type MockProvider struct { 17 ctrl *gomock.Controller 18 recorder *MockProviderMockRecorder 19 } 20 21 // MockProviderMockRecorder is the mock recorder for MockProvider. 22 type MockProviderMockRecorder struct { 23 mock *MockProvider 24 } 25 26 // NewMockProvider creates a new mock instance. 27 func NewMockProvider(ctrl *gomock.Controller) *MockProvider { 28 mock := &MockProvider{ctrl: ctrl} 29 mock.recorder = &MockProviderMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockProvider) EXPECT() *MockProviderMockRecorder { 35 return m.recorder 36 } 37 38 // Service mocks base method. 39 func (m *MockProvider) Service(arg0 string) (interface{}, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Service", arg0) 42 ret0, _ := ret[0].(interface{}) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // Service indicates an expected call of Service. 48 func (mr *MockProviderMockRecorder) Service(arg0 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Service", reflect.TypeOf((*MockProvider)(nil).Service), arg0) 51 } 52 53 // MockProtocolService is a mock of ProtocolService interface. 54 type MockProtocolService struct { 55 ctrl *gomock.Controller 56 recorder *MockProtocolServiceMockRecorder 57 } 58 59 // MockProtocolServiceMockRecorder is the mock recorder for MockProtocolService. 60 type MockProtocolServiceMockRecorder struct { 61 mock *MockProtocolService 62 } 63 64 // NewMockProtocolService creates a new mock instance. 65 func NewMockProtocolService(ctrl *gomock.Controller) *MockProtocolService { 66 mock := &MockProtocolService{ctrl: ctrl} 67 mock.recorder = &MockProtocolServiceMockRecorder{mock} 68 return mock 69 } 70 71 // EXPECT returns an object that allows the caller to indicate expected use. 72 func (m *MockProtocolService) EXPECT() *MockProtocolServiceMockRecorder { 73 return m.recorder 74 } 75 76 // ActionContinue mocks base method. 77 func (m *MockProtocolService) ActionContinue(arg0 string, arg1 introduce.Opt) error { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "ActionContinue", arg0, arg1) 80 ret0, _ := ret[0].(error) 81 return ret0 82 } 83 84 // ActionContinue indicates an expected call of ActionContinue. 85 func (mr *MockProtocolServiceMockRecorder) ActionContinue(arg0, arg1 interface{}) *gomock.Call { 86 mr.mock.ctrl.T.Helper() 87 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionContinue", reflect.TypeOf((*MockProtocolService)(nil).ActionContinue), arg0, arg1) 88 } 89 90 // ActionStop mocks base method. 91 func (m *MockProtocolService) ActionStop(arg0 string, arg1 error) error { 92 m.ctrl.T.Helper() 93 ret := m.ctrl.Call(m, "ActionStop", arg0, arg1) 94 ret0, _ := ret[0].(error) 95 return ret0 96 } 97 98 // ActionStop indicates an expected call of ActionStop. 99 func (mr *MockProtocolServiceMockRecorder) ActionStop(arg0, arg1 interface{}) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionStop", reflect.TypeOf((*MockProtocolService)(nil).ActionStop), arg0, arg1) 102 } 103 104 // Actions mocks base method. 105 func (m *MockProtocolService) Actions() ([]introduce.Action, error) { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "Actions") 108 ret0, _ := ret[0].([]introduce.Action) 109 ret1, _ := ret[1].(error) 110 return ret0, ret1 111 } 112 113 // Actions indicates an expected call of Actions. 114 func (mr *MockProtocolServiceMockRecorder) Actions() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Actions", reflect.TypeOf((*MockProtocolService)(nil).Actions)) 117 } 118 119 // HandleInbound mocks base method. 120 func (m *MockProtocolService) HandleInbound(arg0 service.DIDCommMsg, arg1 service.DIDCommContext) (string, error) { 121 m.ctrl.T.Helper() 122 ret := m.ctrl.Call(m, "HandleInbound", arg0, arg1) 123 ret0, _ := ret[0].(string) 124 ret1, _ := ret[1].(error) 125 return ret0, ret1 126 } 127 128 // HandleInbound indicates an expected call of HandleInbound. 129 func (mr *MockProtocolServiceMockRecorder) HandleInbound(arg0, arg1 interface{}) *gomock.Call { 130 mr.mock.ctrl.T.Helper() 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleInbound", reflect.TypeOf((*MockProtocolService)(nil).HandleInbound), arg0, arg1) 132 } 133 134 // HandleOutbound mocks base method. 135 func (m *MockProtocolService) HandleOutbound(arg0 service.DIDCommMsg, arg1, arg2 string) (string, error) { 136 m.ctrl.T.Helper() 137 ret := m.ctrl.Call(m, "HandleOutbound", arg0, arg1, arg2) 138 ret0, _ := ret[0].(string) 139 ret1, _ := ret[1].(error) 140 return ret0, ret1 141 } 142 143 // HandleOutbound indicates an expected call of HandleOutbound. 144 func (mr *MockProtocolServiceMockRecorder) HandleOutbound(arg0, arg1, arg2 interface{}) *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleOutbound", reflect.TypeOf((*MockProtocolService)(nil).HandleOutbound), arg0, arg1, arg2) 147 } 148 149 // RegisterActionEvent mocks base method. 150 func (m *MockProtocolService) RegisterActionEvent(arg0 chan<- service.DIDCommAction) error { 151 m.ctrl.T.Helper() 152 ret := m.ctrl.Call(m, "RegisterActionEvent", arg0) 153 ret0, _ := ret[0].(error) 154 return ret0 155 } 156 157 // RegisterActionEvent indicates an expected call of RegisterActionEvent. 158 func (mr *MockProtocolServiceMockRecorder) RegisterActionEvent(arg0 interface{}) *gomock.Call { 159 mr.mock.ctrl.T.Helper() 160 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterActionEvent", reflect.TypeOf((*MockProtocolService)(nil).RegisterActionEvent), arg0) 161 } 162 163 // RegisterMsgEvent mocks base method. 164 func (m *MockProtocolService) RegisterMsgEvent(arg0 chan<- service.StateMsg) error { 165 m.ctrl.T.Helper() 166 ret := m.ctrl.Call(m, "RegisterMsgEvent", arg0) 167 ret0, _ := ret[0].(error) 168 return ret0 169 } 170 171 // RegisterMsgEvent indicates an expected call of RegisterMsgEvent. 172 func (mr *MockProtocolServiceMockRecorder) RegisterMsgEvent(arg0 interface{}) *gomock.Call { 173 mr.mock.ctrl.T.Helper() 174 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterMsgEvent", reflect.TypeOf((*MockProtocolService)(nil).RegisterMsgEvent), arg0) 175 } 176 177 // UnregisterActionEvent mocks base method. 178 func (m *MockProtocolService) UnregisterActionEvent(arg0 chan<- service.DIDCommAction) error { 179 m.ctrl.T.Helper() 180 ret := m.ctrl.Call(m, "UnregisterActionEvent", arg0) 181 ret0, _ := ret[0].(error) 182 return ret0 183 } 184 185 // UnregisterActionEvent indicates an expected call of UnregisterActionEvent. 186 func (mr *MockProtocolServiceMockRecorder) UnregisterActionEvent(arg0 interface{}) *gomock.Call { 187 mr.mock.ctrl.T.Helper() 188 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterActionEvent", reflect.TypeOf((*MockProtocolService)(nil).UnregisterActionEvent), arg0) 189 } 190 191 // UnregisterMsgEvent mocks base method. 192 func (m *MockProtocolService) UnregisterMsgEvent(arg0 chan<- service.StateMsg) error { 193 m.ctrl.T.Helper() 194 ret := m.ctrl.Call(m, "UnregisterMsgEvent", arg0) 195 ret0, _ := ret[0].(error) 196 return ret0 197 } 198 199 // UnregisterMsgEvent indicates an expected call of UnregisterMsgEvent. 200 func (mr *MockProtocolServiceMockRecorder) UnregisterMsgEvent(arg0 interface{}) *gomock.Call { 201 mr.mock.ctrl.T.Helper() 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterMsgEvent", reflect.TypeOf((*MockProtocolService)(nil).UnregisterMsgEvent), arg0) 203 }