github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libkbfs/libkey_mocks_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/keybase/client/go/kbfs/libkey (interfaces: KeyOps,KeyServer) 3 4 // Package libkbfs is a generated GoMock package. 5 package libkbfs 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 kbfscrypto "github.com/keybase/client/go/kbfs/kbfscrypto" 13 kbfsmd "github.com/keybase/client/go/kbfs/kbfsmd" 14 keybase1 "github.com/keybase/client/go/protocol/keybase1" 15 ) 16 17 // MockKeyOps is a mock of KeyOps interface. 18 type MockKeyOps struct { 19 ctrl *gomock.Controller 20 recorder *MockKeyOpsMockRecorder 21 } 22 23 // MockKeyOpsMockRecorder is the mock recorder for MockKeyOps. 24 type MockKeyOpsMockRecorder struct { 25 mock *MockKeyOps 26 } 27 28 // NewMockKeyOps creates a new mock instance. 29 func NewMockKeyOps(ctrl *gomock.Controller) *MockKeyOps { 30 mock := &MockKeyOps{ctrl: ctrl} 31 mock.recorder = &MockKeyOpsMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockKeyOps) EXPECT() *MockKeyOpsMockRecorder { 37 return m.recorder 38 } 39 40 // DeleteTLFCryptKeyServerHalf mocks base method. 41 func (m *MockKeyOps) DeleteTLFCryptKeyServerHalf(arg0 context.Context, arg1 keybase1.UID, arg2 kbfscrypto.CryptPublicKey, arg3 kbfscrypto.TLFCryptKeyServerHalfID) error { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "DeleteTLFCryptKeyServerHalf", arg0, arg1, arg2, arg3) 44 ret0, _ := ret[0].(error) 45 return ret0 46 } 47 48 // DeleteTLFCryptKeyServerHalf indicates an expected call of DeleteTLFCryptKeyServerHalf. 49 func (mr *MockKeyOpsMockRecorder) DeleteTLFCryptKeyServerHalf(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTLFCryptKeyServerHalf", reflect.TypeOf((*MockKeyOps)(nil).DeleteTLFCryptKeyServerHalf), arg0, arg1, arg2, arg3) 52 } 53 54 // GetTLFCryptKeyServerHalf mocks base method. 55 func (m *MockKeyOps) GetTLFCryptKeyServerHalf(arg0 context.Context, arg1 kbfscrypto.TLFCryptKeyServerHalfID, arg2 kbfscrypto.CryptPublicKey) (kbfscrypto.TLFCryptKeyServerHalf, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "GetTLFCryptKeyServerHalf", arg0, arg1, arg2) 58 ret0, _ := ret[0].(kbfscrypto.TLFCryptKeyServerHalf) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // GetTLFCryptKeyServerHalf indicates an expected call of GetTLFCryptKeyServerHalf. 64 func (mr *MockKeyOpsMockRecorder) GetTLFCryptKeyServerHalf(arg0, arg1, arg2 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyServerHalf", reflect.TypeOf((*MockKeyOps)(nil).GetTLFCryptKeyServerHalf), arg0, arg1, arg2) 67 } 68 69 // PutTLFCryptKeyServerHalves mocks base method. 70 func (m *MockKeyOps) PutTLFCryptKeyServerHalves(arg0 context.Context, arg1 kbfsmd.UserDeviceKeyServerHalves) error { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "PutTLFCryptKeyServerHalves", arg0, arg1) 73 ret0, _ := ret[0].(error) 74 return ret0 75 } 76 77 // PutTLFCryptKeyServerHalves indicates an expected call of PutTLFCryptKeyServerHalves. 78 func (mr *MockKeyOpsMockRecorder) PutTLFCryptKeyServerHalves(arg0, arg1 interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutTLFCryptKeyServerHalves", reflect.TypeOf((*MockKeyOps)(nil).PutTLFCryptKeyServerHalves), arg0, arg1) 81 } 82 83 // MockKeyServer is a mock of KeyServer interface. 84 type MockKeyServer struct { 85 ctrl *gomock.Controller 86 recorder *MockKeyServerMockRecorder 87 } 88 89 // MockKeyServerMockRecorder is the mock recorder for MockKeyServer. 90 type MockKeyServerMockRecorder struct { 91 mock *MockKeyServer 92 } 93 94 // NewMockKeyServer creates a new mock instance. 95 func NewMockKeyServer(ctrl *gomock.Controller) *MockKeyServer { 96 mock := &MockKeyServer{ctrl: ctrl} 97 mock.recorder = &MockKeyServerMockRecorder{mock} 98 return mock 99 } 100 101 // EXPECT returns an object that allows the caller to indicate expected use. 102 func (m *MockKeyServer) EXPECT() *MockKeyServerMockRecorder { 103 return m.recorder 104 } 105 106 // DeleteTLFCryptKeyServerHalf mocks base method. 107 func (m *MockKeyServer) DeleteTLFCryptKeyServerHalf(arg0 context.Context, arg1 keybase1.UID, arg2 kbfscrypto.CryptPublicKey, arg3 kbfscrypto.TLFCryptKeyServerHalfID) error { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "DeleteTLFCryptKeyServerHalf", arg0, arg1, arg2, arg3) 110 ret0, _ := ret[0].(error) 111 return ret0 112 } 113 114 // DeleteTLFCryptKeyServerHalf indicates an expected call of DeleteTLFCryptKeyServerHalf. 115 func (mr *MockKeyServerMockRecorder) DeleteTLFCryptKeyServerHalf(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTLFCryptKeyServerHalf", reflect.TypeOf((*MockKeyServer)(nil).DeleteTLFCryptKeyServerHalf), arg0, arg1, arg2, arg3) 118 } 119 120 // GetTLFCryptKeyServerHalf mocks base method. 121 func (m *MockKeyServer) GetTLFCryptKeyServerHalf(arg0 context.Context, arg1 kbfscrypto.TLFCryptKeyServerHalfID, arg2 kbfscrypto.CryptPublicKey) (kbfscrypto.TLFCryptKeyServerHalf, error) { 122 m.ctrl.T.Helper() 123 ret := m.ctrl.Call(m, "GetTLFCryptKeyServerHalf", arg0, arg1, arg2) 124 ret0, _ := ret[0].(kbfscrypto.TLFCryptKeyServerHalf) 125 ret1, _ := ret[1].(error) 126 return ret0, ret1 127 } 128 129 // GetTLFCryptKeyServerHalf indicates an expected call of GetTLFCryptKeyServerHalf. 130 func (mr *MockKeyServerMockRecorder) GetTLFCryptKeyServerHalf(arg0, arg1, arg2 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyServerHalf", reflect.TypeOf((*MockKeyServer)(nil).GetTLFCryptKeyServerHalf), arg0, arg1, arg2) 133 } 134 135 // PutTLFCryptKeyServerHalves mocks base method. 136 func (m *MockKeyServer) PutTLFCryptKeyServerHalves(arg0 context.Context, arg1 kbfsmd.UserDeviceKeyServerHalves) error { 137 m.ctrl.T.Helper() 138 ret := m.ctrl.Call(m, "PutTLFCryptKeyServerHalves", arg0, arg1) 139 ret0, _ := ret[0].(error) 140 return ret0 141 } 142 143 // PutTLFCryptKeyServerHalves indicates an expected call of PutTLFCryptKeyServerHalves. 144 func (mr *MockKeyServerMockRecorder) PutTLFCryptKeyServerHalves(arg0, arg1 interface{}) *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutTLFCryptKeyServerHalves", reflect.TypeOf((*MockKeyServer)(nil).PutTLFCryptKeyServerHalves), arg0, arg1) 147 } 148 149 // Shutdown mocks base method. 150 func (m *MockKeyServer) Shutdown() { 151 m.ctrl.T.Helper() 152 m.ctrl.Call(m, "Shutdown") 153 } 154 155 // Shutdown indicates an expected call of Shutdown. 156 func (mr *MockKeyServerMockRecorder) Shutdown() *gomock.Call { 157 mr.mock.ctrl.T.Helper() 158 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockKeyServer)(nil).Shutdown)) 159 }