github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/kbfs/libkbfs/libkbfs_mocks_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/keybase/client/go/kbfs/libkbfs (interfaces: BlockOps,BlockServer,Chat,Clock,Crypto,KBFSOps,KBPKI,KeybaseService,KeyCache,KeyManager,MDCache,MDOps,MDServer,Node,NodeCache,NodeID,Notifier,RekeyQueue,Reporter,SubscriptionNotifier,SubscriptionManagerPublisher) 3 4 // Package libkbfs is a generated GoMock package. 5 package libkbfs 6 7 import ( 8 context "context" 9 fs "io/fs" 10 reflect "reflect" 11 time "time" 12 13 gomock "github.com/golang/mock/gomock" 14 data "github.com/keybase/client/go/kbfs/data" 15 favorites "github.com/keybase/client/go/kbfs/favorites" 16 idutil "github.com/keybase/client/go/kbfs/idutil" 17 kbfsblock "github.com/keybase/client/go/kbfs/kbfsblock" 18 kbfscrypto "github.com/keybase/client/go/kbfs/kbfscrypto" 19 kbfsmd "github.com/keybase/client/go/kbfs/kbfsmd" 20 libkey "github.com/keybase/client/go/kbfs/libkey" 21 tlf "github.com/keybase/client/go/kbfs/tlf" 22 tlfhandle "github.com/keybase/client/go/kbfs/tlfhandle" 23 kbun "github.com/keybase/client/go/kbun" 24 chat1 "github.com/keybase/client/go/protocol/chat1" 25 keybase1 "github.com/keybase/client/go/protocol/keybase1" 26 billy "gopkg.in/src-d/go-billy.v4" 27 ) 28 29 // MockBlockOps is a mock of BlockOps interface. 30 type MockBlockOps struct { 31 ctrl *gomock.Controller 32 recorder *MockBlockOpsMockRecorder 33 } 34 35 // MockBlockOpsMockRecorder is the mock recorder for MockBlockOps. 36 type MockBlockOpsMockRecorder struct { 37 mock *MockBlockOps 38 } 39 40 // NewMockBlockOps creates a new mock instance. 41 func NewMockBlockOps(ctrl *gomock.Controller) *MockBlockOps { 42 mock := &MockBlockOps{ctrl: ctrl} 43 mock.recorder = &MockBlockOpsMockRecorder{mock} 44 return mock 45 } 46 47 // EXPECT returns an object that allows the caller to indicate expected use. 48 func (m *MockBlockOps) EXPECT() *MockBlockOpsMockRecorder { 49 return m.recorder 50 } 51 52 // Archive mocks base method. 53 func (m *MockBlockOps) Archive(arg0 context.Context, arg1 tlf.ID, arg2 []data.BlockPointer) error { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Archive", arg0, arg1, arg2) 56 ret0, _ := ret[0].(error) 57 return ret0 58 } 59 60 // Archive indicates an expected call of Archive. 61 func (mr *MockBlockOpsMockRecorder) Archive(arg0, arg1, arg2 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Archive", reflect.TypeOf((*MockBlockOps)(nil).Archive), arg0, arg1, arg2) 64 } 65 66 // BlockRetriever mocks base method. 67 func (m *MockBlockOps) BlockRetriever() BlockRetriever { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "BlockRetriever") 70 ret0, _ := ret[0].(BlockRetriever) 71 return ret0 72 } 73 74 // BlockRetriever indicates an expected call of BlockRetriever. 75 func (mr *MockBlockOpsMockRecorder) BlockRetriever() *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockRetriever", reflect.TypeOf((*MockBlockOps)(nil).BlockRetriever)) 78 } 79 80 // Delete mocks base method. 81 func (m *MockBlockOps) Delete(arg0 context.Context, arg1 tlf.ID, arg2 []data.BlockPointer) (map[kbfsblock.ID]int, error) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) 84 ret0, _ := ret[0].(map[kbfsblock.ID]int) 85 ret1, _ := ret[1].(error) 86 return ret0, ret1 87 } 88 89 // Delete indicates an expected call of Delete. 90 func (mr *MockBlockOpsMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockBlockOps)(nil).Delete), arg0, arg1, arg2) 93 } 94 95 // Get mocks base method. 96 func (m *MockBlockOps) Get(arg0 context.Context, arg1 libkey.KeyMetadata, arg2 data.BlockPointer, arg3 data.Block, arg4 data.BlockCacheLifetime, arg5 data.BranchName) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3, arg4, arg5) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // Get indicates an expected call of Get. 104 func (mr *MockBlockOpsMockRecorder) Get(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBlockOps)(nil).Get), arg0, arg1, arg2, arg3, arg4, arg5) 107 } 108 109 // GetEncodedSizes mocks base method. 110 func (m *MockBlockOps) GetEncodedSizes(arg0 context.Context, arg1 libkey.KeyMetadata, arg2 []data.BlockPointer) ([]uint32, []keybase1.BlockStatus, error) { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "GetEncodedSizes", arg0, arg1, arg2) 113 ret0, _ := ret[0].([]uint32) 114 ret1, _ := ret[1].([]keybase1.BlockStatus) 115 ret2, _ := ret[2].(error) 116 return ret0, ret1, ret2 117 } 118 119 // GetEncodedSizes indicates an expected call of GetEncodedSizes. 120 func (mr *MockBlockOpsMockRecorder) GetEncodedSizes(arg0, arg1, arg2 interface{}) *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncodedSizes", reflect.TypeOf((*MockBlockOps)(nil).GetEncodedSizes), arg0, arg1, arg2) 123 } 124 125 // GetLiveCount mocks base method. 126 func (m *MockBlockOps) GetLiveCount(arg0 context.Context, arg1 tlf.ID, arg2 []data.BlockPointer) (map[kbfsblock.ID]int, error) { 127 m.ctrl.T.Helper() 128 ret := m.ctrl.Call(m, "GetLiveCount", arg0, arg1, arg2) 129 ret0, _ := ret[0].(map[kbfsblock.ID]int) 130 ret1, _ := ret[1].(error) 131 return ret0, ret1 132 } 133 134 // GetLiveCount indicates an expected call of GetLiveCount. 135 func (mr *MockBlockOpsMockRecorder) GetLiveCount(arg0, arg1, arg2 interface{}) *gomock.Call { 136 mr.mock.ctrl.T.Helper() 137 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLiveCount", reflect.TypeOf((*MockBlockOps)(nil).GetLiveCount), arg0, arg1, arg2) 138 } 139 140 // Prefetcher mocks base method. 141 func (m *MockBlockOps) Prefetcher() Prefetcher { 142 m.ctrl.T.Helper() 143 ret := m.ctrl.Call(m, "Prefetcher") 144 ret0, _ := ret[0].(Prefetcher) 145 return ret0 146 } 147 148 // Prefetcher indicates an expected call of Prefetcher. 149 func (mr *MockBlockOpsMockRecorder) Prefetcher() *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Prefetcher", reflect.TypeOf((*MockBlockOps)(nil).Prefetcher)) 152 } 153 154 // Ready mocks base method. 155 func (m *MockBlockOps) Ready(arg0 context.Context, arg1 libkey.KeyMetadata, arg2 data.Block) (kbfsblock.ID, int, data.ReadyBlockData, error) { 156 m.ctrl.T.Helper() 157 ret := m.ctrl.Call(m, "Ready", arg0, arg1, arg2) 158 ret0, _ := ret[0].(kbfsblock.ID) 159 ret1, _ := ret[1].(int) 160 ret2, _ := ret[2].(data.ReadyBlockData) 161 ret3, _ := ret[3].(error) 162 return ret0, ret1, ret2, ret3 163 } 164 165 // Ready indicates an expected call of Ready. 166 func (mr *MockBlockOpsMockRecorder) Ready(arg0, arg1, arg2 interface{}) *gomock.Call { 167 mr.mock.ctrl.T.Helper() 168 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ready", reflect.TypeOf((*MockBlockOps)(nil).Ready), arg0, arg1, arg2) 169 } 170 171 // Shutdown mocks base method. 172 func (m *MockBlockOps) Shutdown(arg0 context.Context) error { 173 m.ctrl.T.Helper() 174 ret := m.ctrl.Call(m, "Shutdown", arg0) 175 ret0, _ := ret[0].(error) 176 return ret0 177 } 178 179 // Shutdown indicates an expected call of Shutdown. 180 func (mr *MockBlockOpsMockRecorder) Shutdown(arg0 interface{}) *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockBlockOps)(nil).Shutdown), arg0) 183 } 184 185 // TogglePrefetcher mocks base method. 186 func (m *MockBlockOps) TogglePrefetcher(arg0 bool) <-chan struct{} { 187 m.ctrl.T.Helper() 188 ret := m.ctrl.Call(m, "TogglePrefetcher", arg0) 189 ret0, _ := ret[0].(<-chan struct{}) 190 return ret0 191 } 192 193 // TogglePrefetcher indicates an expected call of TogglePrefetcher. 194 func (mr *MockBlockOpsMockRecorder) TogglePrefetcher(arg0 interface{}) *gomock.Call { 195 mr.mock.ctrl.T.Helper() 196 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TogglePrefetcher", reflect.TypeOf((*MockBlockOps)(nil).TogglePrefetcher), arg0) 197 } 198 199 // MockBlockServer is a mock of BlockServer interface. 200 type MockBlockServer struct { 201 ctrl *gomock.Controller 202 recorder *MockBlockServerMockRecorder 203 } 204 205 // MockBlockServerMockRecorder is the mock recorder for MockBlockServer. 206 type MockBlockServerMockRecorder struct { 207 mock *MockBlockServer 208 } 209 210 // NewMockBlockServer creates a new mock instance. 211 func NewMockBlockServer(ctrl *gomock.Controller) *MockBlockServer { 212 mock := &MockBlockServer{ctrl: ctrl} 213 mock.recorder = &MockBlockServerMockRecorder{mock} 214 return mock 215 } 216 217 // EXPECT returns an object that allows the caller to indicate expected use. 218 func (m *MockBlockServer) EXPECT() *MockBlockServerMockRecorder { 219 return m.recorder 220 } 221 222 // AddBlockReference mocks base method. 223 func (m *MockBlockServer) AddBlockReference(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ID, arg3 kbfsblock.Context) error { 224 m.ctrl.T.Helper() 225 ret := m.ctrl.Call(m, "AddBlockReference", arg0, arg1, arg2, arg3) 226 ret0, _ := ret[0].(error) 227 return ret0 228 } 229 230 // AddBlockReference indicates an expected call of AddBlockReference. 231 func (mr *MockBlockServerMockRecorder) AddBlockReference(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 232 mr.mock.ctrl.T.Helper() 233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBlockReference", reflect.TypeOf((*MockBlockServer)(nil).AddBlockReference), arg0, arg1, arg2, arg3) 234 } 235 236 // ArchiveBlockReferences mocks base method. 237 func (m *MockBlockServer) ArchiveBlockReferences(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ContextMap) error { 238 m.ctrl.T.Helper() 239 ret := m.ctrl.Call(m, "ArchiveBlockReferences", arg0, arg1, arg2) 240 ret0, _ := ret[0].(error) 241 return ret0 242 } 243 244 // ArchiveBlockReferences indicates an expected call of ArchiveBlockReferences. 245 func (mr *MockBlockServerMockRecorder) ArchiveBlockReferences(arg0, arg1, arg2 interface{}) *gomock.Call { 246 mr.mock.ctrl.T.Helper() 247 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArchiveBlockReferences", reflect.TypeOf((*MockBlockServer)(nil).ArchiveBlockReferences), arg0, arg1, arg2) 248 } 249 250 // FastForwardBackoff mocks base method. 251 func (m *MockBlockServer) FastForwardBackoff() { 252 m.ctrl.T.Helper() 253 m.ctrl.Call(m, "FastForwardBackoff") 254 } 255 256 // FastForwardBackoff indicates an expected call of FastForwardBackoff. 257 func (mr *MockBlockServerMockRecorder) FastForwardBackoff() *gomock.Call { 258 mr.mock.ctrl.T.Helper() 259 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FastForwardBackoff", reflect.TypeOf((*MockBlockServer)(nil).FastForwardBackoff)) 260 } 261 262 // Get mocks base method. 263 func (m *MockBlockServer) Get(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ID, arg3 kbfsblock.Context, arg4 DiskBlockCacheType) ([]byte, kbfscrypto.BlockCryptKeyServerHalf, error) { 264 m.ctrl.T.Helper() 265 ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3, arg4) 266 ret0, _ := ret[0].([]byte) 267 ret1, _ := ret[1].(kbfscrypto.BlockCryptKeyServerHalf) 268 ret2, _ := ret[2].(error) 269 return ret0, ret1, ret2 270 } 271 272 // Get indicates an expected call of Get. 273 func (mr *MockBlockServerMockRecorder) Get(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 274 mr.mock.ctrl.T.Helper() 275 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBlockServer)(nil).Get), arg0, arg1, arg2, arg3, arg4) 276 } 277 278 // GetEncodedSizes mocks base method. 279 func (m *MockBlockServer) GetEncodedSizes(arg0 context.Context, arg1 tlf.ID, arg2 []kbfsblock.ID, arg3 []kbfsblock.Context) ([]uint32, []keybase1.BlockStatus, error) { 280 m.ctrl.T.Helper() 281 ret := m.ctrl.Call(m, "GetEncodedSizes", arg0, arg1, arg2, arg3) 282 ret0, _ := ret[0].([]uint32) 283 ret1, _ := ret[1].([]keybase1.BlockStatus) 284 ret2, _ := ret[2].(error) 285 return ret0, ret1, ret2 286 } 287 288 // GetEncodedSizes indicates an expected call of GetEncodedSizes. 289 func (mr *MockBlockServerMockRecorder) GetEncodedSizes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 290 mr.mock.ctrl.T.Helper() 291 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncodedSizes", reflect.TypeOf((*MockBlockServer)(nil).GetEncodedSizes), arg0, arg1, arg2, arg3) 292 } 293 294 // GetLiveBlockReferences mocks base method. 295 func (m *MockBlockServer) GetLiveBlockReferences(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ContextMap) (map[kbfsblock.ID]int, error) { 296 m.ctrl.T.Helper() 297 ret := m.ctrl.Call(m, "GetLiveBlockReferences", arg0, arg1, arg2) 298 ret0, _ := ret[0].(map[kbfsblock.ID]int) 299 ret1, _ := ret[1].(error) 300 return ret0, ret1 301 } 302 303 // GetLiveBlockReferences indicates an expected call of GetLiveBlockReferences. 304 func (mr *MockBlockServerMockRecorder) GetLiveBlockReferences(arg0, arg1, arg2 interface{}) *gomock.Call { 305 mr.mock.ctrl.T.Helper() 306 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLiveBlockReferences", reflect.TypeOf((*MockBlockServer)(nil).GetLiveBlockReferences), arg0, arg1, arg2) 307 } 308 309 // GetTeamQuotaInfo mocks base method. 310 func (m *MockBlockServer) GetTeamQuotaInfo(arg0 context.Context, arg1 keybase1.TeamID) (*kbfsblock.QuotaInfo, error) { 311 m.ctrl.T.Helper() 312 ret := m.ctrl.Call(m, "GetTeamQuotaInfo", arg0, arg1) 313 ret0, _ := ret[0].(*kbfsblock.QuotaInfo) 314 ret1, _ := ret[1].(error) 315 return ret0, ret1 316 } 317 318 // GetTeamQuotaInfo indicates an expected call of GetTeamQuotaInfo. 319 func (mr *MockBlockServerMockRecorder) GetTeamQuotaInfo(arg0, arg1 interface{}) *gomock.Call { 320 mr.mock.ctrl.T.Helper() 321 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamQuotaInfo", reflect.TypeOf((*MockBlockServer)(nil).GetTeamQuotaInfo), arg0, arg1) 322 } 323 324 // GetUserQuotaInfo mocks base method. 325 func (m *MockBlockServer) GetUserQuotaInfo(arg0 context.Context) (*kbfsblock.QuotaInfo, error) { 326 m.ctrl.T.Helper() 327 ret := m.ctrl.Call(m, "GetUserQuotaInfo", arg0) 328 ret0, _ := ret[0].(*kbfsblock.QuotaInfo) 329 ret1, _ := ret[1].(error) 330 return ret0, ret1 331 } 332 333 // GetUserQuotaInfo indicates an expected call of GetUserQuotaInfo. 334 func (mr *MockBlockServerMockRecorder) GetUserQuotaInfo(arg0 interface{}) *gomock.Call { 335 mr.mock.ctrl.T.Helper() 336 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserQuotaInfo", reflect.TypeOf((*MockBlockServer)(nil).GetUserQuotaInfo), arg0) 337 } 338 339 // IsUnflushed mocks base method. 340 func (m *MockBlockServer) IsUnflushed(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ID) (bool, error) { 341 m.ctrl.T.Helper() 342 ret := m.ctrl.Call(m, "IsUnflushed", arg0, arg1, arg2) 343 ret0, _ := ret[0].(bool) 344 ret1, _ := ret[1].(error) 345 return ret0, ret1 346 } 347 348 // IsUnflushed indicates an expected call of IsUnflushed. 349 func (mr *MockBlockServerMockRecorder) IsUnflushed(arg0, arg1, arg2 interface{}) *gomock.Call { 350 mr.mock.ctrl.T.Helper() 351 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUnflushed", reflect.TypeOf((*MockBlockServer)(nil).IsUnflushed), arg0, arg1, arg2) 352 } 353 354 // Put mocks base method. 355 func (m *MockBlockServer) Put(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ID, arg3 kbfsblock.Context, arg4 []byte, arg5 kbfscrypto.BlockCryptKeyServerHalf, arg6 DiskBlockCacheType) error { 356 m.ctrl.T.Helper() 357 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 358 ret0, _ := ret[0].(error) 359 return ret0 360 } 361 362 // Put indicates an expected call of Put. 363 func (mr *MockBlockServerMockRecorder) Put(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 364 mr.mock.ctrl.T.Helper() 365 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockBlockServer)(nil).Put), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 366 } 367 368 // PutAgain mocks base method. 369 func (m *MockBlockServer) PutAgain(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ID, arg3 kbfsblock.Context, arg4 []byte, arg5 kbfscrypto.BlockCryptKeyServerHalf, arg6 DiskBlockCacheType) error { 370 m.ctrl.T.Helper() 371 ret := m.ctrl.Call(m, "PutAgain", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 372 ret0, _ := ret[0].(error) 373 return ret0 374 } 375 376 // PutAgain indicates an expected call of PutAgain. 377 func (mr *MockBlockServerMockRecorder) PutAgain(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 378 mr.mock.ctrl.T.Helper() 379 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAgain", reflect.TypeOf((*MockBlockServer)(nil).PutAgain), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 380 } 381 382 // RefreshAuthToken mocks base method. 383 func (m *MockBlockServer) RefreshAuthToken(arg0 context.Context) { 384 m.ctrl.T.Helper() 385 m.ctrl.Call(m, "RefreshAuthToken", arg0) 386 } 387 388 // RefreshAuthToken indicates an expected call of RefreshAuthToken. 389 func (mr *MockBlockServerMockRecorder) RefreshAuthToken(arg0 interface{}) *gomock.Call { 390 mr.mock.ctrl.T.Helper() 391 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshAuthToken", reflect.TypeOf((*MockBlockServer)(nil).RefreshAuthToken), arg0) 392 } 393 394 // RemoveBlockReferences mocks base method. 395 func (m *MockBlockServer) RemoveBlockReferences(arg0 context.Context, arg1 tlf.ID, arg2 kbfsblock.ContextMap) (map[kbfsblock.ID]int, error) { 396 m.ctrl.T.Helper() 397 ret := m.ctrl.Call(m, "RemoveBlockReferences", arg0, arg1, arg2) 398 ret0, _ := ret[0].(map[kbfsblock.ID]int) 399 ret1, _ := ret[1].(error) 400 return ret0, ret1 401 } 402 403 // RemoveBlockReferences indicates an expected call of RemoveBlockReferences. 404 func (mr *MockBlockServerMockRecorder) RemoveBlockReferences(arg0, arg1, arg2 interface{}) *gomock.Call { 405 mr.mock.ctrl.T.Helper() 406 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveBlockReferences", reflect.TypeOf((*MockBlockServer)(nil).RemoveBlockReferences), arg0, arg1, arg2) 407 } 408 409 // Shutdown mocks base method. 410 func (m *MockBlockServer) Shutdown(arg0 context.Context) { 411 m.ctrl.T.Helper() 412 m.ctrl.Call(m, "Shutdown", arg0) 413 } 414 415 // Shutdown indicates an expected call of Shutdown. 416 func (mr *MockBlockServerMockRecorder) Shutdown(arg0 interface{}) *gomock.Call { 417 mr.mock.ctrl.T.Helper() 418 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockBlockServer)(nil).Shutdown), arg0) 419 } 420 421 // MockChat is a mock of Chat interface. 422 type MockChat struct { 423 ctrl *gomock.Controller 424 recorder *MockChatMockRecorder 425 } 426 427 // MockChatMockRecorder is the mock recorder for MockChat. 428 type MockChatMockRecorder struct { 429 mock *MockChat 430 } 431 432 // NewMockChat creates a new mock instance. 433 func NewMockChat(ctrl *gomock.Controller) *MockChat { 434 mock := &MockChat{ctrl: ctrl} 435 mock.recorder = &MockChatMockRecorder{mock} 436 return mock 437 } 438 439 // EXPECT returns an object that allows the caller to indicate expected use. 440 func (m *MockChat) EXPECT() *MockChatMockRecorder { 441 return m.recorder 442 } 443 444 // ClearCache mocks base method. 445 func (m *MockChat) ClearCache() { 446 m.ctrl.T.Helper() 447 m.ctrl.Call(m, "ClearCache") 448 } 449 450 // ClearCache indicates an expected call of ClearCache. 451 func (mr *MockChatMockRecorder) ClearCache() *gomock.Call { 452 mr.mock.ctrl.T.Helper() 453 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearCache", reflect.TypeOf((*MockChat)(nil).ClearCache)) 454 } 455 456 // GetChannels mocks base method. 457 func (m *MockChat) GetChannels(arg0 context.Context, arg1 tlf.CanonicalName, arg2 tlf.Type, arg3 chat1.TopicType) ([]chat1.ConversationID, []string, error) { 458 m.ctrl.T.Helper() 459 ret := m.ctrl.Call(m, "GetChannels", arg0, arg1, arg2, arg3) 460 ret0, _ := ret[0].([]chat1.ConversationID) 461 ret1, _ := ret[1].([]string) 462 ret2, _ := ret[2].(error) 463 return ret0, ret1, ret2 464 } 465 466 // GetChannels indicates an expected call of GetChannels. 467 func (mr *MockChatMockRecorder) GetChannels(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 468 mr.mock.ctrl.T.Helper() 469 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChannels", reflect.TypeOf((*MockChat)(nil).GetChannels), arg0, arg1, arg2, arg3) 470 } 471 472 // GetConversationID mocks base method. 473 func (m *MockChat) GetConversationID(arg0 context.Context, arg1 tlf.CanonicalName, arg2 tlf.Type, arg3 string, arg4 chat1.TopicType) (chat1.ConversationID, error) { 474 m.ctrl.T.Helper() 475 ret := m.ctrl.Call(m, "GetConversationID", arg0, arg1, arg2, arg3, arg4) 476 ret0, _ := ret[0].(chat1.ConversationID) 477 ret1, _ := ret[1].(error) 478 return ret0, ret1 479 } 480 481 // GetConversationID indicates an expected call of GetConversationID. 482 func (mr *MockChatMockRecorder) GetConversationID(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 483 mr.mock.ctrl.T.Helper() 484 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConversationID", reflect.TypeOf((*MockChat)(nil).GetConversationID), arg0, arg1, arg2, arg3, arg4) 485 } 486 487 // GetGroupedInbox mocks base method. 488 func (m *MockChat) GetGroupedInbox(arg0 context.Context, arg1 chat1.TopicType, arg2 int) ([]*tlfhandle.Handle, error) { 489 m.ctrl.T.Helper() 490 ret := m.ctrl.Call(m, "GetGroupedInbox", arg0, arg1, arg2) 491 ret0, _ := ret[0].([]*tlfhandle.Handle) 492 ret1, _ := ret[1].(error) 493 return ret0, ret1 494 } 495 496 // GetGroupedInbox indicates an expected call of GetGroupedInbox. 497 func (mr *MockChatMockRecorder) GetGroupedInbox(arg0, arg1, arg2 interface{}) *gomock.Call { 498 mr.mock.ctrl.T.Helper() 499 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupedInbox", reflect.TypeOf((*MockChat)(nil).GetGroupedInbox), arg0, arg1, arg2) 500 } 501 502 // ReadChannel mocks base method. 503 func (m *MockChat) ReadChannel(arg0 context.Context, arg1 chat1.ConversationID, arg2 []byte) ([]string, []byte, error) { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "ReadChannel", arg0, arg1, arg2) 506 ret0, _ := ret[0].([]string) 507 ret1, _ := ret[1].([]byte) 508 ret2, _ := ret[2].(error) 509 return ret0, ret1, ret2 510 } 511 512 // ReadChannel indicates an expected call of ReadChannel. 513 func (mr *MockChatMockRecorder) ReadChannel(arg0, arg1, arg2 interface{}) *gomock.Call { 514 mr.mock.ctrl.T.Helper() 515 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadChannel", reflect.TypeOf((*MockChat)(nil).ReadChannel), arg0, arg1, arg2) 516 } 517 518 // RegisterForMessages mocks base method. 519 func (m *MockChat) RegisterForMessages(arg0 chat1.ConversationID, arg1 ChatChannelNewMessageCB) { 520 m.ctrl.T.Helper() 521 m.ctrl.Call(m, "RegisterForMessages", arg0, arg1) 522 } 523 524 // RegisterForMessages indicates an expected call of RegisterForMessages. 525 func (mr *MockChatMockRecorder) RegisterForMessages(arg0, arg1 interface{}) *gomock.Call { 526 mr.mock.ctrl.T.Helper() 527 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForMessages", reflect.TypeOf((*MockChat)(nil).RegisterForMessages), arg0, arg1) 528 } 529 530 // SendTextMessage mocks base method. 531 func (m *MockChat) SendTextMessage(arg0 context.Context, arg1 tlf.CanonicalName, arg2 tlf.Type, arg3 chat1.ConversationID, arg4 string) error { 532 m.ctrl.T.Helper() 533 ret := m.ctrl.Call(m, "SendTextMessage", arg0, arg1, arg2, arg3, arg4) 534 ret0, _ := ret[0].(error) 535 return ret0 536 } 537 538 // SendTextMessage indicates an expected call of SendTextMessage. 539 func (mr *MockChatMockRecorder) SendTextMessage(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 540 mr.mock.ctrl.T.Helper() 541 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTextMessage", reflect.TypeOf((*MockChat)(nil).SendTextMessage), arg0, arg1, arg2, arg3, arg4) 542 } 543 544 // MockClock is a mock of Clock interface. 545 type MockClock struct { 546 ctrl *gomock.Controller 547 recorder *MockClockMockRecorder 548 } 549 550 // MockClockMockRecorder is the mock recorder for MockClock. 551 type MockClockMockRecorder struct { 552 mock *MockClock 553 } 554 555 // NewMockClock creates a new mock instance. 556 func NewMockClock(ctrl *gomock.Controller) *MockClock { 557 mock := &MockClock{ctrl: ctrl} 558 mock.recorder = &MockClockMockRecorder{mock} 559 return mock 560 } 561 562 // EXPECT returns an object that allows the caller to indicate expected use. 563 func (m *MockClock) EXPECT() *MockClockMockRecorder { 564 return m.recorder 565 } 566 567 // Now mocks base method. 568 func (m *MockClock) Now() time.Time { 569 m.ctrl.T.Helper() 570 ret := m.ctrl.Call(m, "Now") 571 ret0, _ := ret[0].(time.Time) 572 return ret0 573 } 574 575 // Now indicates an expected call of Now. 576 func (mr *MockClockMockRecorder) Now() *gomock.Call { 577 mr.mock.ctrl.T.Helper() 578 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Now", reflect.TypeOf((*MockClock)(nil).Now)) 579 } 580 581 // MockCrypto is a mock of Crypto interface. 582 type MockCrypto struct { 583 ctrl *gomock.Controller 584 recorder *MockCryptoMockRecorder 585 } 586 587 // MockCryptoMockRecorder is the mock recorder for MockCrypto. 588 type MockCryptoMockRecorder struct { 589 mock *MockCrypto 590 } 591 592 // NewMockCrypto creates a new mock instance. 593 func NewMockCrypto(ctrl *gomock.Controller) *MockCrypto { 594 mock := &MockCrypto{ctrl: ctrl} 595 mock.recorder = &MockCryptoMockRecorder{mock} 596 return mock 597 } 598 599 // EXPECT returns an object that allows the caller to indicate expected use. 600 func (m *MockCrypto) EXPECT() *MockCryptoMockRecorder { 601 return m.recorder 602 } 603 604 // DecryptBlock mocks base method. 605 func (m *MockCrypto) DecryptBlock(arg0 kbfscrypto.EncryptedBlock, arg1 kbfscrypto.TLFCryptKey, arg2 kbfscrypto.BlockCryptKeyServerHalf, arg3 data.Block) error { 606 m.ctrl.T.Helper() 607 ret := m.ctrl.Call(m, "DecryptBlock", arg0, arg1, arg2, arg3) 608 ret0, _ := ret[0].(error) 609 return ret0 610 } 611 612 // DecryptBlock indicates an expected call of DecryptBlock. 613 func (mr *MockCryptoMockRecorder) DecryptBlock(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 614 mr.mock.ctrl.T.Helper() 615 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptBlock", reflect.TypeOf((*MockCrypto)(nil).DecryptBlock), arg0, arg1, arg2, arg3) 616 } 617 618 // DecryptPrivateMetadata mocks base method. 619 func (m *MockCrypto) DecryptPrivateMetadata(arg0 kbfscrypto.EncryptedPrivateMetadata, arg1 kbfscrypto.TLFCryptKey) (PrivateMetadata, error) { 620 m.ctrl.T.Helper() 621 ret := m.ctrl.Call(m, "DecryptPrivateMetadata", arg0, arg1) 622 ret0, _ := ret[0].(PrivateMetadata) 623 ret1, _ := ret[1].(error) 624 return ret0, ret1 625 } 626 627 // DecryptPrivateMetadata indicates an expected call of DecryptPrivateMetadata. 628 func (mr *MockCryptoMockRecorder) DecryptPrivateMetadata(arg0, arg1 interface{}) *gomock.Call { 629 mr.mock.ctrl.T.Helper() 630 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptPrivateMetadata", reflect.TypeOf((*MockCrypto)(nil).DecryptPrivateMetadata), arg0, arg1) 631 } 632 633 // DecryptTLFCryptKeyClientHalf mocks base method. 634 func (m *MockCrypto) DecryptTLFCryptKeyClientHalf(arg0 context.Context, arg1 kbfscrypto.TLFEphemeralPublicKey, arg2 kbfscrypto.EncryptedTLFCryptKeyClientHalf) (kbfscrypto.TLFCryptKeyClientHalf, error) { 635 m.ctrl.T.Helper() 636 ret := m.ctrl.Call(m, "DecryptTLFCryptKeyClientHalf", arg0, arg1, arg2) 637 ret0, _ := ret[0].(kbfscrypto.TLFCryptKeyClientHalf) 638 ret1, _ := ret[1].(error) 639 return ret0, ret1 640 } 641 642 // DecryptTLFCryptKeyClientHalf indicates an expected call of DecryptTLFCryptKeyClientHalf. 643 func (mr *MockCryptoMockRecorder) DecryptTLFCryptKeyClientHalf(arg0, arg1, arg2 interface{}) *gomock.Call { 644 mr.mock.ctrl.T.Helper() 645 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptTLFCryptKeyClientHalf", reflect.TypeOf((*MockCrypto)(nil).DecryptTLFCryptKeyClientHalf), arg0, arg1, arg2) 646 } 647 648 // DecryptTLFCryptKeyClientHalfAny mocks base method. 649 func (m *MockCrypto) DecryptTLFCryptKeyClientHalfAny(arg0 context.Context, arg1 []EncryptedTLFCryptKeyClientAndEphemeral, arg2 bool) (kbfscrypto.TLFCryptKeyClientHalf, int, error) { 650 m.ctrl.T.Helper() 651 ret := m.ctrl.Call(m, "DecryptTLFCryptKeyClientHalfAny", arg0, arg1, arg2) 652 ret0, _ := ret[0].(kbfscrypto.TLFCryptKeyClientHalf) 653 ret1, _ := ret[1].(int) 654 ret2, _ := ret[2].(error) 655 return ret0, ret1, ret2 656 } 657 658 // DecryptTLFCryptKeyClientHalfAny indicates an expected call of DecryptTLFCryptKeyClientHalfAny. 659 func (mr *MockCryptoMockRecorder) DecryptTLFCryptKeyClientHalfAny(arg0, arg1, arg2 interface{}) *gomock.Call { 660 mr.mock.ctrl.T.Helper() 661 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptTLFCryptKeyClientHalfAny", reflect.TypeOf((*MockCrypto)(nil).DecryptTLFCryptKeyClientHalfAny), arg0, arg1, arg2) 662 } 663 664 // DecryptTeamMerkleLeaf mocks base method. 665 func (m *MockCrypto) DecryptTeamMerkleLeaf(arg0 context.Context, arg1 keybase1.TeamID, arg2 kbfscrypto.TLFEphemeralPublicKey, arg3 kbfscrypto.EncryptedMerkleLeaf, arg4 keybase1.PerTeamKeyGeneration) ([]byte, error) { 666 m.ctrl.T.Helper() 667 ret := m.ctrl.Call(m, "DecryptTeamMerkleLeaf", arg0, arg1, arg2, arg3, arg4) 668 ret0, _ := ret[0].([]byte) 669 ret1, _ := ret[1].(error) 670 return ret0, ret1 671 } 672 673 // DecryptTeamMerkleLeaf indicates an expected call of DecryptTeamMerkleLeaf. 674 func (mr *MockCryptoMockRecorder) DecryptTeamMerkleLeaf(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 675 mr.mock.ctrl.T.Helper() 676 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptTeamMerkleLeaf", reflect.TypeOf((*MockCrypto)(nil).DecryptTeamMerkleLeaf), arg0, arg1, arg2, arg3, arg4) 677 } 678 679 // EncryptBlock mocks base method. 680 func (m *MockCrypto) EncryptBlock(arg0 data.Block, arg1 kbfscrypto.TLFCryptKey, arg2 kbfscrypto.BlockCryptKeyServerHalf) (int, kbfscrypto.EncryptedBlock, error) { 681 m.ctrl.T.Helper() 682 ret := m.ctrl.Call(m, "EncryptBlock", arg0, arg1, arg2) 683 ret0, _ := ret[0].(int) 684 ret1, _ := ret[1].(kbfscrypto.EncryptedBlock) 685 ret2, _ := ret[2].(error) 686 return ret0, ret1, ret2 687 } 688 689 // EncryptBlock indicates an expected call of EncryptBlock. 690 func (mr *MockCryptoMockRecorder) EncryptBlock(arg0, arg1, arg2 interface{}) *gomock.Call { 691 mr.mock.ctrl.T.Helper() 692 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptBlock", reflect.TypeOf((*MockCrypto)(nil).EncryptBlock), arg0, arg1, arg2) 693 } 694 695 // EncryptPrivateMetadata mocks base method. 696 func (m *MockCrypto) EncryptPrivateMetadata(arg0 PrivateMetadata, arg1 kbfscrypto.TLFCryptKey) (kbfscrypto.EncryptedPrivateMetadata, error) { 697 m.ctrl.T.Helper() 698 ret := m.ctrl.Call(m, "EncryptPrivateMetadata", arg0, arg1) 699 ret0, _ := ret[0].(kbfscrypto.EncryptedPrivateMetadata) 700 ret1, _ := ret[1].(error) 701 return ret0, ret1 702 } 703 704 // EncryptPrivateMetadata indicates an expected call of EncryptPrivateMetadata. 705 func (mr *MockCryptoMockRecorder) EncryptPrivateMetadata(arg0, arg1 interface{}) *gomock.Call { 706 mr.mock.ctrl.T.Helper() 707 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptPrivateMetadata", reflect.TypeOf((*MockCrypto)(nil).EncryptPrivateMetadata), arg0, arg1) 708 } 709 710 // MakeBlockRefNonce mocks base method. 711 func (m *MockCrypto) MakeBlockRefNonce() (kbfsblock.RefNonce, error) { 712 m.ctrl.T.Helper() 713 ret := m.ctrl.Call(m, "MakeBlockRefNonce") 714 ret0, _ := ret[0].(kbfsblock.RefNonce) 715 ret1, _ := ret[1].(error) 716 return ret0, ret1 717 } 718 719 // MakeBlockRefNonce indicates an expected call of MakeBlockRefNonce. 720 func (mr *MockCryptoMockRecorder) MakeBlockRefNonce() *gomock.Call { 721 mr.mock.ctrl.T.Helper() 722 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeBlockRefNonce", reflect.TypeOf((*MockCrypto)(nil).MakeBlockRefNonce)) 723 } 724 725 // MakeRandomBlockCryptKeyServerHalf mocks base method. 726 func (m *MockCrypto) MakeRandomBlockCryptKeyServerHalf() (kbfscrypto.BlockCryptKeyServerHalf, error) { 727 m.ctrl.T.Helper() 728 ret := m.ctrl.Call(m, "MakeRandomBlockCryptKeyServerHalf") 729 ret0, _ := ret[0].(kbfscrypto.BlockCryptKeyServerHalf) 730 ret1, _ := ret[1].(error) 731 return ret0, ret1 732 } 733 734 // MakeRandomBlockCryptKeyServerHalf indicates an expected call of MakeRandomBlockCryptKeyServerHalf. 735 func (mr *MockCryptoMockRecorder) MakeRandomBlockCryptKeyServerHalf() *gomock.Call { 736 mr.mock.ctrl.T.Helper() 737 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeRandomBlockCryptKeyServerHalf", reflect.TypeOf((*MockCrypto)(nil).MakeRandomBlockCryptKeyServerHalf)) 738 } 739 740 // MakeRandomBranchID mocks base method. 741 func (m *MockCrypto) MakeRandomBranchID() (kbfsmd.BranchID, error) { 742 m.ctrl.T.Helper() 743 ret := m.ctrl.Call(m, "MakeRandomBranchID") 744 ret0, _ := ret[0].(kbfsmd.BranchID) 745 ret1, _ := ret[1].(error) 746 return ret0, ret1 747 } 748 749 // MakeRandomBranchID indicates an expected call of MakeRandomBranchID. 750 func (mr *MockCryptoMockRecorder) MakeRandomBranchID() *gomock.Call { 751 mr.mock.ctrl.T.Helper() 752 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeRandomBranchID", reflect.TypeOf((*MockCrypto)(nil).MakeRandomBranchID)) 753 } 754 755 // MakeRandomTLFEphemeralKeys mocks base method. 756 func (m *MockCrypto) MakeRandomTLFEphemeralKeys() (kbfscrypto.TLFEphemeralPublicKey, kbfscrypto.TLFEphemeralPrivateKey, error) { 757 m.ctrl.T.Helper() 758 ret := m.ctrl.Call(m, "MakeRandomTLFEphemeralKeys") 759 ret0, _ := ret[0].(kbfscrypto.TLFEphemeralPublicKey) 760 ret1, _ := ret[1].(kbfscrypto.TLFEphemeralPrivateKey) 761 ret2, _ := ret[2].(error) 762 return ret0, ret1, ret2 763 } 764 765 // MakeRandomTLFEphemeralKeys indicates an expected call of MakeRandomTLFEphemeralKeys. 766 func (mr *MockCryptoMockRecorder) MakeRandomTLFEphemeralKeys() *gomock.Call { 767 mr.mock.ctrl.T.Helper() 768 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeRandomTLFEphemeralKeys", reflect.TypeOf((*MockCrypto)(nil).MakeRandomTLFEphemeralKeys)) 769 } 770 771 // MakeRandomTLFKeys mocks base method. 772 func (m *MockCrypto) MakeRandomTLFKeys() (kbfscrypto.TLFPublicKey, kbfscrypto.TLFPrivateKey, kbfscrypto.TLFCryptKey, error) { 773 m.ctrl.T.Helper() 774 ret := m.ctrl.Call(m, "MakeRandomTLFKeys") 775 ret0, _ := ret[0].(kbfscrypto.TLFPublicKey) 776 ret1, _ := ret[1].(kbfscrypto.TLFPrivateKey) 777 ret2, _ := ret[2].(kbfscrypto.TLFCryptKey) 778 ret3, _ := ret[3].(error) 779 return ret0, ret1, ret2, ret3 780 } 781 782 // MakeRandomTLFKeys indicates an expected call of MakeRandomTLFKeys. 783 func (mr *MockCryptoMockRecorder) MakeRandomTLFKeys() *gomock.Call { 784 mr.mock.ctrl.T.Helper() 785 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeRandomTLFKeys", reflect.TypeOf((*MockCrypto)(nil).MakeRandomTLFKeys)) 786 } 787 788 // MakeRandomTlfID mocks base method. 789 func (m *MockCrypto) MakeRandomTlfID(arg0 tlf.Type) (tlf.ID, error) { 790 m.ctrl.T.Helper() 791 ret := m.ctrl.Call(m, "MakeRandomTlfID", arg0) 792 ret0, _ := ret[0].(tlf.ID) 793 ret1, _ := ret[1].(error) 794 return ret0, ret1 795 } 796 797 // MakeRandomTlfID indicates an expected call of MakeRandomTlfID. 798 func (mr *MockCryptoMockRecorder) MakeRandomTlfID(arg0 interface{}) *gomock.Call { 799 mr.mock.ctrl.T.Helper() 800 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeRandomTlfID", reflect.TypeOf((*MockCrypto)(nil).MakeRandomTlfID), arg0) 801 } 802 803 // MakeTemporaryBlockID mocks base method. 804 func (m *MockCrypto) MakeTemporaryBlockID() (kbfsblock.ID, error) { 805 m.ctrl.T.Helper() 806 ret := m.ctrl.Call(m, "MakeTemporaryBlockID") 807 ret0, _ := ret[0].(kbfsblock.ID) 808 ret1, _ := ret[1].(error) 809 return ret0, ret1 810 } 811 812 // MakeTemporaryBlockID indicates an expected call of MakeTemporaryBlockID. 813 func (mr *MockCryptoMockRecorder) MakeTemporaryBlockID() *gomock.Call { 814 mr.mock.ctrl.T.Helper() 815 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MakeTemporaryBlockID", reflect.TypeOf((*MockCrypto)(nil).MakeTemporaryBlockID)) 816 } 817 818 // Shutdown mocks base method. 819 func (m *MockCrypto) Shutdown() { 820 m.ctrl.T.Helper() 821 m.ctrl.Call(m, "Shutdown") 822 } 823 824 // Shutdown indicates an expected call of Shutdown. 825 func (mr *MockCryptoMockRecorder) Shutdown() *gomock.Call { 826 mr.mock.ctrl.T.Helper() 827 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockCrypto)(nil).Shutdown)) 828 } 829 830 // Sign mocks base method. 831 func (m *MockCrypto) Sign(arg0 context.Context, arg1 []byte) (kbfscrypto.SignatureInfo, error) { 832 m.ctrl.T.Helper() 833 ret := m.ctrl.Call(m, "Sign", arg0, arg1) 834 ret0, _ := ret[0].(kbfscrypto.SignatureInfo) 835 ret1, _ := ret[1].(error) 836 return ret0, ret1 837 } 838 839 // Sign indicates an expected call of Sign. 840 func (mr *MockCryptoMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call { 841 mr.mock.ctrl.T.Helper() 842 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockCrypto)(nil).Sign), arg0, arg1) 843 } 844 845 // SignForKBFS mocks base method. 846 func (m *MockCrypto) SignForKBFS(arg0 context.Context, arg1 []byte) (kbfscrypto.SignatureInfo, error) { 847 m.ctrl.T.Helper() 848 ret := m.ctrl.Call(m, "SignForKBFS", arg0, arg1) 849 ret0, _ := ret[0].(kbfscrypto.SignatureInfo) 850 ret1, _ := ret[1].(error) 851 return ret0, ret1 852 } 853 854 // SignForKBFS indicates an expected call of SignForKBFS. 855 func (mr *MockCryptoMockRecorder) SignForKBFS(arg0, arg1 interface{}) *gomock.Call { 856 mr.mock.ctrl.T.Helper() 857 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignForKBFS", reflect.TypeOf((*MockCrypto)(nil).SignForKBFS), arg0, arg1) 858 } 859 860 // SignToString mocks base method. 861 func (m *MockCrypto) SignToString(arg0 context.Context, arg1 []byte) (string, error) { 862 m.ctrl.T.Helper() 863 ret := m.ctrl.Call(m, "SignToString", arg0, arg1) 864 ret0, _ := ret[0].(string) 865 ret1, _ := ret[1].(error) 866 return ret0, ret1 867 } 868 869 // SignToString indicates an expected call of SignToString. 870 func (mr *MockCryptoMockRecorder) SignToString(arg0, arg1 interface{}) *gomock.Call { 871 mr.mock.ctrl.T.Helper() 872 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignToString", reflect.TypeOf((*MockCrypto)(nil).SignToString), arg0, arg1) 873 } 874 875 // MockKBFSOps is a mock of KBFSOps interface. 876 type MockKBFSOps struct { 877 ctrl *gomock.Controller 878 recorder *MockKBFSOpsMockRecorder 879 } 880 881 // MockKBFSOpsMockRecorder is the mock recorder for MockKBFSOps. 882 type MockKBFSOpsMockRecorder struct { 883 mock *MockKBFSOps 884 } 885 886 // NewMockKBFSOps creates a new mock instance. 887 func NewMockKBFSOps(ctrl *gomock.Controller) *MockKBFSOps { 888 mock := &MockKBFSOps{ctrl: ctrl} 889 mock.recorder = &MockKBFSOpsMockRecorder{mock} 890 return mock 891 } 892 893 // EXPECT returns an object that allows the caller to indicate expected use. 894 func (m *MockKBFSOps) EXPECT() *MockKBFSOpsMockRecorder { 895 return m.recorder 896 } 897 898 // AddFavorite mocks base method. 899 func (m *MockKBFSOps) AddFavorite(arg0 context.Context, arg1 favorites.Folder, arg2 favorites.Data) error { 900 m.ctrl.T.Helper() 901 ret := m.ctrl.Call(m, "AddFavorite", arg0, arg1, arg2) 902 ret0, _ := ret[0].(error) 903 return ret0 904 } 905 906 // AddFavorite indicates an expected call of AddFavorite. 907 func (mr *MockKBFSOpsMockRecorder) AddFavorite(arg0, arg1, arg2 interface{}) *gomock.Call { 908 mr.mock.ctrl.T.Helper() 909 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFavorite", reflect.TypeOf((*MockKBFSOps)(nil).AddFavorite), arg0, arg1, arg2) 910 } 911 912 // AddRootNodeWrapper mocks base method. 913 func (m *MockKBFSOps) AddRootNodeWrapper(arg0 func(Node) Node) { 914 m.ctrl.T.Helper() 915 m.ctrl.Call(m, "AddRootNodeWrapper", arg0) 916 } 917 918 // AddRootNodeWrapper indicates an expected call of AddRootNodeWrapper. 919 func (mr *MockKBFSOpsMockRecorder) AddRootNodeWrapper(arg0 interface{}) *gomock.Call { 920 mr.mock.ctrl.T.Helper() 921 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRootNodeWrapper", reflect.TypeOf((*MockKBFSOps)(nil).AddRootNodeWrapper), arg0) 922 } 923 924 // CancelUploads mocks base method. 925 func (m *MockKBFSOps) CancelUploads(arg0 context.Context, arg1 data.FolderBranch) error { 926 m.ctrl.T.Helper() 927 ret := m.ctrl.Call(m, "CancelUploads", arg0, arg1) 928 ret0, _ := ret[0].(error) 929 return ret0 930 } 931 932 // CancelUploads indicates an expected call of CancelUploads. 933 func (mr *MockKBFSOpsMockRecorder) CancelUploads(arg0, arg1 interface{}) *gomock.Call { 934 mr.mock.ctrl.T.Helper() 935 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelUploads", reflect.TypeOf((*MockKBFSOps)(nil).CancelUploads), arg0, arg1) 936 } 937 938 // CheckMigrationPerms mocks base method. 939 func (m *MockKBFSOps) CheckMigrationPerms(arg0 context.Context, arg1 tlf.ID) error { 940 m.ctrl.T.Helper() 941 ret := m.ctrl.Call(m, "CheckMigrationPerms", arg0, arg1) 942 ret0, _ := ret[0].(error) 943 return ret0 944 } 945 946 // CheckMigrationPerms indicates an expected call of CheckMigrationPerms. 947 func (mr *MockKBFSOpsMockRecorder) CheckMigrationPerms(arg0, arg1 interface{}) *gomock.Call { 948 mr.mock.ctrl.T.Helper() 949 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckMigrationPerms", reflect.TypeOf((*MockKBFSOps)(nil).CheckMigrationPerms), arg0, arg1) 950 } 951 952 // ClearCachedFavorites mocks base method. 953 func (m *MockKBFSOps) ClearCachedFavorites(arg0 context.Context) { 954 m.ctrl.T.Helper() 955 m.ctrl.Call(m, "ClearCachedFavorites", arg0) 956 } 957 958 // ClearCachedFavorites indicates an expected call of ClearCachedFavorites. 959 func (mr *MockKBFSOpsMockRecorder) ClearCachedFavorites(arg0 interface{}) *gomock.Call { 960 mr.mock.ctrl.T.Helper() 961 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearCachedFavorites", reflect.TypeOf((*MockKBFSOps)(nil).ClearCachedFavorites), arg0) 962 } 963 964 // ClearConflictView mocks base method. 965 func (m *MockKBFSOps) ClearConflictView(arg0 context.Context, arg1 tlf.ID) error { 966 m.ctrl.T.Helper() 967 ret := m.ctrl.Call(m, "ClearConflictView", arg0, arg1) 968 ret0, _ := ret[0].(error) 969 return ret0 970 } 971 972 // ClearConflictView indicates an expected call of ClearConflictView. 973 func (mr *MockKBFSOpsMockRecorder) ClearConflictView(arg0, arg1 interface{}) *gomock.Call { 974 mr.mock.ctrl.T.Helper() 975 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearConflictView", reflect.TypeOf((*MockKBFSOps)(nil).ClearConflictView), arg0, arg1) 976 } 977 978 // ClearPrivateFolderMD mocks base method. 979 func (m *MockKBFSOps) ClearPrivateFolderMD(arg0 context.Context) { 980 m.ctrl.T.Helper() 981 m.ctrl.Call(m, "ClearPrivateFolderMD", arg0) 982 } 983 984 // ClearPrivateFolderMD indicates an expected call of ClearPrivateFolderMD. 985 func (mr *MockKBFSOpsMockRecorder) ClearPrivateFolderMD(arg0 interface{}) *gomock.Call { 986 mr.mock.ctrl.T.Helper() 987 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearPrivateFolderMD", reflect.TypeOf((*MockKBFSOps)(nil).ClearPrivateFolderMD), arg0) 988 } 989 990 // CreateDir mocks base method. 991 func (m *MockKBFSOps) CreateDir(arg0 context.Context, arg1 Node, arg2 data.PathPartString) (Node, data.EntryInfo, error) { 992 m.ctrl.T.Helper() 993 ret := m.ctrl.Call(m, "CreateDir", arg0, arg1, arg2) 994 ret0, _ := ret[0].(Node) 995 ret1, _ := ret[1].(data.EntryInfo) 996 ret2, _ := ret[2].(error) 997 return ret0, ret1, ret2 998 } 999 1000 // CreateDir indicates an expected call of CreateDir. 1001 func (mr *MockKBFSOpsMockRecorder) CreateDir(arg0, arg1, arg2 interface{}) *gomock.Call { 1002 mr.mock.ctrl.T.Helper() 1003 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDir", reflect.TypeOf((*MockKBFSOps)(nil).CreateDir), arg0, arg1, arg2) 1004 } 1005 1006 // CreateFile mocks base method. 1007 func (m *MockKBFSOps) CreateFile(arg0 context.Context, arg1 Node, arg2 data.PathPartString, arg3 bool, arg4 Excl) (Node, data.EntryInfo, error) { 1008 m.ctrl.T.Helper() 1009 ret := m.ctrl.Call(m, "CreateFile", arg0, arg1, arg2, arg3, arg4) 1010 ret0, _ := ret[0].(Node) 1011 ret1, _ := ret[1].(data.EntryInfo) 1012 ret2, _ := ret[2].(error) 1013 return ret0, ret1, ret2 1014 } 1015 1016 // CreateFile indicates an expected call of CreateFile. 1017 func (mr *MockKBFSOpsMockRecorder) CreateFile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 1018 mr.mock.ctrl.T.Helper() 1019 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFile", reflect.TypeOf((*MockKBFSOps)(nil).CreateFile), arg0, arg1, arg2, arg3, arg4) 1020 } 1021 1022 // CreateLink mocks base method. 1023 func (m *MockKBFSOps) CreateLink(arg0 context.Context, arg1 Node, arg2, arg3 data.PathPartString) (data.EntryInfo, error) { 1024 m.ctrl.T.Helper() 1025 ret := m.ctrl.Call(m, "CreateLink", arg0, arg1, arg2, arg3) 1026 ret0, _ := ret[0].(data.EntryInfo) 1027 ret1, _ := ret[1].(error) 1028 return ret0, ret1 1029 } 1030 1031 // CreateLink indicates an expected call of CreateLink. 1032 func (mr *MockKBFSOpsMockRecorder) CreateLink(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1033 mr.mock.ctrl.T.Helper() 1034 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLink", reflect.TypeOf((*MockKBFSOps)(nil).CreateLink), arg0, arg1, arg2, arg3) 1035 } 1036 1037 // DeleteFavorite mocks base method. 1038 func (m *MockKBFSOps) DeleteFavorite(arg0 context.Context, arg1 favorites.Folder) error { 1039 m.ctrl.T.Helper() 1040 ret := m.ctrl.Call(m, "DeleteFavorite", arg0, arg1) 1041 ret0, _ := ret[0].(error) 1042 return ret0 1043 } 1044 1045 // DeleteFavorite indicates an expected call of DeleteFavorite. 1046 func (mr *MockKBFSOpsMockRecorder) DeleteFavorite(arg0, arg1 interface{}) *gomock.Call { 1047 mr.mock.ctrl.T.Helper() 1048 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFavorite", reflect.TypeOf((*MockKBFSOps)(nil).DeleteFavorite), arg0, arg1) 1049 } 1050 1051 // FinishResolvingConflict mocks base method. 1052 func (m *MockKBFSOps) FinishResolvingConflict(arg0 context.Context, arg1 data.FolderBranch) error { 1053 m.ctrl.T.Helper() 1054 ret := m.ctrl.Call(m, "FinishResolvingConflict", arg0, arg1) 1055 ret0, _ := ret[0].(error) 1056 return ret0 1057 } 1058 1059 // FinishResolvingConflict indicates an expected call of FinishResolvingConflict. 1060 func (mr *MockKBFSOpsMockRecorder) FinishResolvingConflict(arg0, arg1 interface{}) *gomock.Call { 1061 mr.mock.ctrl.T.Helper() 1062 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinishResolvingConflict", reflect.TypeOf((*MockKBFSOps)(nil).FinishResolvingConflict), arg0, arg1) 1063 } 1064 1065 // FolderConflictStatus mocks base method. 1066 func (m *MockKBFSOps) FolderConflictStatus(arg0 context.Context, arg1 data.FolderBranch) (keybase1.FolderConflictType, error) { 1067 m.ctrl.T.Helper() 1068 ret := m.ctrl.Call(m, "FolderConflictStatus", arg0, arg1) 1069 ret0, _ := ret[0].(keybase1.FolderConflictType) 1070 ret1, _ := ret[1].(error) 1071 return ret0, ret1 1072 } 1073 1074 // FolderConflictStatus indicates an expected call of FolderConflictStatus. 1075 func (mr *MockKBFSOpsMockRecorder) FolderConflictStatus(arg0, arg1 interface{}) *gomock.Call { 1076 mr.mock.ctrl.T.Helper() 1077 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FolderConflictStatus", reflect.TypeOf((*MockKBFSOps)(nil).FolderConflictStatus), arg0, arg1) 1078 } 1079 1080 // FolderStatus mocks base method. 1081 func (m *MockKBFSOps) FolderStatus(arg0 context.Context, arg1 data.FolderBranch) (FolderBranchStatus, <-chan StatusUpdate, error) { 1082 m.ctrl.T.Helper() 1083 ret := m.ctrl.Call(m, "FolderStatus", arg0, arg1) 1084 ret0, _ := ret[0].(FolderBranchStatus) 1085 ret1, _ := ret[1].(<-chan StatusUpdate) 1086 ret2, _ := ret[2].(error) 1087 return ret0, ret1, ret2 1088 } 1089 1090 // FolderStatus indicates an expected call of FolderStatus. 1091 func (mr *MockKBFSOpsMockRecorder) FolderStatus(arg0, arg1 interface{}) *gomock.Call { 1092 mr.mock.ctrl.T.Helper() 1093 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FolderStatus", reflect.TypeOf((*MockKBFSOps)(nil).FolderStatus), arg0, arg1) 1094 } 1095 1096 // ForceFastForward mocks base method. 1097 func (m *MockKBFSOps) ForceFastForward(arg0 context.Context) { 1098 m.ctrl.T.Helper() 1099 m.ctrl.Call(m, "ForceFastForward", arg0) 1100 } 1101 1102 // ForceFastForward indicates an expected call of ForceFastForward. 1103 func (mr *MockKBFSOpsMockRecorder) ForceFastForward(arg0 interface{}) *gomock.Call { 1104 mr.mock.ctrl.T.Helper() 1105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceFastForward", reflect.TypeOf((*MockKBFSOps)(nil).ForceFastForward), arg0) 1106 } 1107 1108 // ForceStuckConflictForTesting mocks base method. 1109 func (m *MockKBFSOps) ForceStuckConflictForTesting(arg0 context.Context, arg1 tlf.ID) error { 1110 m.ctrl.T.Helper() 1111 ret := m.ctrl.Call(m, "ForceStuckConflictForTesting", arg0, arg1) 1112 ret0, _ := ret[0].(error) 1113 return ret0 1114 } 1115 1116 // ForceStuckConflictForTesting indicates an expected call of ForceStuckConflictForTesting. 1117 func (mr *MockKBFSOpsMockRecorder) ForceStuckConflictForTesting(arg0, arg1 interface{}) *gomock.Call { 1118 mr.mock.ctrl.T.Helper() 1119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceStuckConflictForTesting", reflect.TypeOf((*MockKBFSOps)(nil).ForceStuckConflictForTesting), arg0, arg1) 1120 } 1121 1122 // GetAllSyncedTlfMDs mocks base method. 1123 func (m *MockKBFSOps) GetAllSyncedTlfMDs(arg0 context.Context) map[tlf.ID]SyncedTlfMD { 1124 m.ctrl.T.Helper() 1125 ret := m.ctrl.Call(m, "GetAllSyncedTlfMDs", arg0) 1126 ret0, _ := ret[0].(map[tlf.ID]SyncedTlfMD) 1127 return ret0 1128 } 1129 1130 // GetAllSyncedTlfMDs indicates an expected call of GetAllSyncedTlfMDs. 1131 func (mr *MockKBFSOpsMockRecorder) GetAllSyncedTlfMDs(arg0 interface{}) *gomock.Call { 1132 mr.mock.ctrl.T.Helper() 1133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllSyncedTlfMDs", reflect.TypeOf((*MockKBFSOps)(nil).GetAllSyncedTlfMDs), arg0) 1134 } 1135 1136 // GetBadge mocks base method. 1137 func (m *MockKBFSOps) GetBadge(arg0 context.Context) (keybase1.FilesTabBadge, error) { 1138 m.ctrl.T.Helper() 1139 ret := m.ctrl.Call(m, "GetBadge", arg0) 1140 ret0, _ := ret[0].(keybase1.FilesTabBadge) 1141 ret1, _ := ret[1].(error) 1142 return ret0, ret1 1143 } 1144 1145 // GetBadge indicates an expected call of GetBadge. 1146 func (mr *MockKBFSOpsMockRecorder) GetBadge(arg0 interface{}) *gomock.Call { 1147 mr.mock.ctrl.T.Helper() 1148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBadge", reflect.TypeOf((*MockKBFSOps)(nil).GetBadge), arg0) 1149 } 1150 1151 // GetDirChildren mocks base method. 1152 func (m *MockKBFSOps) GetDirChildren(arg0 context.Context, arg1 Node) (map[data.PathPartString]data.EntryInfo, error) { 1153 m.ctrl.T.Helper() 1154 ret := m.ctrl.Call(m, "GetDirChildren", arg0, arg1) 1155 ret0, _ := ret[0].(map[data.PathPartString]data.EntryInfo) 1156 ret1, _ := ret[1].(error) 1157 return ret0, ret1 1158 } 1159 1160 // GetDirChildren indicates an expected call of GetDirChildren. 1161 func (mr *MockKBFSOpsMockRecorder) GetDirChildren(arg0, arg1 interface{}) *gomock.Call { 1162 mr.mock.ctrl.T.Helper() 1163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDirChildren", reflect.TypeOf((*MockKBFSOps)(nil).GetDirChildren), arg0, arg1) 1164 } 1165 1166 // GetEditHistory mocks base method. 1167 func (m *MockKBFSOps) GetEditHistory(arg0 context.Context, arg1 data.FolderBranch) (keybase1.FSFolderEditHistory, error) { 1168 m.ctrl.T.Helper() 1169 ret := m.ctrl.Call(m, "GetEditHistory", arg0, arg1) 1170 ret0, _ := ret[0].(keybase1.FSFolderEditHistory) 1171 ret1, _ := ret[1].(error) 1172 return ret0, ret1 1173 } 1174 1175 // GetEditHistory indicates an expected call of GetEditHistory. 1176 func (mr *MockKBFSOpsMockRecorder) GetEditHistory(arg0, arg1 interface{}) *gomock.Call { 1177 mr.mock.ctrl.T.Helper() 1178 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEditHistory", reflect.TypeOf((*MockKBFSOps)(nil).GetEditHistory), arg0, arg1) 1179 } 1180 1181 // GetFavorites mocks base method. 1182 func (m *MockKBFSOps) GetFavorites(arg0 context.Context) ([]favorites.Folder, error) { 1183 m.ctrl.T.Helper() 1184 ret := m.ctrl.Call(m, "GetFavorites", arg0) 1185 ret0, _ := ret[0].([]favorites.Folder) 1186 ret1, _ := ret[1].(error) 1187 return ret0, ret1 1188 } 1189 1190 // GetFavorites indicates an expected call of GetFavorites. 1191 func (mr *MockKBFSOpsMockRecorder) GetFavorites(arg0 interface{}) *gomock.Call { 1192 mr.mock.ctrl.T.Helper() 1193 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFavorites", reflect.TypeOf((*MockKBFSOps)(nil).GetFavorites), arg0) 1194 } 1195 1196 // GetFavoritesAll mocks base method. 1197 func (m *MockKBFSOps) GetFavoritesAll(arg0 context.Context) (keybase1.FavoritesResult, error) { 1198 m.ctrl.T.Helper() 1199 ret := m.ctrl.Call(m, "GetFavoritesAll", arg0) 1200 ret0, _ := ret[0].(keybase1.FavoritesResult) 1201 ret1, _ := ret[1].(error) 1202 return ret0, ret1 1203 } 1204 1205 // GetFavoritesAll indicates an expected call of GetFavoritesAll. 1206 func (mr *MockKBFSOpsMockRecorder) GetFavoritesAll(arg0 interface{}) *gomock.Call { 1207 mr.mock.ctrl.T.Helper() 1208 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFavoritesAll", reflect.TypeOf((*MockKBFSOps)(nil).GetFavoritesAll), arg0) 1209 } 1210 1211 // GetFolderWithFavFlags mocks base method. 1212 func (m *MockKBFSOps) GetFolderWithFavFlags(arg0 context.Context, arg1 *tlfhandle.Handle) (keybase1.FolderWithFavFlags, error) { 1213 m.ctrl.T.Helper() 1214 ret := m.ctrl.Call(m, "GetFolderWithFavFlags", arg0, arg1) 1215 ret0, _ := ret[0].(keybase1.FolderWithFavFlags) 1216 ret1, _ := ret[1].(error) 1217 return ret0, ret1 1218 } 1219 1220 // GetFolderWithFavFlags indicates an expected call of GetFolderWithFavFlags. 1221 func (mr *MockKBFSOpsMockRecorder) GetFolderWithFavFlags(arg0, arg1 interface{}) *gomock.Call { 1222 mr.mock.ctrl.T.Helper() 1223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFolderWithFavFlags", reflect.TypeOf((*MockKBFSOps)(nil).GetFolderWithFavFlags), arg0, arg1) 1224 } 1225 1226 // GetNodeMetadata mocks base method. 1227 func (m *MockKBFSOps) GetNodeMetadata(arg0 context.Context, arg1 Node) (NodeMetadata, error) { 1228 m.ctrl.T.Helper() 1229 ret := m.ctrl.Call(m, "GetNodeMetadata", arg0, arg1) 1230 ret0, _ := ret[0].(NodeMetadata) 1231 ret1, _ := ret[1].(error) 1232 return ret0, ret1 1233 } 1234 1235 // GetNodeMetadata indicates an expected call of GetNodeMetadata. 1236 func (mr *MockKBFSOpsMockRecorder) GetNodeMetadata(arg0, arg1 interface{}) *gomock.Call { 1237 mr.mock.ctrl.T.Helper() 1238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNodeMetadata", reflect.TypeOf((*MockKBFSOps)(nil).GetNodeMetadata), arg0, arg1) 1239 } 1240 1241 // GetOrCreateRootNode mocks base method. 1242 func (m *MockKBFSOps) GetOrCreateRootNode(arg0 context.Context, arg1 *tlfhandle.Handle, arg2 data.BranchName) (Node, data.EntryInfo, error) { 1243 m.ctrl.T.Helper() 1244 ret := m.ctrl.Call(m, "GetOrCreateRootNode", arg0, arg1, arg2) 1245 ret0, _ := ret[0].(Node) 1246 ret1, _ := ret[1].(data.EntryInfo) 1247 ret2, _ := ret[2].(error) 1248 return ret0, ret1, ret2 1249 } 1250 1251 // GetOrCreateRootNode indicates an expected call of GetOrCreateRootNode. 1252 func (mr *MockKBFSOpsMockRecorder) GetOrCreateRootNode(arg0, arg1, arg2 interface{}) *gomock.Call { 1253 mr.mock.ctrl.T.Helper() 1254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrCreateRootNode", reflect.TypeOf((*MockKBFSOps)(nil).GetOrCreateRootNode), arg0, arg1, arg2) 1255 } 1256 1257 // GetRootNode mocks base method. 1258 func (m *MockKBFSOps) GetRootNode(arg0 context.Context, arg1 *tlfhandle.Handle, arg2 data.BranchName) (Node, data.EntryInfo, error) { 1259 m.ctrl.T.Helper() 1260 ret := m.ctrl.Call(m, "GetRootNode", arg0, arg1, arg2) 1261 ret0, _ := ret[0].(Node) 1262 ret1, _ := ret[1].(data.EntryInfo) 1263 ret2, _ := ret[2].(error) 1264 return ret0, ret1, ret2 1265 } 1266 1267 // GetRootNode indicates an expected call of GetRootNode. 1268 func (mr *MockKBFSOpsMockRecorder) GetRootNode(arg0, arg1, arg2 interface{}) *gomock.Call { 1269 mr.mock.ctrl.T.Helper() 1270 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRootNode", reflect.TypeOf((*MockKBFSOps)(nil).GetRootNode), arg0, arg1, arg2) 1271 } 1272 1273 // GetRootNodeMetadata mocks base method. 1274 func (m *MockKBFSOps) GetRootNodeMetadata(arg0 context.Context, arg1 data.FolderBranch) (NodeMetadata, *tlfhandle.Handle, error) { 1275 m.ctrl.T.Helper() 1276 ret := m.ctrl.Call(m, "GetRootNodeMetadata", arg0, arg1) 1277 ret0, _ := ret[0].(NodeMetadata) 1278 ret1, _ := ret[1].(*tlfhandle.Handle) 1279 ret2, _ := ret[2].(error) 1280 return ret0, ret1, ret2 1281 } 1282 1283 // GetRootNodeMetadata indicates an expected call of GetRootNodeMetadata. 1284 func (mr *MockKBFSOpsMockRecorder) GetRootNodeMetadata(arg0, arg1 interface{}) *gomock.Call { 1285 mr.mock.ctrl.T.Helper() 1286 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRootNodeMetadata", reflect.TypeOf((*MockKBFSOps)(nil).GetRootNodeMetadata), arg0, arg1) 1287 } 1288 1289 // GetSyncConfig mocks base method. 1290 func (m *MockKBFSOps) GetSyncConfig(arg0 context.Context, arg1 tlf.ID) (keybase1.FolderSyncConfig, error) { 1291 m.ctrl.T.Helper() 1292 ret := m.ctrl.Call(m, "GetSyncConfig", arg0, arg1) 1293 ret0, _ := ret[0].(keybase1.FolderSyncConfig) 1294 ret1, _ := ret[1].(error) 1295 return ret0, ret1 1296 } 1297 1298 // GetSyncConfig indicates an expected call of GetSyncConfig. 1299 func (mr *MockKBFSOpsMockRecorder) GetSyncConfig(arg0, arg1 interface{}) *gomock.Call { 1300 mr.mock.ctrl.T.Helper() 1301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSyncConfig", reflect.TypeOf((*MockKBFSOps)(nil).GetSyncConfig), arg0, arg1) 1302 } 1303 1304 // GetTLFCryptKeys mocks base method. 1305 func (m *MockKBFSOps) GetTLFCryptKeys(arg0 context.Context, arg1 *tlfhandle.Handle) ([]kbfscrypto.TLFCryptKey, tlf.ID, error) { 1306 m.ctrl.T.Helper() 1307 ret := m.ctrl.Call(m, "GetTLFCryptKeys", arg0, arg1) 1308 ret0, _ := ret[0].([]kbfscrypto.TLFCryptKey) 1309 ret1, _ := ret[1].(tlf.ID) 1310 ret2, _ := ret[2].(error) 1311 return ret0, ret1, ret2 1312 } 1313 1314 // GetTLFCryptKeys indicates an expected call of GetTLFCryptKeys. 1315 func (mr *MockKBFSOpsMockRecorder) GetTLFCryptKeys(arg0, arg1 interface{}) *gomock.Call { 1316 mr.mock.ctrl.T.Helper() 1317 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeys", reflect.TypeOf((*MockKBFSOps)(nil).GetTLFCryptKeys), arg0, arg1) 1318 } 1319 1320 // GetTLFHandle mocks base method. 1321 func (m *MockKBFSOps) GetTLFHandle(arg0 context.Context, arg1 Node) (*tlfhandle.Handle, error) { 1322 m.ctrl.T.Helper() 1323 ret := m.ctrl.Call(m, "GetTLFHandle", arg0, arg1) 1324 ret0, _ := ret[0].(*tlfhandle.Handle) 1325 ret1, _ := ret[1].(error) 1326 return ret0, ret1 1327 } 1328 1329 // GetTLFHandle indicates an expected call of GetTLFHandle. 1330 func (mr *MockKBFSOpsMockRecorder) GetTLFHandle(arg0, arg1 interface{}) *gomock.Call { 1331 mr.mock.ctrl.T.Helper() 1332 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFHandle", reflect.TypeOf((*MockKBFSOps)(nil).GetTLFHandle), arg0, arg1) 1333 } 1334 1335 // GetTLFID mocks base method. 1336 func (m *MockKBFSOps) GetTLFID(arg0 context.Context, arg1 *tlfhandle.Handle) (tlf.ID, error) { 1337 m.ctrl.T.Helper() 1338 ret := m.ctrl.Call(m, "GetTLFID", arg0, arg1) 1339 ret0, _ := ret[0].(tlf.ID) 1340 ret1, _ := ret[1].(error) 1341 return ret0, ret1 1342 } 1343 1344 // GetTLFID indicates an expected call of GetTLFID. 1345 func (mr *MockKBFSOpsMockRecorder) GetTLFID(arg0, arg1 interface{}) *gomock.Call { 1346 mr.mock.ctrl.T.Helper() 1347 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFID", reflect.TypeOf((*MockKBFSOps)(nil).GetTLFID), arg0, arg1) 1348 } 1349 1350 // GetUpdateHistory mocks base method. 1351 func (m *MockKBFSOps) GetUpdateHistory(arg0 context.Context, arg1 data.FolderBranch, arg2, arg3 kbfsmd.Revision) (TLFUpdateHistory, error) { 1352 m.ctrl.T.Helper() 1353 ret := m.ctrl.Call(m, "GetUpdateHistory", arg0, arg1, arg2, arg3) 1354 ret0, _ := ret[0].(TLFUpdateHistory) 1355 ret1, _ := ret[1].(error) 1356 return ret0, ret1 1357 } 1358 1359 // GetUpdateHistory indicates an expected call of GetUpdateHistory. 1360 func (mr *MockKBFSOpsMockRecorder) GetUpdateHistory(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1361 mr.mock.ctrl.T.Helper() 1362 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUpdateHistory", reflect.TypeOf((*MockKBFSOps)(nil).GetUpdateHistory), arg0, arg1, arg2, arg3) 1363 } 1364 1365 // InvalidateNodeAndChildren mocks base method. 1366 func (m *MockKBFSOps) InvalidateNodeAndChildren(arg0 context.Context, arg1 Node) error { 1367 m.ctrl.T.Helper() 1368 ret := m.ctrl.Call(m, "InvalidateNodeAndChildren", arg0, arg1) 1369 ret0, _ := ret[0].(error) 1370 return ret0 1371 } 1372 1373 // InvalidateNodeAndChildren indicates an expected call of InvalidateNodeAndChildren. 1374 func (mr *MockKBFSOpsMockRecorder) InvalidateNodeAndChildren(arg0, arg1 interface{}) *gomock.Call { 1375 mr.mock.ctrl.T.Helper() 1376 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateNodeAndChildren", reflect.TypeOf((*MockKBFSOps)(nil).InvalidateNodeAndChildren), arg0, arg1) 1377 } 1378 1379 // KickoffAllOutstandingRekeys mocks base method. 1380 func (m *MockKBFSOps) KickoffAllOutstandingRekeys() error { 1381 m.ctrl.T.Helper() 1382 ret := m.ctrl.Call(m, "KickoffAllOutstandingRekeys") 1383 ret0, _ := ret[0].(error) 1384 return ret0 1385 } 1386 1387 // KickoffAllOutstandingRekeys indicates an expected call of KickoffAllOutstandingRekeys. 1388 func (mr *MockKBFSOpsMockRecorder) KickoffAllOutstandingRekeys() *gomock.Call { 1389 mr.mock.ctrl.T.Helper() 1390 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KickoffAllOutstandingRekeys", reflect.TypeOf((*MockKBFSOps)(nil).KickoffAllOutstandingRekeys)) 1391 } 1392 1393 // Lookup mocks base method. 1394 func (m *MockKBFSOps) Lookup(arg0 context.Context, arg1 Node, arg2 data.PathPartString) (Node, data.EntryInfo, error) { 1395 m.ctrl.T.Helper() 1396 ret := m.ctrl.Call(m, "Lookup", arg0, arg1, arg2) 1397 ret0, _ := ret[0].(Node) 1398 ret1, _ := ret[1].(data.EntryInfo) 1399 ret2, _ := ret[2].(error) 1400 return ret0, ret1, ret2 1401 } 1402 1403 // Lookup indicates an expected call of Lookup. 1404 func (mr *MockKBFSOpsMockRecorder) Lookup(arg0, arg1, arg2 interface{}) *gomock.Call { 1405 mr.mock.ctrl.T.Helper() 1406 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockKBFSOps)(nil).Lookup), arg0, arg1, arg2) 1407 } 1408 1409 // MigrateToImplicitTeam mocks base method. 1410 func (m *MockKBFSOps) MigrateToImplicitTeam(arg0 context.Context, arg1 tlf.ID) error { 1411 m.ctrl.T.Helper() 1412 ret := m.ctrl.Call(m, "MigrateToImplicitTeam", arg0, arg1) 1413 ret0, _ := ret[0].(error) 1414 return ret0 1415 } 1416 1417 // MigrateToImplicitTeam indicates an expected call of MigrateToImplicitTeam. 1418 func (mr *MockKBFSOpsMockRecorder) MigrateToImplicitTeam(arg0, arg1 interface{}) *gomock.Call { 1419 mr.mock.ctrl.T.Helper() 1420 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MigrateToImplicitTeam", reflect.TypeOf((*MockKBFSOps)(nil).MigrateToImplicitTeam), arg0, arg1) 1421 } 1422 1423 // NewNotificationChannel mocks base method. 1424 func (m *MockKBFSOps) NewNotificationChannel(arg0 context.Context, arg1 *tlfhandle.Handle, arg2 chat1.ConversationID, arg3 string) { 1425 m.ctrl.T.Helper() 1426 m.ctrl.Call(m, "NewNotificationChannel", arg0, arg1, arg2, arg3) 1427 } 1428 1429 // NewNotificationChannel indicates an expected call of NewNotificationChannel. 1430 func (mr *MockKBFSOpsMockRecorder) NewNotificationChannel(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1431 mr.mock.ctrl.T.Helper() 1432 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewNotificationChannel", reflect.TypeOf((*MockKBFSOps)(nil).NewNotificationChannel), arg0, arg1, arg2, arg3) 1433 } 1434 1435 // PushConnectionStatusChange mocks base method. 1436 func (m *MockKBFSOps) PushConnectionStatusChange(arg0 string, arg1 error) { 1437 m.ctrl.T.Helper() 1438 m.ctrl.Call(m, "PushConnectionStatusChange", arg0, arg1) 1439 } 1440 1441 // PushConnectionStatusChange indicates an expected call of PushConnectionStatusChange. 1442 func (mr *MockKBFSOpsMockRecorder) PushConnectionStatusChange(arg0, arg1 interface{}) *gomock.Call { 1443 mr.mock.ctrl.T.Helper() 1444 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushConnectionStatusChange", reflect.TypeOf((*MockKBFSOps)(nil).PushConnectionStatusChange), arg0, arg1) 1445 } 1446 1447 // PushStatusChange mocks base method. 1448 func (m *MockKBFSOps) PushStatusChange() { 1449 m.ctrl.T.Helper() 1450 m.ctrl.Call(m, "PushStatusChange") 1451 } 1452 1453 // PushStatusChange indicates an expected call of PushStatusChange. 1454 func (mr *MockKBFSOpsMockRecorder) PushStatusChange() *gomock.Call { 1455 mr.mock.ctrl.T.Helper() 1456 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushStatusChange", reflect.TypeOf((*MockKBFSOps)(nil).PushStatusChange)) 1457 } 1458 1459 // Read mocks base method. 1460 func (m *MockKBFSOps) Read(arg0 context.Context, arg1 Node, arg2 []byte, arg3 int64) (int64, error) { 1461 m.ctrl.T.Helper() 1462 ret := m.ctrl.Call(m, "Read", arg0, arg1, arg2, arg3) 1463 ret0, _ := ret[0].(int64) 1464 ret1, _ := ret[1].(error) 1465 return ret0, ret1 1466 } 1467 1468 // Read indicates an expected call of Read. 1469 func (mr *MockKBFSOpsMockRecorder) Read(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1470 mr.mock.ctrl.T.Helper() 1471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockKBFSOps)(nil).Read), arg0, arg1, arg2, arg3) 1472 } 1473 1474 // RefreshCachedFavorites mocks base method. 1475 func (m *MockKBFSOps) RefreshCachedFavorites(arg0 context.Context, arg1 FavoritesRefreshMode) { 1476 m.ctrl.T.Helper() 1477 m.ctrl.Call(m, "RefreshCachedFavorites", arg0, arg1) 1478 } 1479 1480 // RefreshCachedFavorites indicates an expected call of RefreshCachedFavorites. 1481 func (mr *MockKBFSOpsMockRecorder) RefreshCachedFavorites(arg0, arg1 interface{}) *gomock.Call { 1482 mr.mock.ctrl.T.Helper() 1483 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshCachedFavorites", reflect.TypeOf((*MockKBFSOps)(nil).RefreshCachedFavorites), arg0, arg1) 1484 } 1485 1486 // RefreshEditHistory mocks base method. 1487 func (m *MockKBFSOps) RefreshEditHistory(arg0 favorites.Folder) { 1488 m.ctrl.T.Helper() 1489 m.ctrl.Call(m, "RefreshEditHistory", arg0) 1490 } 1491 1492 // RefreshEditHistory indicates an expected call of RefreshEditHistory. 1493 func (mr *MockKBFSOpsMockRecorder) RefreshEditHistory(arg0 interface{}) *gomock.Call { 1494 mr.mock.ctrl.T.Helper() 1495 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshEditHistory", reflect.TypeOf((*MockKBFSOps)(nil).RefreshEditHistory), arg0) 1496 } 1497 1498 // RemoveDir mocks base method. 1499 func (m *MockKBFSOps) RemoveDir(arg0 context.Context, arg1 Node, arg2 data.PathPartString) error { 1500 m.ctrl.T.Helper() 1501 ret := m.ctrl.Call(m, "RemoveDir", arg0, arg1, arg2) 1502 ret0, _ := ret[0].(error) 1503 return ret0 1504 } 1505 1506 // RemoveDir indicates an expected call of RemoveDir. 1507 func (mr *MockKBFSOpsMockRecorder) RemoveDir(arg0, arg1, arg2 interface{}) *gomock.Call { 1508 mr.mock.ctrl.T.Helper() 1509 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveDir", reflect.TypeOf((*MockKBFSOps)(nil).RemoveDir), arg0, arg1, arg2) 1510 } 1511 1512 // RemoveEntry mocks base method. 1513 func (m *MockKBFSOps) RemoveEntry(arg0 context.Context, arg1 Node, arg2 data.PathPartString) error { 1514 m.ctrl.T.Helper() 1515 ret := m.ctrl.Call(m, "RemoveEntry", arg0, arg1, arg2) 1516 ret0, _ := ret[0].(error) 1517 return ret0 1518 } 1519 1520 // RemoveEntry indicates an expected call of RemoveEntry. 1521 func (mr *MockKBFSOpsMockRecorder) RemoveEntry(arg0, arg1, arg2 interface{}) *gomock.Call { 1522 mr.mock.ctrl.T.Helper() 1523 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveEntry", reflect.TypeOf((*MockKBFSOps)(nil).RemoveEntry), arg0, arg1, arg2) 1524 } 1525 1526 // Rename mocks base method. 1527 func (m *MockKBFSOps) Rename(arg0 context.Context, arg1 Node, arg2 data.PathPartString, arg3 Node, arg4 data.PathPartString) error { 1528 m.ctrl.T.Helper() 1529 ret := m.ctrl.Call(m, "Rename", arg0, arg1, arg2, arg3, arg4) 1530 ret0, _ := ret[0].(error) 1531 return ret0 1532 } 1533 1534 // Rename indicates an expected call of Rename. 1535 func (mr *MockKBFSOpsMockRecorder) Rename(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 1536 mr.mock.ctrl.T.Helper() 1537 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rename", reflect.TypeOf((*MockKBFSOps)(nil).Rename), arg0, arg1, arg2, arg3, arg4) 1538 } 1539 1540 // RequestRekey mocks base method. 1541 func (m *MockKBFSOps) RequestRekey(arg0 context.Context, arg1 tlf.ID) { 1542 m.ctrl.T.Helper() 1543 m.ctrl.Call(m, "RequestRekey", arg0, arg1) 1544 } 1545 1546 // RequestRekey indicates an expected call of RequestRekey. 1547 func (mr *MockKBFSOpsMockRecorder) RequestRekey(arg0, arg1 interface{}) *gomock.Call { 1548 mr.mock.ctrl.T.Helper() 1549 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestRekey", reflect.TypeOf((*MockKBFSOps)(nil).RequestRekey), arg0, arg1) 1550 } 1551 1552 // Reset mocks base method. 1553 func (m *MockKBFSOps) Reset(arg0 context.Context, arg1 *tlfhandle.Handle, arg2 *tlf.ID) error { 1554 m.ctrl.T.Helper() 1555 ret := m.ctrl.Call(m, "Reset", arg0, arg1, arg2) 1556 ret0, _ := ret[0].(error) 1557 return ret0 1558 } 1559 1560 // Reset indicates an expected call of Reset. 1561 func (mr *MockKBFSOpsMockRecorder) Reset(arg0, arg1, arg2 interface{}) *gomock.Call { 1562 mr.mock.ctrl.T.Helper() 1563 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockKBFSOps)(nil).Reset), arg0, arg1, arg2) 1564 } 1565 1566 // SetEx mocks base method. 1567 func (m *MockKBFSOps) SetEx(arg0 context.Context, arg1 Node, arg2 bool) error { 1568 m.ctrl.T.Helper() 1569 ret := m.ctrl.Call(m, "SetEx", arg0, arg1, arg2) 1570 ret0, _ := ret[0].(error) 1571 return ret0 1572 } 1573 1574 // SetEx indicates an expected call of SetEx. 1575 func (mr *MockKBFSOpsMockRecorder) SetEx(arg0, arg1, arg2 interface{}) *gomock.Call { 1576 mr.mock.ctrl.T.Helper() 1577 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEx", reflect.TypeOf((*MockKBFSOps)(nil).SetEx), arg0, arg1, arg2) 1578 } 1579 1580 // SetFavoritesHomeTLFInfo mocks base method. 1581 func (m *MockKBFSOps) SetFavoritesHomeTLFInfo(arg0 context.Context, arg1 homeTLFInfo) { 1582 m.ctrl.T.Helper() 1583 m.ctrl.Call(m, "SetFavoritesHomeTLFInfo", arg0, arg1) 1584 } 1585 1586 // SetFavoritesHomeTLFInfo indicates an expected call of SetFavoritesHomeTLFInfo. 1587 func (mr *MockKBFSOpsMockRecorder) SetFavoritesHomeTLFInfo(arg0, arg1 interface{}) *gomock.Call { 1588 mr.mock.ctrl.T.Helper() 1589 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFavoritesHomeTLFInfo", reflect.TypeOf((*MockKBFSOps)(nil).SetFavoritesHomeTLFInfo), arg0, arg1) 1590 } 1591 1592 // SetMtime mocks base method. 1593 func (m *MockKBFSOps) SetMtime(arg0 context.Context, arg1 Node, arg2 *time.Time) error { 1594 m.ctrl.T.Helper() 1595 ret := m.ctrl.Call(m, "SetMtime", arg0, arg1, arg2) 1596 ret0, _ := ret[0].(error) 1597 return ret0 1598 } 1599 1600 // SetMtime indicates an expected call of SetMtime. 1601 func (mr *MockKBFSOpsMockRecorder) SetMtime(arg0, arg1, arg2 interface{}) *gomock.Call { 1602 mr.mock.ctrl.T.Helper() 1603 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMtime", reflect.TypeOf((*MockKBFSOps)(nil).SetMtime), arg0, arg1, arg2) 1604 } 1605 1606 // SetSyncConfig mocks base method. 1607 func (m *MockKBFSOps) SetSyncConfig(arg0 context.Context, arg1 tlf.ID, arg2 keybase1.FolderSyncConfig) (<-chan error, error) { 1608 m.ctrl.T.Helper() 1609 ret := m.ctrl.Call(m, "SetSyncConfig", arg0, arg1, arg2) 1610 ret0, _ := ret[0].(<-chan error) 1611 ret1, _ := ret[1].(error) 1612 return ret0, ret1 1613 } 1614 1615 // SetSyncConfig indicates an expected call of SetSyncConfig. 1616 func (mr *MockKBFSOpsMockRecorder) SetSyncConfig(arg0, arg1, arg2 interface{}) *gomock.Call { 1617 mr.mock.ctrl.T.Helper() 1618 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSyncConfig", reflect.TypeOf((*MockKBFSOps)(nil).SetSyncConfig), arg0, arg1, arg2) 1619 } 1620 1621 // Shutdown mocks base method. 1622 func (m *MockKBFSOps) Shutdown(arg0 context.Context) error { 1623 m.ctrl.T.Helper() 1624 ret := m.ctrl.Call(m, "Shutdown", arg0) 1625 ret0, _ := ret[0].(error) 1626 return ret0 1627 } 1628 1629 // Shutdown indicates an expected call of Shutdown. 1630 func (mr *MockKBFSOpsMockRecorder) Shutdown(arg0 interface{}) *gomock.Call { 1631 mr.mock.ctrl.T.Helper() 1632 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockKBFSOps)(nil).Shutdown), arg0) 1633 } 1634 1635 // Stat mocks base method. 1636 func (m *MockKBFSOps) Stat(arg0 context.Context, arg1 Node) (data.EntryInfo, error) { 1637 m.ctrl.T.Helper() 1638 ret := m.ctrl.Call(m, "Stat", arg0, arg1) 1639 ret0, _ := ret[0].(data.EntryInfo) 1640 ret1, _ := ret[1].(error) 1641 return ret0, ret1 1642 } 1643 1644 // Stat indicates an expected call of Stat. 1645 func (mr *MockKBFSOpsMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call { 1646 mr.mock.ctrl.T.Helper() 1647 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stat", reflect.TypeOf((*MockKBFSOps)(nil).Stat), arg0, arg1) 1648 } 1649 1650 // Status mocks base method. 1651 func (m *MockKBFSOps) Status(arg0 context.Context) (KBFSStatus, <-chan StatusUpdate, error) { 1652 m.ctrl.T.Helper() 1653 ret := m.ctrl.Call(m, "Status", arg0) 1654 ret0, _ := ret[0].(KBFSStatus) 1655 ret1, _ := ret[1].(<-chan StatusUpdate) 1656 ret2, _ := ret[2].(error) 1657 return ret0, ret1, ret2 1658 } 1659 1660 // Status indicates an expected call of Status. 1661 func (mr *MockKBFSOpsMockRecorder) Status(arg0 interface{}) *gomock.Call { 1662 mr.mock.ctrl.T.Helper() 1663 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockKBFSOps)(nil).Status), arg0) 1664 } 1665 1666 // StatusOfServices mocks base method. 1667 func (m *MockKBFSOps) StatusOfServices() (map[string]error, chan StatusUpdate) { 1668 m.ctrl.T.Helper() 1669 ret := m.ctrl.Call(m, "StatusOfServices") 1670 ret0, _ := ret[0].(map[string]error) 1671 ret1, _ := ret[1].(chan StatusUpdate) 1672 return ret0, ret1 1673 } 1674 1675 // StatusOfServices indicates an expected call of StatusOfServices. 1676 func (mr *MockKBFSOpsMockRecorder) StatusOfServices() *gomock.Call { 1677 mr.mock.ctrl.T.Helper() 1678 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatusOfServices", reflect.TypeOf((*MockKBFSOps)(nil).StatusOfServices)) 1679 } 1680 1681 // SyncAll mocks base method. 1682 func (m *MockKBFSOps) SyncAll(arg0 context.Context, arg1 data.FolderBranch) error { 1683 m.ctrl.T.Helper() 1684 ret := m.ctrl.Call(m, "SyncAll", arg0, arg1) 1685 ret0, _ := ret[0].(error) 1686 return ret0 1687 } 1688 1689 // SyncAll indicates an expected call of SyncAll. 1690 func (mr *MockKBFSOpsMockRecorder) SyncAll(arg0, arg1 interface{}) *gomock.Call { 1691 mr.mock.ctrl.T.Helper() 1692 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncAll", reflect.TypeOf((*MockKBFSOps)(nil).SyncAll), arg0, arg1) 1693 } 1694 1695 // SyncFromServer mocks base method. 1696 func (m *MockKBFSOps) SyncFromServer(arg0 context.Context, arg1 data.FolderBranch, arg2 *keybase1.LockID) error { 1697 m.ctrl.T.Helper() 1698 ret := m.ctrl.Call(m, "SyncFromServer", arg0, arg1, arg2) 1699 ret0, _ := ret[0].(error) 1700 return ret0 1701 } 1702 1703 // SyncFromServer indicates an expected call of SyncFromServer. 1704 func (mr *MockKBFSOpsMockRecorder) SyncFromServer(arg0, arg1, arg2 interface{}) *gomock.Call { 1705 mr.mock.ctrl.T.Helper() 1706 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncFromServer", reflect.TypeOf((*MockKBFSOps)(nil).SyncFromServer), arg0, arg1, arg2) 1707 } 1708 1709 // TeamAbandoned mocks base method. 1710 func (m *MockKBFSOps) TeamAbandoned(arg0 context.Context, arg1 keybase1.TeamID) { 1711 m.ctrl.T.Helper() 1712 m.ctrl.Call(m, "TeamAbandoned", arg0, arg1) 1713 } 1714 1715 // TeamAbandoned indicates an expected call of TeamAbandoned. 1716 func (mr *MockKBFSOpsMockRecorder) TeamAbandoned(arg0, arg1 interface{}) *gomock.Call { 1717 mr.mock.ctrl.T.Helper() 1718 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TeamAbandoned", reflect.TypeOf((*MockKBFSOps)(nil).TeamAbandoned), arg0, arg1) 1719 } 1720 1721 // TeamNameChanged mocks base method. 1722 func (m *MockKBFSOps) TeamNameChanged(arg0 context.Context, arg1 keybase1.TeamID) { 1723 m.ctrl.T.Helper() 1724 m.ctrl.Call(m, "TeamNameChanged", arg0, arg1) 1725 } 1726 1727 // TeamNameChanged indicates an expected call of TeamNameChanged. 1728 func (mr *MockKBFSOpsMockRecorder) TeamNameChanged(arg0, arg1 interface{}) *gomock.Call { 1729 mr.mock.ctrl.T.Helper() 1730 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TeamNameChanged", reflect.TypeOf((*MockKBFSOps)(nil).TeamNameChanged), arg0, arg1) 1731 } 1732 1733 // Truncate mocks base method. 1734 func (m *MockKBFSOps) Truncate(arg0 context.Context, arg1 Node, arg2 uint64) error { 1735 m.ctrl.T.Helper() 1736 ret := m.ctrl.Call(m, "Truncate", arg0, arg1, arg2) 1737 ret0, _ := ret[0].(error) 1738 return ret0 1739 } 1740 1741 // Truncate indicates an expected call of Truncate. 1742 func (mr *MockKBFSOpsMockRecorder) Truncate(arg0, arg1, arg2 interface{}) *gomock.Call { 1743 mr.mock.ctrl.T.Helper() 1744 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockKBFSOps)(nil).Truncate), arg0, arg1, arg2) 1745 } 1746 1747 // UnstageForTesting mocks base method. 1748 func (m *MockKBFSOps) UnstageForTesting(arg0 context.Context, arg1 data.FolderBranch) error { 1749 m.ctrl.T.Helper() 1750 ret := m.ctrl.Call(m, "UnstageForTesting", arg0, arg1) 1751 ret0, _ := ret[0].(error) 1752 return ret0 1753 } 1754 1755 // UnstageForTesting indicates an expected call of UnstageForTesting. 1756 func (mr *MockKBFSOpsMockRecorder) UnstageForTesting(arg0, arg1 interface{}) *gomock.Call { 1757 mr.mock.ctrl.T.Helper() 1758 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnstageForTesting", reflect.TypeOf((*MockKBFSOps)(nil).UnstageForTesting), arg0, arg1) 1759 } 1760 1761 // Write mocks base method. 1762 func (m *MockKBFSOps) Write(arg0 context.Context, arg1 Node, arg2 []byte, arg3 int64) error { 1763 m.ctrl.T.Helper() 1764 ret := m.ctrl.Call(m, "Write", arg0, arg1, arg2, arg3) 1765 ret0, _ := ret[0].(error) 1766 return ret0 1767 } 1768 1769 // Write indicates an expected call of Write. 1770 func (mr *MockKBFSOpsMockRecorder) Write(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1771 mr.mock.ctrl.T.Helper() 1772 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockKBFSOps)(nil).Write), arg0, arg1, arg2, arg3) 1773 } 1774 1775 // MockKBPKI is a mock of KBPKI interface. 1776 type MockKBPKI struct { 1777 ctrl *gomock.Controller 1778 recorder *MockKBPKIMockRecorder 1779 } 1780 1781 // MockKBPKIMockRecorder is the mock recorder for MockKBPKI. 1782 type MockKBPKIMockRecorder struct { 1783 mock *MockKBPKI 1784 } 1785 1786 // NewMockKBPKI creates a new mock instance. 1787 func NewMockKBPKI(ctrl *gomock.Controller) *MockKBPKI { 1788 mock := &MockKBPKI{ctrl: ctrl} 1789 mock.recorder = &MockKBPKIMockRecorder{mock} 1790 return mock 1791 } 1792 1793 // EXPECT returns an object that allows the caller to indicate expected use. 1794 func (m *MockKBPKI) EXPECT() *MockKBPKIMockRecorder { 1795 return m.recorder 1796 } 1797 1798 // CreateTeamTLF mocks base method. 1799 func (m *MockKBPKI) CreateTeamTLF(arg0 context.Context, arg1 keybase1.TeamID, arg2 tlf.ID) error { 1800 m.ctrl.T.Helper() 1801 ret := m.ctrl.Call(m, "CreateTeamTLF", arg0, arg1, arg2) 1802 ret0, _ := ret[0].(error) 1803 return ret0 1804 } 1805 1806 // CreateTeamTLF indicates an expected call of CreateTeamTLF. 1807 func (mr *MockKBPKIMockRecorder) CreateTeamTLF(arg0, arg1, arg2 interface{}) *gomock.Call { 1808 mr.mock.ctrl.T.Helper() 1809 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTeamTLF", reflect.TypeOf((*MockKBPKI)(nil).CreateTeamTLF), arg0, arg1, arg2) 1810 } 1811 1812 // FavoriteAdd mocks base method. 1813 func (m *MockKBPKI) FavoriteAdd(arg0 context.Context, arg1 keybase1.FolderHandle) error { 1814 m.ctrl.T.Helper() 1815 ret := m.ctrl.Call(m, "FavoriteAdd", arg0, arg1) 1816 ret0, _ := ret[0].(error) 1817 return ret0 1818 } 1819 1820 // FavoriteAdd indicates an expected call of FavoriteAdd. 1821 func (mr *MockKBPKIMockRecorder) FavoriteAdd(arg0, arg1 interface{}) *gomock.Call { 1822 mr.mock.ctrl.T.Helper() 1823 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteAdd", reflect.TypeOf((*MockKBPKI)(nil).FavoriteAdd), arg0, arg1) 1824 } 1825 1826 // FavoriteDelete mocks base method. 1827 func (m *MockKBPKI) FavoriteDelete(arg0 context.Context, arg1 keybase1.FolderHandle) error { 1828 m.ctrl.T.Helper() 1829 ret := m.ctrl.Call(m, "FavoriteDelete", arg0, arg1) 1830 ret0, _ := ret[0].(error) 1831 return ret0 1832 } 1833 1834 // FavoriteDelete indicates an expected call of FavoriteDelete. 1835 func (mr *MockKBPKIMockRecorder) FavoriteDelete(arg0, arg1 interface{}) *gomock.Call { 1836 mr.mock.ctrl.T.Helper() 1837 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteDelete", reflect.TypeOf((*MockKBPKI)(nil).FavoriteDelete), arg0, arg1) 1838 } 1839 1840 // FavoriteList mocks base method. 1841 func (m *MockKBPKI) FavoriteList(arg0 context.Context) (keybase1.FavoritesResult, error) { 1842 m.ctrl.T.Helper() 1843 ret := m.ctrl.Call(m, "FavoriteList", arg0) 1844 ret0, _ := ret[0].(keybase1.FavoritesResult) 1845 ret1, _ := ret[1].(error) 1846 return ret0, ret1 1847 } 1848 1849 // FavoriteList indicates an expected call of FavoriteList. 1850 func (mr *MockKBPKIMockRecorder) FavoriteList(arg0 interface{}) *gomock.Call { 1851 mr.mock.ctrl.T.Helper() 1852 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteList", reflect.TypeOf((*MockKBPKI)(nil).FavoriteList), arg0) 1853 } 1854 1855 // GetCryptPublicKeys mocks base method. 1856 func (m *MockKBPKI) GetCryptPublicKeys(arg0 context.Context, arg1 keybase1.UID, arg2 keybase1.OfflineAvailability) ([]kbfscrypto.CryptPublicKey, error) { 1857 m.ctrl.T.Helper() 1858 ret := m.ctrl.Call(m, "GetCryptPublicKeys", arg0, arg1, arg2) 1859 ret0, _ := ret[0].([]kbfscrypto.CryptPublicKey) 1860 ret1, _ := ret[1].(error) 1861 return ret0, ret1 1862 } 1863 1864 // GetCryptPublicKeys indicates an expected call of GetCryptPublicKeys. 1865 func (mr *MockKBPKIMockRecorder) GetCryptPublicKeys(arg0, arg1, arg2 interface{}) *gomock.Call { 1866 mr.mock.ctrl.T.Helper() 1867 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCryptPublicKeys", reflect.TypeOf((*MockKBPKI)(nil).GetCryptPublicKeys), arg0, arg1, arg2) 1868 } 1869 1870 // GetCurrentMerkleRoot mocks base method. 1871 func (m *MockKBPKI) GetCurrentMerkleRoot(arg0 context.Context) (keybase1.MerkleRootV2, time.Time, error) { 1872 m.ctrl.T.Helper() 1873 ret := m.ctrl.Call(m, "GetCurrentMerkleRoot", arg0) 1874 ret0, _ := ret[0].(keybase1.MerkleRootV2) 1875 ret1, _ := ret[1].(time.Time) 1876 ret2, _ := ret[2].(error) 1877 return ret0, ret1, ret2 1878 } 1879 1880 // GetCurrentMerkleRoot indicates an expected call of GetCurrentMerkleRoot. 1881 func (mr *MockKBPKIMockRecorder) GetCurrentMerkleRoot(arg0 interface{}) *gomock.Call { 1882 mr.mock.ctrl.T.Helper() 1883 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentMerkleRoot", reflect.TypeOf((*MockKBPKI)(nil).GetCurrentMerkleRoot), arg0) 1884 } 1885 1886 // GetCurrentSession mocks base method. 1887 func (m *MockKBPKI) GetCurrentSession(arg0 context.Context) (idutil.SessionInfo, error) { 1888 m.ctrl.T.Helper() 1889 ret := m.ctrl.Call(m, "GetCurrentSession", arg0) 1890 ret0, _ := ret[0].(idutil.SessionInfo) 1891 ret1, _ := ret[1].(error) 1892 return ret0, ret1 1893 } 1894 1895 // GetCurrentSession indicates an expected call of GetCurrentSession. 1896 func (mr *MockKBPKIMockRecorder) GetCurrentSession(arg0 interface{}) *gomock.Call { 1897 mr.mock.ctrl.T.Helper() 1898 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentSession", reflect.TypeOf((*MockKBPKI)(nil).GetCurrentSession), arg0) 1899 } 1900 1901 // GetNormalizedUsername mocks base method. 1902 func (m *MockKBPKI) GetNormalizedUsername(arg0 context.Context, arg1 keybase1.UserOrTeamID, arg2 keybase1.OfflineAvailability) (kbun.NormalizedUsername, error) { 1903 m.ctrl.T.Helper() 1904 ret := m.ctrl.Call(m, "GetNormalizedUsername", arg0, arg1, arg2) 1905 ret0, _ := ret[0].(kbun.NormalizedUsername) 1906 ret1, _ := ret[1].(error) 1907 return ret0, ret1 1908 } 1909 1910 // GetNormalizedUsername indicates an expected call of GetNormalizedUsername. 1911 func (mr *MockKBPKIMockRecorder) GetNormalizedUsername(arg0, arg1, arg2 interface{}) *gomock.Call { 1912 mr.mock.ctrl.T.Helper() 1913 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNormalizedUsername", reflect.TypeOf((*MockKBPKI)(nil).GetNormalizedUsername), arg0, arg1, arg2) 1914 } 1915 1916 // GetTeamRootID mocks base method. 1917 func (m *MockKBPKI) GetTeamRootID(arg0 context.Context, arg1 keybase1.TeamID, arg2 keybase1.OfflineAvailability) (keybase1.TeamID, error) { 1918 m.ctrl.T.Helper() 1919 ret := m.ctrl.Call(m, "GetTeamRootID", arg0, arg1, arg2) 1920 ret0, _ := ret[0].(keybase1.TeamID) 1921 ret1, _ := ret[1].(error) 1922 return ret0, ret1 1923 } 1924 1925 // GetTeamRootID indicates an expected call of GetTeamRootID. 1926 func (mr *MockKBPKIMockRecorder) GetTeamRootID(arg0, arg1, arg2 interface{}) *gomock.Call { 1927 mr.mock.ctrl.T.Helper() 1928 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamRootID", reflect.TypeOf((*MockKBPKI)(nil).GetTeamRootID), arg0, arg1, arg2) 1929 } 1930 1931 // GetTeamTLFCryptKeys mocks base method. 1932 func (m *MockKBPKI) GetTeamTLFCryptKeys(arg0 context.Context, arg1 keybase1.TeamID, arg2 kbfsmd.KeyGen, arg3 keybase1.OfflineAvailability) (map[kbfsmd.KeyGen]kbfscrypto.TLFCryptKey, kbfsmd.KeyGen, error) { 1933 m.ctrl.T.Helper() 1934 ret := m.ctrl.Call(m, "GetTeamTLFCryptKeys", arg0, arg1, arg2, arg3) 1935 ret0, _ := ret[0].(map[kbfsmd.KeyGen]kbfscrypto.TLFCryptKey) 1936 ret1, _ := ret[1].(kbfsmd.KeyGen) 1937 ret2, _ := ret[2].(error) 1938 return ret0, ret1, ret2 1939 } 1940 1941 // GetTeamTLFCryptKeys indicates an expected call of GetTeamTLFCryptKeys. 1942 func (mr *MockKBPKIMockRecorder) GetTeamTLFCryptKeys(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1943 mr.mock.ctrl.T.Helper() 1944 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamTLFCryptKeys", reflect.TypeOf((*MockKBPKI)(nil).GetTeamTLFCryptKeys), arg0, arg1, arg2, arg3) 1945 } 1946 1947 // HasVerifyingKey mocks base method. 1948 func (m *MockKBPKI) HasVerifyingKey(arg0 context.Context, arg1 keybase1.UID, arg2 kbfscrypto.VerifyingKey, arg3 time.Time, arg4 keybase1.OfflineAvailability) error { 1949 m.ctrl.T.Helper() 1950 ret := m.ctrl.Call(m, "HasVerifyingKey", arg0, arg1, arg2, arg3, arg4) 1951 ret0, _ := ret[0].(error) 1952 return ret0 1953 } 1954 1955 // HasVerifyingKey indicates an expected call of HasVerifyingKey. 1956 func (mr *MockKBPKIMockRecorder) HasVerifyingKey(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 1957 mr.mock.ctrl.T.Helper() 1958 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasVerifyingKey", reflect.TypeOf((*MockKBPKI)(nil).HasVerifyingKey), arg0, arg1, arg2, arg3, arg4) 1959 } 1960 1961 // Identify mocks base method. 1962 func (m *MockKBPKI) Identify(arg0 context.Context, arg1, arg2 string, arg3 keybase1.OfflineAvailability) (kbun.NormalizedUsername, keybase1.UserOrTeamID, error) { 1963 m.ctrl.T.Helper() 1964 ret := m.ctrl.Call(m, "Identify", arg0, arg1, arg2, arg3) 1965 ret0, _ := ret[0].(kbun.NormalizedUsername) 1966 ret1, _ := ret[1].(keybase1.UserOrTeamID) 1967 ret2, _ := ret[2].(error) 1968 return ret0, ret1, ret2 1969 } 1970 1971 // Identify indicates an expected call of Identify. 1972 func (mr *MockKBPKIMockRecorder) Identify(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 1973 mr.mock.ctrl.T.Helper() 1974 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identify", reflect.TypeOf((*MockKBPKI)(nil).Identify), arg0, arg1, arg2, arg3) 1975 } 1976 1977 // IdentifyImplicitTeam mocks base method. 1978 func (m *MockKBPKI) IdentifyImplicitTeam(arg0 context.Context, arg1, arg2 string, arg3 tlf.Type, arg4 string, arg5 keybase1.OfflineAvailability) (idutil.ImplicitTeamInfo, error) { 1979 m.ctrl.T.Helper() 1980 ret := m.ctrl.Call(m, "IdentifyImplicitTeam", arg0, arg1, arg2, arg3, arg4, arg5) 1981 ret0, _ := ret[0].(idutil.ImplicitTeamInfo) 1982 ret1, _ := ret[1].(error) 1983 return ret0, ret1 1984 } 1985 1986 // IdentifyImplicitTeam indicates an expected call of IdentifyImplicitTeam. 1987 func (mr *MockKBPKIMockRecorder) IdentifyImplicitTeam(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 1988 mr.mock.ctrl.T.Helper() 1989 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentifyImplicitTeam", reflect.TypeOf((*MockKBPKI)(nil).IdentifyImplicitTeam), arg0, arg1, arg2, arg3, arg4, arg5) 1990 } 1991 1992 // InvalidateTeamCacheForID mocks base method. 1993 func (m *MockKBPKI) InvalidateTeamCacheForID(arg0 keybase1.TeamID) { 1994 m.ctrl.T.Helper() 1995 m.ctrl.Call(m, "InvalidateTeamCacheForID", arg0) 1996 } 1997 1998 // InvalidateTeamCacheForID indicates an expected call of InvalidateTeamCacheForID. 1999 func (mr *MockKBPKIMockRecorder) InvalidateTeamCacheForID(arg0 interface{}) *gomock.Call { 2000 mr.mock.ctrl.T.Helper() 2001 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateTeamCacheForID", reflect.TypeOf((*MockKBPKI)(nil).InvalidateTeamCacheForID), arg0) 2002 } 2003 2004 // IsTeamReader mocks base method. 2005 func (m *MockKBPKI) IsTeamReader(arg0 context.Context, arg1 keybase1.TeamID, arg2 keybase1.UID, arg3 keybase1.OfflineAvailability) (bool, error) { 2006 m.ctrl.T.Helper() 2007 ret := m.ctrl.Call(m, "IsTeamReader", arg0, arg1, arg2, arg3) 2008 ret0, _ := ret[0].(bool) 2009 ret1, _ := ret[1].(error) 2010 return ret0, ret1 2011 } 2012 2013 // IsTeamReader indicates an expected call of IsTeamReader. 2014 func (mr *MockKBPKIMockRecorder) IsTeamReader(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2015 mr.mock.ctrl.T.Helper() 2016 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTeamReader", reflect.TypeOf((*MockKBPKI)(nil).IsTeamReader), arg0, arg1, arg2, arg3) 2017 } 2018 2019 // IsTeamWriter mocks base method. 2020 func (m *MockKBPKI) IsTeamWriter(arg0 context.Context, arg1 keybase1.TeamID, arg2 keybase1.UID, arg3 kbfscrypto.VerifyingKey, arg4 keybase1.OfflineAvailability) (bool, error) { 2021 m.ctrl.T.Helper() 2022 ret := m.ctrl.Call(m, "IsTeamWriter", arg0, arg1, arg2, arg3, arg4) 2023 ret0, _ := ret[0].(bool) 2024 ret1, _ := ret[1].(error) 2025 return ret0, ret1 2026 } 2027 2028 // IsTeamWriter indicates an expected call of IsTeamWriter. 2029 func (mr *MockKBPKIMockRecorder) IsTeamWriter(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 2030 mr.mock.ctrl.T.Helper() 2031 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTeamWriter", reflect.TypeOf((*MockKBPKI)(nil).IsTeamWriter), arg0, arg1, arg2, arg3, arg4) 2032 } 2033 2034 // NoLongerTeamWriter mocks base method. 2035 func (m *MockKBPKI) NoLongerTeamWriter(arg0 context.Context, arg1 keybase1.TeamID, arg2 tlf.Type, arg3 keybase1.UID, arg4 kbfscrypto.VerifyingKey, arg5 keybase1.OfflineAvailability) (keybase1.MerkleRootV2, error) { 2036 m.ctrl.T.Helper() 2037 ret := m.ctrl.Call(m, "NoLongerTeamWriter", arg0, arg1, arg2, arg3, arg4, arg5) 2038 ret0, _ := ret[0].(keybase1.MerkleRootV2) 2039 ret1, _ := ret[1].(error) 2040 return ret0, ret1 2041 } 2042 2043 // NoLongerTeamWriter indicates an expected call of NoLongerTeamWriter. 2044 func (mr *MockKBPKIMockRecorder) NoLongerTeamWriter(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 2045 mr.mock.ctrl.T.Helper() 2046 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NoLongerTeamWriter", reflect.TypeOf((*MockKBPKI)(nil).NoLongerTeamWriter), arg0, arg1, arg2, arg3, arg4, arg5) 2047 } 2048 2049 // NormalizeSocialAssertion mocks base method. 2050 func (m *MockKBPKI) NormalizeSocialAssertion(arg0 context.Context, arg1 string) (keybase1.SocialAssertion, error) { 2051 m.ctrl.T.Helper() 2052 ret := m.ctrl.Call(m, "NormalizeSocialAssertion", arg0, arg1) 2053 ret0, _ := ret[0].(keybase1.SocialAssertion) 2054 ret1, _ := ret[1].(error) 2055 return ret0, ret1 2056 } 2057 2058 // NormalizeSocialAssertion indicates an expected call of NormalizeSocialAssertion. 2059 func (mr *MockKBPKIMockRecorder) NormalizeSocialAssertion(arg0, arg1 interface{}) *gomock.Call { 2060 mr.mock.ctrl.T.Helper() 2061 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NormalizeSocialAssertion", reflect.TypeOf((*MockKBPKI)(nil).NormalizeSocialAssertion), arg0, arg1) 2062 } 2063 2064 // Notify mocks base method. 2065 func (m *MockKBPKI) Notify(arg0 context.Context, arg1 *keybase1.FSNotification) error { 2066 m.ctrl.T.Helper() 2067 ret := m.ctrl.Call(m, "Notify", arg0, arg1) 2068 ret0, _ := ret[0].(error) 2069 return ret0 2070 } 2071 2072 // Notify indicates an expected call of Notify. 2073 func (mr *MockKBPKIMockRecorder) Notify(arg0, arg1 interface{}) *gomock.Call { 2074 mr.mock.ctrl.T.Helper() 2075 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockKBPKI)(nil).Notify), arg0, arg1) 2076 } 2077 2078 // NotifyPathUpdated mocks base method. 2079 func (m *MockKBPKI) NotifyPathUpdated(arg0 context.Context, arg1 string) error { 2080 m.ctrl.T.Helper() 2081 ret := m.ctrl.Call(m, "NotifyPathUpdated", arg0, arg1) 2082 ret0, _ := ret[0].(error) 2083 return ret0 2084 } 2085 2086 // NotifyPathUpdated indicates an expected call of NotifyPathUpdated. 2087 func (mr *MockKBPKIMockRecorder) NotifyPathUpdated(arg0, arg1 interface{}) *gomock.Call { 2088 mr.mock.ctrl.T.Helper() 2089 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyPathUpdated", reflect.TypeOf((*MockKBPKI)(nil).NotifyPathUpdated), arg0, arg1) 2090 } 2091 2092 // PutGitMetadata mocks base method. 2093 func (m *MockKBPKI) PutGitMetadata(arg0 context.Context, arg1 keybase1.FolderHandle, arg2 keybase1.RepoID, arg3 keybase1.GitLocalMetadata) error { 2094 m.ctrl.T.Helper() 2095 ret := m.ctrl.Call(m, "PutGitMetadata", arg0, arg1, arg2, arg3) 2096 ret0, _ := ret[0].(error) 2097 return ret0 2098 } 2099 2100 // PutGitMetadata indicates an expected call of PutGitMetadata. 2101 func (mr *MockKBPKIMockRecorder) PutGitMetadata(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2102 mr.mock.ctrl.T.Helper() 2103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutGitMetadata", reflect.TypeOf((*MockKBPKI)(nil).PutGitMetadata), arg0, arg1, arg2, arg3) 2104 } 2105 2106 // Resolve mocks base method. 2107 func (m *MockKBPKI) Resolve(arg0 context.Context, arg1 string, arg2 keybase1.OfflineAvailability) (kbun.NormalizedUsername, keybase1.UserOrTeamID, error) { 2108 m.ctrl.T.Helper() 2109 ret := m.ctrl.Call(m, "Resolve", arg0, arg1, arg2) 2110 ret0, _ := ret[0].(kbun.NormalizedUsername) 2111 ret1, _ := ret[1].(keybase1.UserOrTeamID) 2112 ret2, _ := ret[2].(error) 2113 return ret0, ret1, ret2 2114 } 2115 2116 // Resolve indicates an expected call of Resolve. 2117 func (mr *MockKBPKIMockRecorder) Resolve(arg0, arg1, arg2 interface{}) *gomock.Call { 2118 mr.mock.ctrl.T.Helper() 2119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockKBPKI)(nil).Resolve), arg0, arg1, arg2) 2120 } 2121 2122 // ResolveImplicitTeam mocks base method. 2123 func (m *MockKBPKI) ResolveImplicitTeam(arg0 context.Context, arg1, arg2 string, arg3 tlf.Type, arg4 keybase1.OfflineAvailability) (idutil.ImplicitTeamInfo, error) { 2124 m.ctrl.T.Helper() 2125 ret := m.ctrl.Call(m, "ResolveImplicitTeam", arg0, arg1, arg2, arg3, arg4) 2126 ret0, _ := ret[0].(idutil.ImplicitTeamInfo) 2127 ret1, _ := ret[1].(error) 2128 return ret0, ret1 2129 } 2130 2131 // ResolveImplicitTeam indicates an expected call of ResolveImplicitTeam. 2132 func (mr *MockKBPKIMockRecorder) ResolveImplicitTeam(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 2133 mr.mock.ctrl.T.Helper() 2134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveImplicitTeam", reflect.TypeOf((*MockKBPKI)(nil).ResolveImplicitTeam), arg0, arg1, arg2, arg3, arg4) 2135 } 2136 2137 // ResolveImplicitTeamByID mocks base method. 2138 func (m *MockKBPKI) ResolveImplicitTeamByID(arg0 context.Context, arg1 keybase1.TeamID, arg2 tlf.Type, arg3 keybase1.OfflineAvailability) (idutil.ImplicitTeamInfo, error) { 2139 m.ctrl.T.Helper() 2140 ret := m.ctrl.Call(m, "ResolveImplicitTeamByID", arg0, arg1, arg2, arg3) 2141 ret0, _ := ret[0].(idutil.ImplicitTeamInfo) 2142 ret1, _ := ret[1].(error) 2143 return ret0, ret1 2144 } 2145 2146 // ResolveImplicitTeamByID indicates an expected call of ResolveImplicitTeamByID. 2147 func (mr *MockKBPKIMockRecorder) ResolveImplicitTeamByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2148 mr.mock.ctrl.T.Helper() 2149 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveImplicitTeamByID", reflect.TypeOf((*MockKBPKI)(nil).ResolveImplicitTeamByID), arg0, arg1, arg2, arg3) 2150 } 2151 2152 // ResolveTeamTLFID mocks base method. 2153 func (m *MockKBPKI) ResolveTeamTLFID(arg0 context.Context, arg1 keybase1.TeamID, arg2 keybase1.OfflineAvailability) (tlf.ID, error) { 2154 m.ctrl.T.Helper() 2155 ret := m.ctrl.Call(m, "ResolveTeamTLFID", arg0, arg1, arg2) 2156 ret0, _ := ret[0].(tlf.ID) 2157 ret1, _ := ret[1].(error) 2158 return ret0, ret1 2159 } 2160 2161 // ResolveTeamTLFID indicates an expected call of ResolveTeamTLFID. 2162 func (mr *MockKBPKIMockRecorder) ResolveTeamTLFID(arg0, arg1, arg2 interface{}) *gomock.Call { 2163 mr.mock.ctrl.T.Helper() 2164 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveTeamTLFID", reflect.TypeOf((*MockKBPKI)(nil).ResolveTeamTLFID), arg0, arg1, arg2) 2165 } 2166 2167 // VerifyMerkleRoot mocks base method. 2168 func (m *MockKBPKI) VerifyMerkleRoot(arg0 context.Context, arg1 keybase1.MerkleRootV2, arg2 keybase1.KBFSRoot) error { 2169 m.ctrl.T.Helper() 2170 ret := m.ctrl.Call(m, "VerifyMerkleRoot", arg0, arg1, arg2) 2171 ret0, _ := ret[0].(error) 2172 return ret0 2173 } 2174 2175 // VerifyMerkleRoot indicates an expected call of VerifyMerkleRoot. 2176 func (mr *MockKBPKIMockRecorder) VerifyMerkleRoot(arg0, arg1, arg2 interface{}) *gomock.Call { 2177 mr.mock.ctrl.T.Helper() 2178 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMerkleRoot", reflect.TypeOf((*MockKBPKI)(nil).VerifyMerkleRoot), arg0, arg1, arg2) 2179 } 2180 2181 // MockKeybaseService is a mock of KeybaseService interface. 2182 type MockKeybaseService struct { 2183 ctrl *gomock.Controller 2184 recorder *MockKeybaseServiceMockRecorder 2185 } 2186 2187 // MockKeybaseServiceMockRecorder is the mock recorder for MockKeybaseService. 2188 type MockKeybaseServiceMockRecorder struct { 2189 mock *MockKeybaseService 2190 } 2191 2192 // NewMockKeybaseService creates a new mock instance. 2193 func NewMockKeybaseService(ctrl *gomock.Controller) *MockKeybaseService { 2194 mock := &MockKeybaseService{ctrl: ctrl} 2195 mock.recorder = &MockKeybaseServiceMockRecorder{mock} 2196 return mock 2197 } 2198 2199 // EXPECT returns an object that allows the caller to indicate expected use. 2200 func (m *MockKeybaseService) EXPECT() *MockKeybaseServiceMockRecorder { 2201 return m.recorder 2202 } 2203 2204 // ClearCaches mocks base method. 2205 func (m *MockKeybaseService) ClearCaches(arg0 context.Context) { 2206 m.ctrl.T.Helper() 2207 m.ctrl.Call(m, "ClearCaches", arg0) 2208 } 2209 2210 // ClearCaches indicates an expected call of ClearCaches. 2211 func (mr *MockKeybaseServiceMockRecorder) ClearCaches(arg0 interface{}) *gomock.Call { 2212 mr.mock.ctrl.T.Helper() 2213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearCaches", reflect.TypeOf((*MockKeybaseService)(nil).ClearCaches), arg0) 2214 } 2215 2216 // CreateTeamTLF mocks base method. 2217 func (m *MockKeybaseService) CreateTeamTLF(arg0 context.Context, arg1 keybase1.TeamID, arg2 tlf.ID) error { 2218 m.ctrl.T.Helper() 2219 ret := m.ctrl.Call(m, "CreateTeamTLF", arg0, arg1, arg2) 2220 ret0, _ := ret[0].(error) 2221 return ret0 2222 } 2223 2224 // CreateTeamTLF indicates an expected call of CreateTeamTLF. 2225 func (mr *MockKeybaseServiceMockRecorder) CreateTeamTLF(arg0, arg1, arg2 interface{}) *gomock.Call { 2226 mr.mock.ctrl.T.Helper() 2227 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTeamTLF", reflect.TypeOf((*MockKeybaseService)(nil).CreateTeamTLF), arg0, arg1, arg2) 2228 } 2229 2230 // CurrentSession mocks base method. 2231 func (m *MockKeybaseService) CurrentSession(arg0 context.Context, arg1 int) (idutil.SessionInfo, error) { 2232 m.ctrl.T.Helper() 2233 ret := m.ctrl.Call(m, "CurrentSession", arg0, arg1) 2234 ret0, _ := ret[0].(idutil.SessionInfo) 2235 ret1, _ := ret[1].(error) 2236 return ret0, ret1 2237 } 2238 2239 // CurrentSession indicates an expected call of CurrentSession. 2240 func (mr *MockKeybaseServiceMockRecorder) CurrentSession(arg0, arg1 interface{}) *gomock.Call { 2241 mr.mock.ctrl.T.Helper() 2242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentSession", reflect.TypeOf((*MockKeybaseService)(nil).CurrentSession), arg0, arg1) 2243 } 2244 2245 // DecryptFavorites mocks base method. 2246 func (m *MockKeybaseService) DecryptFavorites(arg0 context.Context, arg1 []byte) ([]byte, error) { 2247 m.ctrl.T.Helper() 2248 ret := m.ctrl.Call(m, "DecryptFavorites", arg0, arg1) 2249 ret0, _ := ret[0].([]byte) 2250 ret1, _ := ret[1].(error) 2251 return ret0, ret1 2252 } 2253 2254 // DecryptFavorites indicates an expected call of DecryptFavorites. 2255 func (mr *MockKeybaseServiceMockRecorder) DecryptFavorites(arg0, arg1 interface{}) *gomock.Call { 2256 mr.mock.ctrl.T.Helper() 2257 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptFavorites", reflect.TypeOf((*MockKeybaseService)(nil).DecryptFavorites), arg0, arg1) 2258 } 2259 2260 // EncryptFavorites mocks base method. 2261 func (m *MockKeybaseService) EncryptFavorites(arg0 context.Context, arg1 []byte) ([]byte, error) { 2262 m.ctrl.T.Helper() 2263 ret := m.ctrl.Call(m, "EncryptFavorites", arg0, arg1) 2264 ret0, _ := ret[0].([]byte) 2265 ret1, _ := ret[1].(error) 2266 return ret0, ret1 2267 } 2268 2269 // EncryptFavorites indicates an expected call of EncryptFavorites. 2270 func (mr *MockKeybaseServiceMockRecorder) EncryptFavorites(arg0, arg1 interface{}) *gomock.Call { 2271 mr.mock.ctrl.T.Helper() 2272 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptFavorites", reflect.TypeOf((*MockKeybaseService)(nil).EncryptFavorites), arg0, arg1) 2273 } 2274 2275 // EstablishMountDir mocks base method. 2276 func (m *MockKeybaseService) EstablishMountDir(arg0 context.Context) (string, error) { 2277 m.ctrl.T.Helper() 2278 ret := m.ctrl.Call(m, "EstablishMountDir", arg0) 2279 ret0, _ := ret[0].(string) 2280 ret1, _ := ret[1].(error) 2281 return ret0, ret1 2282 } 2283 2284 // EstablishMountDir indicates an expected call of EstablishMountDir. 2285 func (mr *MockKeybaseServiceMockRecorder) EstablishMountDir(arg0 interface{}) *gomock.Call { 2286 mr.mock.ctrl.T.Helper() 2287 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstablishMountDir", reflect.TypeOf((*MockKeybaseService)(nil).EstablishMountDir), arg0) 2288 } 2289 2290 // FavoriteAdd mocks base method. 2291 func (m *MockKeybaseService) FavoriteAdd(arg0 context.Context, arg1 keybase1.FolderHandle) error { 2292 m.ctrl.T.Helper() 2293 ret := m.ctrl.Call(m, "FavoriteAdd", arg0, arg1) 2294 ret0, _ := ret[0].(error) 2295 return ret0 2296 } 2297 2298 // FavoriteAdd indicates an expected call of FavoriteAdd. 2299 func (mr *MockKeybaseServiceMockRecorder) FavoriteAdd(arg0, arg1 interface{}) *gomock.Call { 2300 mr.mock.ctrl.T.Helper() 2301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteAdd", reflect.TypeOf((*MockKeybaseService)(nil).FavoriteAdd), arg0, arg1) 2302 } 2303 2304 // FavoriteDelete mocks base method. 2305 func (m *MockKeybaseService) FavoriteDelete(arg0 context.Context, arg1 keybase1.FolderHandle) error { 2306 m.ctrl.T.Helper() 2307 ret := m.ctrl.Call(m, "FavoriteDelete", arg0, arg1) 2308 ret0, _ := ret[0].(error) 2309 return ret0 2310 } 2311 2312 // FavoriteDelete indicates an expected call of FavoriteDelete. 2313 func (mr *MockKeybaseServiceMockRecorder) FavoriteDelete(arg0, arg1 interface{}) *gomock.Call { 2314 mr.mock.ctrl.T.Helper() 2315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteDelete", reflect.TypeOf((*MockKeybaseService)(nil).FavoriteDelete), arg0, arg1) 2316 } 2317 2318 // FavoriteList mocks base method. 2319 func (m *MockKeybaseService) FavoriteList(arg0 context.Context, arg1 int) (keybase1.FavoritesResult, error) { 2320 m.ctrl.T.Helper() 2321 ret := m.ctrl.Call(m, "FavoriteList", arg0, arg1) 2322 ret0, _ := ret[0].(keybase1.FavoritesResult) 2323 ret1, _ := ret[1].(error) 2324 return ret0, ret1 2325 } 2326 2327 // FavoriteList indicates an expected call of FavoriteList. 2328 func (mr *MockKeybaseServiceMockRecorder) FavoriteList(arg0, arg1 interface{}) *gomock.Call { 2329 mr.mock.ctrl.T.Helper() 2330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoriteList", reflect.TypeOf((*MockKeybaseService)(nil).FavoriteList), arg0, arg1) 2331 } 2332 2333 // FlushUserFromLocalCache mocks base method. 2334 func (m *MockKeybaseService) FlushUserFromLocalCache(arg0 context.Context, arg1 keybase1.UID) { 2335 m.ctrl.T.Helper() 2336 m.ctrl.Call(m, "FlushUserFromLocalCache", arg0, arg1) 2337 } 2338 2339 // FlushUserFromLocalCache indicates an expected call of FlushUserFromLocalCache. 2340 func (mr *MockKeybaseServiceMockRecorder) FlushUserFromLocalCache(arg0, arg1 interface{}) *gomock.Call { 2341 mr.mock.ctrl.T.Helper() 2342 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushUserFromLocalCache", reflect.TypeOf((*MockKeybaseService)(nil).FlushUserFromLocalCache), arg0, arg1) 2343 } 2344 2345 // GetCurrentMerkleRoot mocks base method. 2346 func (m *MockKeybaseService) GetCurrentMerkleRoot(arg0 context.Context) (keybase1.MerkleRootV2, time.Time, error) { 2347 m.ctrl.T.Helper() 2348 ret := m.ctrl.Call(m, "GetCurrentMerkleRoot", arg0) 2349 ret0, _ := ret[0].(keybase1.MerkleRootV2) 2350 ret1, _ := ret[1].(time.Time) 2351 ret2, _ := ret[2].(error) 2352 return ret0, ret1, ret2 2353 } 2354 2355 // GetCurrentMerkleRoot indicates an expected call of GetCurrentMerkleRoot. 2356 func (mr *MockKeybaseServiceMockRecorder) GetCurrentMerkleRoot(arg0 interface{}) *gomock.Call { 2357 mr.mock.ctrl.T.Helper() 2358 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentMerkleRoot", reflect.TypeOf((*MockKeybaseService)(nil).GetCurrentMerkleRoot), arg0) 2359 } 2360 2361 // GetKVStoreClient mocks base method. 2362 func (m *MockKeybaseService) GetKVStoreClient() keybase1.KvstoreInterface { 2363 m.ctrl.T.Helper() 2364 ret := m.ctrl.Call(m, "GetKVStoreClient") 2365 ret0, _ := ret[0].(keybase1.KvstoreInterface) 2366 return ret0 2367 } 2368 2369 // GetKVStoreClient indicates an expected call of GetKVStoreClient. 2370 func (mr *MockKeybaseServiceMockRecorder) GetKVStoreClient() *gomock.Call { 2371 mr.mock.ctrl.T.Helper() 2372 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKVStoreClient", reflect.TypeOf((*MockKeybaseService)(nil).GetKVStoreClient)) 2373 } 2374 2375 // GetTeamSettings mocks base method. 2376 func (m *MockKeybaseService) GetTeamSettings(arg0 context.Context, arg1 keybase1.TeamID, arg2 keybase1.OfflineAvailability) (keybase1.KBFSTeamSettings, error) { 2377 m.ctrl.T.Helper() 2378 ret := m.ctrl.Call(m, "GetTeamSettings", arg0, arg1, arg2) 2379 ret0, _ := ret[0].(keybase1.KBFSTeamSettings) 2380 ret1, _ := ret[1].(error) 2381 return ret0, ret1 2382 } 2383 2384 // GetTeamSettings indicates an expected call of GetTeamSettings. 2385 func (mr *MockKeybaseServiceMockRecorder) GetTeamSettings(arg0, arg1, arg2 interface{}) *gomock.Call { 2386 mr.mock.ctrl.T.Helper() 2387 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTeamSettings", reflect.TypeOf((*MockKeybaseService)(nil).GetTeamSettings), arg0, arg1, arg2) 2388 } 2389 2390 // Identify mocks base method. 2391 func (m *MockKeybaseService) Identify(arg0 context.Context, arg1, arg2 string, arg3 keybase1.OfflineAvailability) (kbun.NormalizedUsername, keybase1.UserOrTeamID, error) { 2392 m.ctrl.T.Helper() 2393 ret := m.ctrl.Call(m, "Identify", arg0, arg1, arg2, arg3) 2394 ret0, _ := ret[0].(kbun.NormalizedUsername) 2395 ret1, _ := ret[1].(keybase1.UserOrTeamID) 2396 ret2, _ := ret[2].(error) 2397 return ret0, ret1, ret2 2398 } 2399 2400 // Identify indicates an expected call of Identify. 2401 func (mr *MockKeybaseServiceMockRecorder) Identify(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2402 mr.mock.ctrl.T.Helper() 2403 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identify", reflect.TypeOf((*MockKeybaseService)(nil).Identify), arg0, arg1, arg2, arg3) 2404 } 2405 2406 // LoadTeamPlusKeys mocks base method. 2407 func (m *MockKeybaseService) LoadTeamPlusKeys(arg0 context.Context, arg1 keybase1.TeamID, arg2 tlf.Type, arg3 kbfsmd.KeyGen, arg4 keybase1.UserVersion, arg5 kbfscrypto.VerifyingKey, arg6 keybase1.TeamRole, arg7 keybase1.OfflineAvailability) (idutil.TeamInfo, error) { 2408 m.ctrl.T.Helper() 2409 ret := m.ctrl.Call(m, "LoadTeamPlusKeys", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 2410 ret0, _ := ret[0].(idutil.TeamInfo) 2411 ret1, _ := ret[1].(error) 2412 return ret0, ret1 2413 } 2414 2415 // LoadTeamPlusKeys indicates an expected call of LoadTeamPlusKeys. 2416 func (mr *MockKeybaseServiceMockRecorder) LoadTeamPlusKeys(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call { 2417 mr.mock.ctrl.T.Helper() 2418 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTeamPlusKeys", reflect.TypeOf((*MockKeybaseService)(nil).LoadTeamPlusKeys), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 2419 } 2420 2421 // LoadUserPlusKeys mocks base method. 2422 func (m *MockKeybaseService) LoadUserPlusKeys(arg0 context.Context, arg1 keybase1.UID, arg2 keybase1.KID, arg3 keybase1.OfflineAvailability) (idutil.UserInfo, error) { 2423 m.ctrl.T.Helper() 2424 ret := m.ctrl.Call(m, "LoadUserPlusKeys", arg0, arg1, arg2, arg3) 2425 ret0, _ := ret[0].(idutil.UserInfo) 2426 ret1, _ := ret[1].(error) 2427 return ret0, ret1 2428 } 2429 2430 // LoadUserPlusKeys indicates an expected call of LoadUserPlusKeys. 2431 func (mr *MockKeybaseServiceMockRecorder) LoadUserPlusKeys(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2432 mr.mock.ctrl.T.Helper() 2433 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserPlusKeys", reflect.TypeOf((*MockKeybaseService)(nil).LoadUserPlusKeys), arg0, arg1, arg2, arg3) 2434 } 2435 2436 // NormalizeSocialAssertion mocks base method. 2437 func (m *MockKeybaseService) NormalizeSocialAssertion(arg0 context.Context, arg1 string) (keybase1.SocialAssertion, error) { 2438 m.ctrl.T.Helper() 2439 ret := m.ctrl.Call(m, "NormalizeSocialAssertion", arg0, arg1) 2440 ret0, _ := ret[0].(keybase1.SocialAssertion) 2441 ret1, _ := ret[1].(error) 2442 return ret0, ret1 2443 } 2444 2445 // NormalizeSocialAssertion indicates an expected call of NormalizeSocialAssertion. 2446 func (mr *MockKeybaseServiceMockRecorder) NormalizeSocialAssertion(arg0, arg1 interface{}) *gomock.Call { 2447 mr.mock.ctrl.T.Helper() 2448 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NormalizeSocialAssertion", reflect.TypeOf((*MockKeybaseService)(nil).NormalizeSocialAssertion), arg0, arg1) 2449 } 2450 2451 // Notify mocks base method. 2452 func (m *MockKeybaseService) Notify(arg0 context.Context, arg1 *keybase1.FSNotification) error { 2453 m.ctrl.T.Helper() 2454 ret := m.ctrl.Call(m, "Notify", arg0, arg1) 2455 ret0, _ := ret[0].(error) 2456 return ret0 2457 } 2458 2459 // Notify indicates an expected call of Notify. 2460 func (mr *MockKeybaseServiceMockRecorder) Notify(arg0, arg1 interface{}) *gomock.Call { 2461 mr.mock.ctrl.T.Helper() 2462 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockKeybaseService)(nil).Notify), arg0, arg1) 2463 } 2464 2465 // NotifyFavoritesChanged mocks base method. 2466 func (m *MockKeybaseService) NotifyFavoritesChanged(arg0 context.Context) error { 2467 m.ctrl.T.Helper() 2468 ret := m.ctrl.Call(m, "NotifyFavoritesChanged", arg0) 2469 ret0, _ := ret[0].(error) 2470 return ret0 2471 } 2472 2473 // NotifyFavoritesChanged indicates an expected call of NotifyFavoritesChanged. 2474 func (mr *MockKeybaseServiceMockRecorder) NotifyFavoritesChanged(arg0 interface{}) *gomock.Call { 2475 mr.mock.ctrl.T.Helper() 2476 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyFavoritesChanged", reflect.TypeOf((*MockKeybaseService)(nil).NotifyFavoritesChanged), arg0) 2477 } 2478 2479 // NotifyOnlineStatusChanged mocks base method. 2480 func (m *MockKeybaseService) NotifyOnlineStatusChanged(arg0 context.Context, arg1 bool) error { 2481 m.ctrl.T.Helper() 2482 ret := m.ctrl.Call(m, "NotifyOnlineStatusChanged", arg0, arg1) 2483 ret0, _ := ret[0].(error) 2484 return ret0 2485 } 2486 2487 // NotifyOnlineStatusChanged indicates an expected call of NotifyOnlineStatusChanged. 2488 func (mr *MockKeybaseServiceMockRecorder) NotifyOnlineStatusChanged(arg0, arg1 interface{}) *gomock.Call { 2489 mr.mock.ctrl.T.Helper() 2490 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyOnlineStatusChanged", reflect.TypeOf((*MockKeybaseService)(nil).NotifyOnlineStatusChanged), arg0, arg1) 2491 } 2492 2493 // NotifyOverallSyncStatus mocks base method. 2494 func (m *MockKeybaseService) NotifyOverallSyncStatus(arg0 context.Context, arg1 keybase1.FolderSyncStatus) error { 2495 m.ctrl.T.Helper() 2496 ret := m.ctrl.Call(m, "NotifyOverallSyncStatus", arg0, arg1) 2497 ret0, _ := ret[0].(error) 2498 return ret0 2499 } 2500 2501 // NotifyOverallSyncStatus indicates an expected call of NotifyOverallSyncStatus. 2502 func (mr *MockKeybaseServiceMockRecorder) NotifyOverallSyncStatus(arg0, arg1 interface{}) *gomock.Call { 2503 mr.mock.ctrl.T.Helper() 2504 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyOverallSyncStatus", reflect.TypeOf((*MockKeybaseService)(nil).NotifyOverallSyncStatus), arg0, arg1) 2505 } 2506 2507 // NotifyPathUpdated mocks base method. 2508 func (m *MockKeybaseService) NotifyPathUpdated(arg0 context.Context, arg1 string) error { 2509 m.ctrl.T.Helper() 2510 ret := m.ctrl.Call(m, "NotifyPathUpdated", arg0, arg1) 2511 ret0, _ := ret[0].(error) 2512 return ret0 2513 } 2514 2515 // NotifyPathUpdated indicates an expected call of NotifyPathUpdated. 2516 func (mr *MockKeybaseServiceMockRecorder) NotifyPathUpdated(arg0, arg1 interface{}) *gomock.Call { 2517 mr.mock.ctrl.T.Helper() 2518 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyPathUpdated", reflect.TypeOf((*MockKeybaseService)(nil).NotifyPathUpdated), arg0, arg1) 2519 } 2520 2521 // NotifySyncStatus mocks base method. 2522 func (m *MockKeybaseService) NotifySyncStatus(arg0 context.Context, arg1 *keybase1.FSPathSyncStatus) error { 2523 m.ctrl.T.Helper() 2524 ret := m.ctrl.Call(m, "NotifySyncStatus", arg0, arg1) 2525 ret0, _ := ret[0].(error) 2526 return ret0 2527 } 2528 2529 // NotifySyncStatus indicates an expected call of NotifySyncStatus. 2530 func (mr *MockKeybaseServiceMockRecorder) NotifySyncStatus(arg0, arg1 interface{}) *gomock.Call { 2531 mr.mock.ctrl.T.Helper() 2532 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifySyncStatus", reflect.TypeOf((*MockKeybaseService)(nil).NotifySyncStatus), arg0, arg1) 2533 } 2534 2535 // OnNonPathChange mocks base method. 2536 func (m *MockKeybaseService) OnNonPathChange(arg0 SubscriptionManagerClientID, arg1 []SubscriptionID, arg2 keybase1.SubscriptionTopic) { 2537 m.ctrl.T.Helper() 2538 m.ctrl.Call(m, "OnNonPathChange", arg0, arg1, arg2) 2539 } 2540 2541 // OnNonPathChange indicates an expected call of OnNonPathChange. 2542 func (mr *MockKeybaseServiceMockRecorder) OnNonPathChange(arg0, arg1, arg2 interface{}) *gomock.Call { 2543 mr.mock.ctrl.T.Helper() 2544 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNonPathChange", reflect.TypeOf((*MockKeybaseService)(nil).OnNonPathChange), arg0, arg1, arg2) 2545 } 2546 2547 // OnPathChange mocks base method. 2548 func (m *MockKeybaseService) OnPathChange(arg0 SubscriptionManagerClientID, arg1 []SubscriptionID, arg2 string, arg3 []keybase1.PathSubscriptionTopic) { 2549 m.ctrl.T.Helper() 2550 m.ctrl.Call(m, "OnPathChange", arg0, arg1, arg2, arg3) 2551 } 2552 2553 // OnPathChange indicates an expected call of OnPathChange. 2554 func (mr *MockKeybaseServiceMockRecorder) OnPathChange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2555 mr.mock.ctrl.T.Helper() 2556 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPathChange", reflect.TypeOf((*MockKeybaseService)(nil).OnPathChange), arg0, arg1, arg2, arg3) 2557 } 2558 2559 // PutGitMetadata mocks base method. 2560 func (m *MockKeybaseService) PutGitMetadata(arg0 context.Context, arg1 keybase1.FolderHandle, arg2 keybase1.RepoID, arg3 keybase1.GitLocalMetadata) error { 2561 m.ctrl.T.Helper() 2562 ret := m.ctrl.Call(m, "PutGitMetadata", arg0, arg1, arg2, arg3) 2563 ret0, _ := ret[0].(error) 2564 return ret0 2565 } 2566 2567 // PutGitMetadata indicates an expected call of PutGitMetadata. 2568 func (mr *MockKeybaseServiceMockRecorder) PutGitMetadata(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 2569 mr.mock.ctrl.T.Helper() 2570 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutGitMetadata", reflect.TypeOf((*MockKeybaseService)(nil).PutGitMetadata), arg0, arg1, arg2, arg3) 2571 } 2572 2573 // Resolve mocks base method. 2574 func (m *MockKeybaseService) Resolve(arg0 context.Context, arg1 string, arg2 keybase1.OfflineAvailability) (kbun.NormalizedUsername, keybase1.UserOrTeamID, error) { 2575 m.ctrl.T.Helper() 2576 ret := m.ctrl.Call(m, "Resolve", arg0, arg1, arg2) 2577 ret0, _ := ret[0].(kbun.NormalizedUsername) 2578 ret1, _ := ret[1].(keybase1.UserOrTeamID) 2579 ret2, _ := ret[2].(error) 2580 return ret0, ret1, ret2 2581 } 2582 2583 // Resolve indicates an expected call of Resolve. 2584 func (mr *MockKeybaseServiceMockRecorder) Resolve(arg0, arg1, arg2 interface{}) *gomock.Call { 2585 mr.mock.ctrl.T.Helper() 2586 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockKeybaseService)(nil).Resolve), arg0, arg1, arg2) 2587 } 2588 2589 // ResolveIdentifyImplicitTeam mocks base method. 2590 func (m *MockKeybaseService) ResolveIdentifyImplicitTeam(arg0 context.Context, arg1, arg2 string, arg3 tlf.Type, arg4 bool, arg5 string, arg6 keybase1.OfflineAvailability) (idutil.ImplicitTeamInfo, error) { 2591 m.ctrl.T.Helper() 2592 ret := m.ctrl.Call(m, "ResolveIdentifyImplicitTeam", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 2593 ret0, _ := ret[0].(idutil.ImplicitTeamInfo) 2594 ret1, _ := ret[1].(error) 2595 return ret0, ret1 2596 } 2597 2598 // ResolveIdentifyImplicitTeam indicates an expected call of ResolveIdentifyImplicitTeam. 2599 func (mr *MockKeybaseServiceMockRecorder) ResolveIdentifyImplicitTeam(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 2600 mr.mock.ctrl.T.Helper() 2601 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveIdentifyImplicitTeam", reflect.TypeOf((*MockKeybaseService)(nil).ResolveIdentifyImplicitTeam), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 2602 } 2603 2604 // ResolveImplicitTeamByID mocks base method. 2605 func (m *MockKeybaseService) ResolveImplicitTeamByID(arg0 context.Context, arg1 keybase1.TeamID) (string, error) { 2606 m.ctrl.T.Helper() 2607 ret := m.ctrl.Call(m, "ResolveImplicitTeamByID", arg0, arg1) 2608 ret0, _ := ret[0].(string) 2609 ret1, _ := ret[1].(error) 2610 return ret0, ret1 2611 } 2612 2613 // ResolveImplicitTeamByID indicates an expected call of ResolveImplicitTeamByID. 2614 func (mr *MockKeybaseServiceMockRecorder) ResolveImplicitTeamByID(arg0, arg1 interface{}) *gomock.Call { 2615 mr.mock.ctrl.T.Helper() 2616 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveImplicitTeamByID", reflect.TypeOf((*MockKeybaseService)(nil).ResolveImplicitTeamByID), arg0, arg1) 2617 } 2618 2619 // Shutdown mocks base method. 2620 func (m *MockKeybaseService) Shutdown() { 2621 m.ctrl.T.Helper() 2622 m.ctrl.Call(m, "Shutdown") 2623 } 2624 2625 // Shutdown indicates an expected call of Shutdown. 2626 func (mr *MockKeybaseServiceMockRecorder) Shutdown() *gomock.Call { 2627 mr.mock.ctrl.T.Helper() 2628 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockKeybaseService)(nil).Shutdown)) 2629 } 2630 2631 // VerifyMerkleRoot mocks base method. 2632 func (m *MockKeybaseService) VerifyMerkleRoot(arg0 context.Context, arg1 keybase1.MerkleRootV2, arg2 keybase1.KBFSRoot) error { 2633 m.ctrl.T.Helper() 2634 ret := m.ctrl.Call(m, "VerifyMerkleRoot", arg0, arg1, arg2) 2635 ret0, _ := ret[0].(error) 2636 return ret0 2637 } 2638 2639 // VerifyMerkleRoot indicates an expected call of VerifyMerkleRoot. 2640 func (mr *MockKeybaseServiceMockRecorder) VerifyMerkleRoot(arg0, arg1, arg2 interface{}) *gomock.Call { 2641 mr.mock.ctrl.T.Helper() 2642 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMerkleRoot", reflect.TypeOf((*MockKeybaseService)(nil).VerifyMerkleRoot), arg0, arg1, arg2) 2643 } 2644 2645 // MockKeyCache is a mock of KeyCache interface. 2646 type MockKeyCache struct { 2647 ctrl *gomock.Controller 2648 recorder *MockKeyCacheMockRecorder 2649 } 2650 2651 // MockKeyCacheMockRecorder is the mock recorder for MockKeyCache. 2652 type MockKeyCacheMockRecorder struct { 2653 mock *MockKeyCache 2654 } 2655 2656 // NewMockKeyCache creates a new mock instance. 2657 func NewMockKeyCache(ctrl *gomock.Controller) *MockKeyCache { 2658 mock := &MockKeyCache{ctrl: ctrl} 2659 mock.recorder = &MockKeyCacheMockRecorder{mock} 2660 return mock 2661 } 2662 2663 // EXPECT returns an object that allows the caller to indicate expected use. 2664 func (m *MockKeyCache) EXPECT() *MockKeyCacheMockRecorder { 2665 return m.recorder 2666 } 2667 2668 // GetTLFCryptKey mocks base method. 2669 func (m *MockKeyCache) GetTLFCryptKey(arg0 tlf.ID, arg1 kbfsmd.KeyGen) (kbfscrypto.TLFCryptKey, error) { 2670 m.ctrl.T.Helper() 2671 ret := m.ctrl.Call(m, "GetTLFCryptKey", arg0, arg1) 2672 ret0, _ := ret[0].(kbfscrypto.TLFCryptKey) 2673 ret1, _ := ret[1].(error) 2674 return ret0, ret1 2675 } 2676 2677 // GetTLFCryptKey indicates an expected call of GetTLFCryptKey. 2678 func (mr *MockKeyCacheMockRecorder) GetTLFCryptKey(arg0, arg1 interface{}) *gomock.Call { 2679 mr.mock.ctrl.T.Helper() 2680 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKey", reflect.TypeOf((*MockKeyCache)(nil).GetTLFCryptKey), arg0, arg1) 2681 } 2682 2683 // PutTLFCryptKey mocks base method. 2684 func (m *MockKeyCache) PutTLFCryptKey(arg0 tlf.ID, arg1 kbfsmd.KeyGen, arg2 kbfscrypto.TLFCryptKey) error { 2685 m.ctrl.T.Helper() 2686 ret := m.ctrl.Call(m, "PutTLFCryptKey", arg0, arg1, arg2) 2687 ret0, _ := ret[0].(error) 2688 return ret0 2689 } 2690 2691 // PutTLFCryptKey indicates an expected call of PutTLFCryptKey. 2692 func (mr *MockKeyCacheMockRecorder) PutTLFCryptKey(arg0, arg1, arg2 interface{}) *gomock.Call { 2693 mr.mock.ctrl.T.Helper() 2694 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutTLFCryptKey", reflect.TypeOf((*MockKeyCache)(nil).PutTLFCryptKey), arg0, arg1, arg2) 2695 } 2696 2697 // MockKeyManager is a mock of KeyManager interface. 2698 type MockKeyManager struct { 2699 ctrl *gomock.Controller 2700 recorder *MockKeyManagerMockRecorder 2701 } 2702 2703 // MockKeyManagerMockRecorder is the mock recorder for MockKeyManager. 2704 type MockKeyManagerMockRecorder struct { 2705 mock *MockKeyManager 2706 } 2707 2708 // NewMockKeyManager creates a new mock instance. 2709 func NewMockKeyManager(ctrl *gomock.Controller) *MockKeyManager { 2710 mock := &MockKeyManager{ctrl: ctrl} 2711 mock.recorder = &MockKeyManagerMockRecorder{mock} 2712 return mock 2713 } 2714 2715 // EXPECT returns an object that allows the caller to indicate expected use. 2716 func (m *MockKeyManager) EXPECT() *MockKeyManagerMockRecorder { 2717 return m.recorder 2718 } 2719 2720 // GetFirstTLFCryptKey mocks base method. 2721 func (m *MockKeyManager) GetFirstTLFCryptKey(arg0 context.Context, arg1 libkey.KeyMetadata) (kbfscrypto.TLFCryptKey, error) { 2722 m.ctrl.T.Helper() 2723 ret := m.ctrl.Call(m, "GetFirstTLFCryptKey", arg0, arg1) 2724 ret0, _ := ret[0].(kbfscrypto.TLFCryptKey) 2725 ret1, _ := ret[1].(error) 2726 return ret0, ret1 2727 } 2728 2729 // GetFirstTLFCryptKey indicates an expected call of GetFirstTLFCryptKey. 2730 func (mr *MockKeyManagerMockRecorder) GetFirstTLFCryptKey(arg0, arg1 interface{}) *gomock.Call { 2731 mr.mock.ctrl.T.Helper() 2732 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirstTLFCryptKey", reflect.TypeOf((*MockKeyManager)(nil).GetFirstTLFCryptKey), arg0, arg1) 2733 } 2734 2735 // GetTLFCryptKeyForBlockDecryption mocks base method. 2736 func (m *MockKeyManager) GetTLFCryptKeyForBlockDecryption(arg0 context.Context, arg1 libkey.KeyMetadata, arg2 data.BlockPointer) (kbfscrypto.TLFCryptKey, error) { 2737 m.ctrl.T.Helper() 2738 ret := m.ctrl.Call(m, "GetTLFCryptKeyForBlockDecryption", arg0, arg1, arg2) 2739 ret0, _ := ret[0].(kbfscrypto.TLFCryptKey) 2740 ret1, _ := ret[1].(error) 2741 return ret0, ret1 2742 } 2743 2744 // GetTLFCryptKeyForBlockDecryption indicates an expected call of GetTLFCryptKeyForBlockDecryption. 2745 func (mr *MockKeyManagerMockRecorder) GetTLFCryptKeyForBlockDecryption(arg0, arg1, arg2 interface{}) *gomock.Call { 2746 mr.mock.ctrl.T.Helper() 2747 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyForBlockDecryption", reflect.TypeOf((*MockKeyManager)(nil).GetTLFCryptKeyForBlockDecryption), arg0, arg1, arg2) 2748 } 2749 2750 // GetTLFCryptKeyForEncryption mocks base method. 2751 func (m *MockKeyManager) GetTLFCryptKeyForEncryption(arg0 context.Context, arg1 libkey.KeyMetadata) (kbfscrypto.TLFCryptKey, error) { 2752 m.ctrl.T.Helper() 2753 ret := m.ctrl.Call(m, "GetTLFCryptKeyForEncryption", arg0, arg1) 2754 ret0, _ := ret[0].(kbfscrypto.TLFCryptKey) 2755 ret1, _ := ret[1].(error) 2756 return ret0, ret1 2757 } 2758 2759 // GetTLFCryptKeyForEncryption indicates an expected call of GetTLFCryptKeyForEncryption. 2760 func (mr *MockKeyManagerMockRecorder) GetTLFCryptKeyForEncryption(arg0, arg1 interface{}) *gomock.Call { 2761 mr.mock.ctrl.T.Helper() 2762 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyForEncryption", reflect.TypeOf((*MockKeyManager)(nil).GetTLFCryptKeyForEncryption), arg0, arg1) 2763 } 2764 2765 // GetTLFCryptKeyForMDDecryption mocks base method. 2766 func (m *MockKeyManager) GetTLFCryptKeyForMDDecryption(arg0 context.Context, arg1, arg2 libkey.KeyMetadata) (kbfscrypto.TLFCryptKey, error) { 2767 m.ctrl.T.Helper() 2768 ret := m.ctrl.Call(m, "GetTLFCryptKeyForMDDecryption", arg0, arg1, arg2) 2769 ret0, _ := ret[0].(kbfscrypto.TLFCryptKey) 2770 ret1, _ := ret[1].(error) 2771 return ret0, ret1 2772 } 2773 2774 // GetTLFCryptKeyForMDDecryption indicates an expected call of GetTLFCryptKeyForMDDecryption. 2775 func (mr *MockKeyManagerMockRecorder) GetTLFCryptKeyForMDDecryption(arg0, arg1, arg2 interface{}) *gomock.Call { 2776 mr.mock.ctrl.T.Helper() 2777 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyForMDDecryption", reflect.TypeOf((*MockKeyManager)(nil).GetTLFCryptKeyForMDDecryption), arg0, arg1, arg2) 2778 } 2779 2780 // GetTLFCryptKeyOfAllGenerations mocks base method. 2781 func (m *MockKeyManager) GetTLFCryptKeyOfAllGenerations(arg0 context.Context, arg1 libkey.KeyMetadata) ([]kbfscrypto.TLFCryptKey, error) { 2782 m.ctrl.T.Helper() 2783 ret := m.ctrl.Call(m, "GetTLFCryptKeyOfAllGenerations", arg0, arg1) 2784 ret0, _ := ret[0].([]kbfscrypto.TLFCryptKey) 2785 ret1, _ := ret[1].(error) 2786 return ret0, ret1 2787 } 2788 2789 // GetTLFCryptKeyOfAllGenerations indicates an expected call of GetTLFCryptKeyOfAllGenerations. 2790 func (mr *MockKeyManagerMockRecorder) GetTLFCryptKeyOfAllGenerations(arg0, arg1 interface{}) *gomock.Call { 2791 mr.mock.ctrl.T.Helper() 2792 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTLFCryptKeyOfAllGenerations", reflect.TypeOf((*MockKeyManager)(nil).GetTLFCryptKeyOfAllGenerations), arg0, arg1) 2793 } 2794 2795 // Rekey mocks base method. 2796 func (m *MockKeyManager) Rekey(arg0 context.Context, arg1 *RootMetadata, arg2 bool) (bool, *kbfscrypto.TLFCryptKey, error) { 2797 m.ctrl.T.Helper() 2798 ret := m.ctrl.Call(m, "Rekey", arg0, arg1, arg2) 2799 ret0, _ := ret[0].(bool) 2800 ret1, _ := ret[1].(*kbfscrypto.TLFCryptKey) 2801 ret2, _ := ret[2].(error) 2802 return ret0, ret1, ret2 2803 } 2804 2805 // Rekey indicates an expected call of Rekey. 2806 func (mr *MockKeyManagerMockRecorder) Rekey(arg0, arg1, arg2 interface{}) *gomock.Call { 2807 mr.mock.ctrl.T.Helper() 2808 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rekey", reflect.TypeOf((*MockKeyManager)(nil).Rekey), arg0, arg1, arg2) 2809 } 2810 2811 // MockMDCache is a mock of MDCache interface. 2812 type MockMDCache struct { 2813 ctrl *gomock.Controller 2814 recorder *MockMDCacheMockRecorder 2815 } 2816 2817 // MockMDCacheMockRecorder is the mock recorder for MockMDCache. 2818 type MockMDCacheMockRecorder struct { 2819 mock *MockMDCache 2820 } 2821 2822 // NewMockMDCache creates a new mock instance. 2823 func NewMockMDCache(ctrl *gomock.Controller) *MockMDCache { 2824 mock := &MockMDCache{ctrl: ctrl} 2825 mock.recorder = &MockMDCacheMockRecorder{mock} 2826 return mock 2827 } 2828 2829 // EXPECT returns an object that allows the caller to indicate expected use. 2830 func (m *MockMDCache) EXPECT() *MockMDCacheMockRecorder { 2831 return m.recorder 2832 } 2833 2834 // ChangeHandleForID mocks base method. 2835 func (m *MockMDCache) ChangeHandleForID(arg0, arg1 *tlfhandle.Handle) { 2836 m.ctrl.T.Helper() 2837 m.ctrl.Call(m, "ChangeHandleForID", arg0, arg1) 2838 } 2839 2840 // ChangeHandleForID indicates an expected call of ChangeHandleForID. 2841 func (mr *MockMDCacheMockRecorder) ChangeHandleForID(arg0, arg1 interface{}) *gomock.Call { 2842 mr.mock.ctrl.T.Helper() 2843 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeHandleForID", reflect.TypeOf((*MockMDCache)(nil).ChangeHandleForID), arg0, arg1) 2844 } 2845 2846 // Delete mocks base method. 2847 func (m *MockMDCache) Delete(arg0 tlf.ID, arg1 kbfsmd.Revision, arg2 kbfsmd.BranchID) { 2848 m.ctrl.T.Helper() 2849 m.ctrl.Call(m, "Delete", arg0, arg1, arg2) 2850 } 2851 2852 // Delete indicates an expected call of Delete. 2853 func (mr *MockMDCacheMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { 2854 mr.mock.ctrl.T.Helper() 2855 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMDCache)(nil).Delete), arg0, arg1, arg2) 2856 } 2857 2858 // Get mocks base method. 2859 func (m *MockMDCache) Get(arg0 tlf.ID, arg1 kbfsmd.Revision, arg2 kbfsmd.BranchID) (ImmutableRootMetadata, error) { 2860 m.ctrl.T.Helper() 2861 ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) 2862 ret0, _ := ret[0].(ImmutableRootMetadata) 2863 ret1, _ := ret[1].(error) 2864 return ret0, ret1 2865 } 2866 2867 // Get indicates an expected call of Get. 2868 func (mr *MockMDCacheMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { 2869 mr.mock.ctrl.T.Helper() 2870 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMDCache)(nil).Get), arg0, arg1, arg2) 2871 } 2872 2873 // GetIDForHandle mocks base method. 2874 func (m *MockMDCache) GetIDForHandle(arg0 *tlfhandle.Handle) (tlf.ID, error) { 2875 m.ctrl.T.Helper() 2876 ret := m.ctrl.Call(m, "GetIDForHandle", arg0) 2877 ret0, _ := ret[0].(tlf.ID) 2878 ret1, _ := ret[1].(error) 2879 return ret0, ret1 2880 } 2881 2882 // GetIDForHandle indicates an expected call of GetIDForHandle. 2883 func (mr *MockMDCacheMockRecorder) GetIDForHandle(arg0 interface{}) *gomock.Call { 2884 mr.mock.ctrl.T.Helper() 2885 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIDForHandle", reflect.TypeOf((*MockMDCache)(nil).GetIDForHandle), arg0) 2886 } 2887 2888 // GetNextMD mocks base method. 2889 func (m *MockMDCache) GetNextMD(arg0 tlf.ID, arg1 keybase1.Seqno) (*kbfsmd.MerkleRoot, [][]byte, keybase1.Seqno, error) { 2890 m.ctrl.T.Helper() 2891 ret := m.ctrl.Call(m, "GetNextMD", arg0, arg1) 2892 ret0, _ := ret[0].(*kbfsmd.MerkleRoot) 2893 ret1, _ := ret[1].([][]byte) 2894 ret2, _ := ret[2].(keybase1.Seqno) 2895 ret3, _ := ret[3].(error) 2896 return ret0, ret1, ret2, ret3 2897 } 2898 2899 // GetNextMD indicates an expected call of GetNextMD. 2900 func (mr *MockMDCacheMockRecorder) GetNextMD(arg0, arg1 interface{}) *gomock.Call { 2901 mr.mock.ctrl.T.Helper() 2902 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextMD", reflect.TypeOf((*MockMDCache)(nil).GetNextMD), arg0, arg1) 2903 } 2904 2905 // MarkPutToServer mocks base method. 2906 func (m *MockMDCache) MarkPutToServer(arg0 tlf.ID, arg1 kbfsmd.Revision, arg2 kbfsmd.BranchID) { 2907 m.ctrl.T.Helper() 2908 m.ctrl.Call(m, "MarkPutToServer", arg0, arg1, arg2) 2909 } 2910 2911 // MarkPutToServer indicates an expected call of MarkPutToServer. 2912 func (mr *MockMDCacheMockRecorder) MarkPutToServer(arg0, arg1, arg2 interface{}) *gomock.Call { 2913 mr.mock.ctrl.T.Helper() 2914 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkPutToServer", reflect.TypeOf((*MockMDCache)(nil).MarkPutToServer), arg0, arg1, arg2) 2915 } 2916 2917 // Put mocks base method. 2918 func (m *MockMDCache) Put(arg0 ImmutableRootMetadata) error { 2919 m.ctrl.T.Helper() 2920 ret := m.ctrl.Call(m, "Put", arg0) 2921 ret0, _ := ret[0].(error) 2922 return ret0 2923 } 2924 2925 // Put indicates an expected call of Put. 2926 func (mr *MockMDCacheMockRecorder) Put(arg0 interface{}) *gomock.Call { 2927 mr.mock.ctrl.T.Helper() 2928 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockMDCache)(nil).Put), arg0) 2929 } 2930 2931 // PutIDForHandle mocks base method. 2932 func (m *MockMDCache) PutIDForHandle(arg0 *tlfhandle.Handle, arg1 tlf.ID) error { 2933 m.ctrl.T.Helper() 2934 ret := m.ctrl.Call(m, "PutIDForHandle", arg0, arg1) 2935 ret0, _ := ret[0].(error) 2936 return ret0 2937 } 2938 2939 // PutIDForHandle indicates an expected call of PutIDForHandle. 2940 func (mr *MockMDCacheMockRecorder) PutIDForHandle(arg0, arg1 interface{}) *gomock.Call { 2941 mr.mock.ctrl.T.Helper() 2942 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutIDForHandle", reflect.TypeOf((*MockMDCache)(nil).PutIDForHandle), arg0, arg1) 2943 } 2944 2945 // PutNextMD mocks base method. 2946 func (m *MockMDCache) PutNextMD(arg0 tlf.ID, arg1 keybase1.Seqno, arg2 *kbfsmd.MerkleRoot, arg3 [][]byte, arg4 keybase1.Seqno) error { 2947 m.ctrl.T.Helper() 2948 ret := m.ctrl.Call(m, "PutNextMD", arg0, arg1, arg2, arg3, arg4) 2949 ret0, _ := ret[0].(error) 2950 return ret0 2951 } 2952 2953 // PutNextMD indicates an expected call of PutNextMD. 2954 func (mr *MockMDCacheMockRecorder) PutNextMD(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 2955 mr.mock.ctrl.T.Helper() 2956 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutNextMD", reflect.TypeOf((*MockMDCache)(nil).PutNextMD), arg0, arg1, arg2, arg3, arg4) 2957 } 2958 2959 // Replace mocks base method. 2960 func (m *MockMDCache) Replace(arg0 ImmutableRootMetadata, arg1 kbfsmd.BranchID) error { 2961 m.ctrl.T.Helper() 2962 ret := m.ctrl.Call(m, "Replace", arg0, arg1) 2963 ret0, _ := ret[0].(error) 2964 return ret0 2965 } 2966 2967 // Replace indicates an expected call of Replace. 2968 func (mr *MockMDCacheMockRecorder) Replace(arg0, arg1 interface{}) *gomock.Call { 2969 mr.mock.ctrl.T.Helper() 2970 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Replace", reflect.TypeOf((*MockMDCache)(nil).Replace), arg0, arg1) 2971 } 2972 2973 // MockMDOps is a mock of MDOps interface. 2974 type MockMDOps struct { 2975 ctrl *gomock.Controller 2976 recorder *MockMDOpsMockRecorder 2977 } 2978 2979 // MockMDOpsMockRecorder is the mock recorder for MockMDOps. 2980 type MockMDOpsMockRecorder struct { 2981 mock *MockMDOps 2982 } 2983 2984 // NewMockMDOps creates a new mock instance. 2985 func NewMockMDOps(ctrl *gomock.Controller) *MockMDOps { 2986 mock := &MockMDOps{ctrl: ctrl} 2987 mock.recorder = &MockMDOpsMockRecorder{mock} 2988 return mock 2989 } 2990 2991 // EXPECT returns an object that allows the caller to indicate expected use. 2992 func (m *MockMDOps) EXPECT() *MockMDOpsMockRecorder { 2993 return m.recorder 2994 } 2995 2996 // GetForTLF mocks base method. 2997 func (m *MockMDOps) GetForTLF(arg0 context.Context, arg1 tlf.ID, arg2 *keybase1.LockID) (ImmutableRootMetadata, error) { 2998 m.ctrl.T.Helper() 2999 ret := m.ctrl.Call(m, "GetForTLF", arg0, arg1, arg2) 3000 ret0, _ := ret[0].(ImmutableRootMetadata) 3001 ret1, _ := ret[1].(error) 3002 return ret0, ret1 3003 } 3004 3005 // GetForTLF indicates an expected call of GetForTLF. 3006 func (mr *MockMDOpsMockRecorder) GetForTLF(arg0, arg1, arg2 interface{}) *gomock.Call { 3007 mr.mock.ctrl.T.Helper() 3008 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForTLF", reflect.TypeOf((*MockMDOps)(nil).GetForTLF), arg0, arg1, arg2) 3009 } 3010 3011 // GetForTLFByTime mocks base method. 3012 func (m *MockMDOps) GetForTLFByTime(arg0 context.Context, arg1 tlf.ID, arg2 time.Time) (ImmutableRootMetadata, error) { 3013 m.ctrl.T.Helper() 3014 ret := m.ctrl.Call(m, "GetForTLFByTime", arg0, arg1, arg2) 3015 ret0, _ := ret[0].(ImmutableRootMetadata) 3016 ret1, _ := ret[1].(error) 3017 return ret0, ret1 3018 } 3019 3020 // GetForTLFByTime indicates an expected call of GetForTLFByTime. 3021 func (mr *MockMDOpsMockRecorder) GetForTLFByTime(arg0, arg1, arg2 interface{}) *gomock.Call { 3022 mr.mock.ctrl.T.Helper() 3023 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForTLFByTime", reflect.TypeOf((*MockMDOps)(nil).GetForTLFByTime), arg0, arg1, arg2) 3024 } 3025 3026 // GetIDForHandle mocks base method. 3027 func (m *MockMDOps) GetIDForHandle(arg0 context.Context, arg1 *tlfhandle.Handle) (tlf.ID, error) { 3028 m.ctrl.T.Helper() 3029 ret := m.ctrl.Call(m, "GetIDForHandle", arg0, arg1) 3030 ret0, _ := ret[0].(tlf.ID) 3031 ret1, _ := ret[1].(error) 3032 return ret0, ret1 3033 } 3034 3035 // GetIDForHandle indicates an expected call of GetIDForHandle. 3036 func (mr *MockMDOpsMockRecorder) GetIDForHandle(arg0, arg1 interface{}) *gomock.Call { 3037 mr.mock.ctrl.T.Helper() 3038 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIDForHandle", reflect.TypeOf((*MockMDOps)(nil).GetIDForHandle), arg0, arg1) 3039 } 3040 3041 // GetLatestHandleForTLF mocks base method. 3042 func (m *MockMDOps) GetLatestHandleForTLF(arg0 context.Context, arg1 tlf.ID) (tlf.Handle, error) { 3043 m.ctrl.T.Helper() 3044 ret := m.ctrl.Call(m, "GetLatestHandleForTLF", arg0, arg1) 3045 ret0, _ := ret[0].(tlf.Handle) 3046 ret1, _ := ret[1].(error) 3047 return ret0, ret1 3048 } 3049 3050 // GetLatestHandleForTLF indicates an expected call of GetLatestHandleForTLF. 3051 func (mr *MockMDOpsMockRecorder) GetLatestHandleForTLF(arg0, arg1 interface{}) *gomock.Call { 3052 mr.mock.ctrl.T.Helper() 3053 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestHandleForTLF", reflect.TypeOf((*MockMDOps)(nil).GetLatestHandleForTLF), arg0, arg1) 3054 } 3055 3056 // GetRange mocks base method. 3057 func (m *MockMDOps) GetRange(arg0 context.Context, arg1 tlf.ID, arg2, arg3 kbfsmd.Revision, arg4 *keybase1.LockID) ([]ImmutableRootMetadata, error) { 3058 m.ctrl.T.Helper() 3059 ret := m.ctrl.Call(m, "GetRange", arg0, arg1, arg2, arg3, arg4) 3060 ret0, _ := ret[0].([]ImmutableRootMetadata) 3061 ret1, _ := ret[1].(error) 3062 return ret0, ret1 3063 } 3064 3065 // GetRange indicates an expected call of GetRange. 3066 func (mr *MockMDOpsMockRecorder) GetRange(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 3067 mr.mock.ctrl.T.Helper() 3068 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRange", reflect.TypeOf((*MockMDOps)(nil).GetRange), arg0, arg1, arg2, arg3, arg4) 3069 } 3070 3071 // GetUnmergedForTLF mocks base method. 3072 func (m *MockMDOps) GetUnmergedForTLF(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID) (ImmutableRootMetadata, error) { 3073 m.ctrl.T.Helper() 3074 ret := m.ctrl.Call(m, "GetUnmergedForTLF", arg0, arg1, arg2) 3075 ret0, _ := ret[0].(ImmutableRootMetadata) 3076 ret1, _ := ret[1].(error) 3077 return ret0, ret1 3078 } 3079 3080 // GetUnmergedForTLF indicates an expected call of GetUnmergedForTLF. 3081 func (mr *MockMDOpsMockRecorder) GetUnmergedForTLF(arg0, arg1, arg2 interface{}) *gomock.Call { 3082 mr.mock.ctrl.T.Helper() 3083 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnmergedForTLF", reflect.TypeOf((*MockMDOps)(nil).GetUnmergedForTLF), arg0, arg1, arg2) 3084 } 3085 3086 // GetUnmergedRange mocks base method. 3087 func (m *MockMDOps) GetUnmergedRange(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID, arg3, arg4 kbfsmd.Revision) ([]ImmutableRootMetadata, error) { 3088 m.ctrl.T.Helper() 3089 ret := m.ctrl.Call(m, "GetUnmergedRange", arg0, arg1, arg2, arg3, arg4) 3090 ret0, _ := ret[0].([]ImmutableRootMetadata) 3091 ret1, _ := ret[1].(error) 3092 return ret0, ret1 3093 } 3094 3095 // GetUnmergedRange indicates an expected call of GetUnmergedRange. 3096 func (mr *MockMDOpsMockRecorder) GetUnmergedRange(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 3097 mr.mock.ctrl.T.Helper() 3098 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnmergedRange", reflect.TypeOf((*MockMDOps)(nil).GetUnmergedRange), arg0, arg1, arg2, arg3, arg4) 3099 } 3100 3101 // PruneBranch mocks base method. 3102 func (m *MockMDOps) PruneBranch(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID) error { 3103 m.ctrl.T.Helper() 3104 ret := m.ctrl.Call(m, "PruneBranch", arg0, arg1, arg2) 3105 ret0, _ := ret[0].(error) 3106 return ret0 3107 } 3108 3109 // PruneBranch indicates an expected call of PruneBranch. 3110 func (mr *MockMDOpsMockRecorder) PruneBranch(arg0, arg1, arg2 interface{}) *gomock.Call { 3111 mr.mock.ctrl.T.Helper() 3112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneBranch", reflect.TypeOf((*MockMDOps)(nil).PruneBranch), arg0, arg1, arg2) 3113 } 3114 3115 // Put mocks base method. 3116 func (m *MockMDOps) Put(arg0 context.Context, arg1 *RootMetadata, arg2 kbfscrypto.VerifyingKey, arg3 *keybase1.LockContext, arg4 keybase1.MDPriority, arg5 data.BlockPutState) (ImmutableRootMetadata, error) { 3117 m.ctrl.T.Helper() 3118 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4, arg5) 3119 ret0, _ := ret[0].(ImmutableRootMetadata) 3120 ret1, _ := ret[1].(error) 3121 return ret0, ret1 3122 } 3123 3124 // Put indicates an expected call of Put. 3125 func (mr *MockMDOpsMockRecorder) Put(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 3126 mr.mock.ctrl.T.Helper() 3127 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockMDOps)(nil).Put), arg0, arg1, arg2, arg3, arg4, arg5) 3128 } 3129 3130 // PutUnmerged mocks base method. 3131 func (m *MockMDOps) PutUnmerged(arg0 context.Context, arg1 *RootMetadata, arg2 kbfscrypto.VerifyingKey, arg3 data.BlockPutState) (ImmutableRootMetadata, error) { 3132 m.ctrl.T.Helper() 3133 ret := m.ctrl.Call(m, "PutUnmerged", arg0, arg1, arg2, arg3) 3134 ret0, _ := ret[0].(ImmutableRootMetadata) 3135 ret1, _ := ret[1].(error) 3136 return ret0, ret1 3137 } 3138 3139 // PutUnmerged indicates an expected call of PutUnmerged. 3140 func (mr *MockMDOpsMockRecorder) PutUnmerged(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 3141 mr.mock.ctrl.T.Helper() 3142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUnmerged", reflect.TypeOf((*MockMDOps)(nil).PutUnmerged), arg0, arg1, arg2, arg3) 3143 } 3144 3145 // ResolveBranch mocks base method. 3146 func (m *MockMDOps) ResolveBranch(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID, arg3 []kbfsblock.ID, arg4 *RootMetadata, arg5 kbfscrypto.VerifyingKey, arg6 data.BlockPutState) (ImmutableRootMetadata, error) { 3147 m.ctrl.T.Helper() 3148 ret := m.ctrl.Call(m, "ResolveBranch", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 3149 ret0, _ := ret[0].(ImmutableRootMetadata) 3150 ret1, _ := ret[1].(error) 3151 return ret0, ret1 3152 } 3153 3154 // ResolveBranch indicates an expected call of ResolveBranch. 3155 func (mr *MockMDOpsMockRecorder) ResolveBranch(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 3156 mr.mock.ctrl.T.Helper() 3157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveBranch", reflect.TypeOf((*MockMDOps)(nil).ResolveBranch), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 3158 } 3159 3160 // ValidateLatestHandleNotFinal mocks base method. 3161 func (m *MockMDOps) ValidateLatestHandleNotFinal(arg0 context.Context, arg1 *tlfhandle.Handle) (bool, error) { 3162 m.ctrl.T.Helper() 3163 ret := m.ctrl.Call(m, "ValidateLatestHandleNotFinal", arg0, arg1) 3164 ret0, _ := ret[0].(bool) 3165 ret1, _ := ret[1].(error) 3166 return ret0, ret1 3167 } 3168 3169 // ValidateLatestHandleNotFinal indicates an expected call of ValidateLatestHandleNotFinal. 3170 func (mr *MockMDOpsMockRecorder) ValidateLatestHandleNotFinal(arg0, arg1 interface{}) *gomock.Call { 3171 mr.mock.ctrl.T.Helper() 3172 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateLatestHandleNotFinal", reflect.TypeOf((*MockMDOps)(nil).ValidateLatestHandleNotFinal), arg0, arg1) 3173 } 3174 3175 // MockMDServer is a mock of MDServer interface. 3176 type MockMDServer struct { 3177 ctrl *gomock.Controller 3178 recorder *MockMDServerMockRecorder 3179 } 3180 3181 // MockMDServerMockRecorder is the mock recorder for MockMDServer. 3182 type MockMDServerMockRecorder struct { 3183 mock *MockMDServer 3184 } 3185 3186 // NewMockMDServer creates a new mock instance. 3187 func NewMockMDServer(ctrl *gomock.Controller) *MockMDServer { 3188 mock := &MockMDServer{ctrl: ctrl} 3189 mock.recorder = &MockMDServerMockRecorder{mock} 3190 return mock 3191 } 3192 3193 // EXPECT returns an object that allows the caller to indicate expected use. 3194 func (m *MockMDServer) EXPECT() *MockMDServerMockRecorder { 3195 return m.recorder 3196 } 3197 3198 // CancelRegistration mocks base method. 3199 func (m *MockMDServer) CancelRegistration(arg0 context.Context, arg1 tlf.ID) { 3200 m.ctrl.T.Helper() 3201 m.ctrl.Call(m, "CancelRegistration", arg0, arg1) 3202 } 3203 3204 // CancelRegistration indicates an expected call of CancelRegistration. 3205 func (mr *MockMDServerMockRecorder) CancelRegistration(arg0, arg1 interface{}) *gomock.Call { 3206 mr.mock.ctrl.T.Helper() 3207 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRegistration", reflect.TypeOf((*MockMDServer)(nil).CancelRegistration), arg0, arg1) 3208 } 3209 3210 // CheckForRekeys mocks base method. 3211 func (m *MockMDServer) CheckForRekeys(arg0 context.Context) <-chan error { 3212 m.ctrl.T.Helper() 3213 ret := m.ctrl.Call(m, "CheckForRekeys", arg0) 3214 ret0, _ := ret[0].(<-chan error) 3215 return ret0 3216 } 3217 3218 // CheckForRekeys indicates an expected call of CheckForRekeys. 3219 func (mr *MockMDServerMockRecorder) CheckForRekeys(arg0 interface{}) *gomock.Call { 3220 mr.mock.ctrl.T.Helper() 3221 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckForRekeys", reflect.TypeOf((*MockMDServer)(nil).CheckForRekeys), arg0) 3222 } 3223 3224 // CheckReachability mocks base method. 3225 func (m *MockMDServer) CheckReachability(arg0 context.Context) { 3226 m.ctrl.T.Helper() 3227 m.ctrl.Call(m, "CheckReachability", arg0) 3228 } 3229 3230 // CheckReachability indicates an expected call of CheckReachability. 3231 func (mr *MockMDServerMockRecorder) CheckReachability(arg0 interface{}) *gomock.Call { 3232 mr.mock.ctrl.T.Helper() 3233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckReachability", reflect.TypeOf((*MockMDServer)(nil).CheckReachability), arg0) 3234 } 3235 3236 // DisableRekeyUpdatesForTesting mocks base method. 3237 func (m *MockMDServer) DisableRekeyUpdatesForTesting() { 3238 m.ctrl.T.Helper() 3239 m.ctrl.Call(m, "DisableRekeyUpdatesForTesting") 3240 } 3241 3242 // DisableRekeyUpdatesForTesting indicates an expected call of DisableRekeyUpdatesForTesting. 3243 func (mr *MockMDServerMockRecorder) DisableRekeyUpdatesForTesting() *gomock.Call { 3244 mr.mock.ctrl.T.Helper() 3245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableRekeyUpdatesForTesting", reflect.TypeOf((*MockMDServer)(nil).DisableRekeyUpdatesForTesting)) 3246 } 3247 3248 // FastForwardBackoff mocks base method. 3249 func (m *MockMDServer) FastForwardBackoff() { 3250 m.ctrl.T.Helper() 3251 m.ctrl.Call(m, "FastForwardBackoff") 3252 } 3253 3254 // FastForwardBackoff indicates an expected call of FastForwardBackoff. 3255 func (mr *MockMDServerMockRecorder) FastForwardBackoff() *gomock.Call { 3256 mr.mock.ctrl.T.Helper() 3257 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FastForwardBackoff", reflect.TypeOf((*MockMDServer)(nil).FastForwardBackoff)) 3258 } 3259 3260 // FindNextMD mocks base method. 3261 func (m *MockMDServer) FindNextMD(arg0 context.Context, arg1 tlf.ID, arg2 keybase1.Seqno) (*kbfsmd.MerkleRoot, [][]byte, keybase1.Seqno, error) { 3262 m.ctrl.T.Helper() 3263 ret := m.ctrl.Call(m, "FindNextMD", arg0, arg1, arg2) 3264 ret0, _ := ret[0].(*kbfsmd.MerkleRoot) 3265 ret1, _ := ret[1].([][]byte) 3266 ret2, _ := ret[2].(keybase1.Seqno) 3267 ret3, _ := ret[3].(error) 3268 return ret0, ret1, ret2, ret3 3269 } 3270 3271 // FindNextMD indicates an expected call of FindNextMD. 3272 func (mr *MockMDServerMockRecorder) FindNextMD(arg0, arg1, arg2 interface{}) *gomock.Call { 3273 mr.mock.ctrl.T.Helper() 3274 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindNextMD", reflect.TypeOf((*MockMDServer)(nil).FindNextMD), arg0, arg1, arg2) 3275 } 3276 3277 // GetForHandle mocks base method. 3278 func (m *MockMDServer) GetForHandle(arg0 context.Context, arg1 tlf.Handle, arg2 kbfsmd.MergeStatus, arg3 *keybase1.LockID) (tlf.ID, *RootMetadataSigned, error) { 3279 m.ctrl.T.Helper() 3280 ret := m.ctrl.Call(m, "GetForHandle", arg0, arg1, arg2, arg3) 3281 ret0, _ := ret[0].(tlf.ID) 3282 ret1, _ := ret[1].(*RootMetadataSigned) 3283 ret2, _ := ret[2].(error) 3284 return ret0, ret1, ret2 3285 } 3286 3287 // GetForHandle indicates an expected call of GetForHandle. 3288 func (mr *MockMDServerMockRecorder) GetForHandle(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 3289 mr.mock.ctrl.T.Helper() 3290 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForHandle", reflect.TypeOf((*MockMDServer)(nil).GetForHandle), arg0, arg1, arg2, arg3) 3291 } 3292 3293 // GetForTLF mocks base method. 3294 func (m *MockMDServer) GetForTLF(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID, arg3 kbfsmd.MergeStatus, arg4 *keybase1.LockID) (*RootMetadataSigned, error) { 3295 m.ctrl.T.Helper() 3296 ret := m.ctrl.Call(m, "GetForTLF", arg0, arg1, arg2, arg3, arg4) 3297 ret0, _ := ret[0].(*RootMetadataSigned) 3298 ret1, _ := ret[1].(error) 3299 return ret0, ret1 3300 } 3301 3302 // GetForTLF indicates an expected call of GetForTLF. 3303 func (mr *MockMDServerMockRecorder) GetForTLF(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 3304 mr.mock.ctrl.T.Helper() 3305 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForTLF", reflect.TypeOf((*MockMDServer)(nil).GetForTLF), arg0, arg1, arg2, arg3, arg4) 3306 } 3307 3308 // GetForTLFByTime mocks base method. 3309 func (m *MockMDServer) GetForTLFByTime(arg0 context.Context, arg1 tlf.ID, arg2 time.Time) (*RootMetadataSigned, error) { 3310 m.ctrl.T.Helper() 3311 ret := m.ctrl.Call(m, "GetForTLFByTime", arg0, arg1, arg2) 3312 ret0, _ := ret[0].(*RootMetadataSigned) 3313 ret1, _ := ret[1].(error) 3314 return ret0, ret1 3315 } 3316 3317 // GetForTLFByTime indicates an expected call of GetForTLFByTime. 3318 func (mr *MockMDServerMockRecorder) GetForTLFByTime(arg0, arg1, arg2 interface{}) *gomock.Call { 3319 mr.mock.ctrl.T.Helper() 3320 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetForTLFByTime", reflect.TypeOf((*MockMDServer)(nil).GetForTLFByTime), arg0, arg1, arg2) 3321 } 3322 3323 // GetKeyBundles mocks base method. 3324 func (m *MockMDServer) GetKeyBundles(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.TLFWriterKeyBundleID, arg3 kbfsmd.TLFReaderKeyBundleID) (*kbfsmd.TLFWriterKeyBundleV3, *kbfsmd.TLFReaderKeyBundleV3, error) { 3325 m.ctrl.T.Helper() 3326 ret := m.ctrl.Call(m, "GetKeyBundles", arg0, arg1, arg2, arg3) 3327 ret0, _ := ret[0].(*kbfsmd.TLFWriterKeyBundleV3) 3328 ret1, _ := ret[1].(*kbfsmd.TLFReaderKeyBundleV3) 3329 ret2, _ := ret[2].(error) 3330 return ret0, ret1, ret2 3331 } 3332 3333 // GetKeyBundles indicates an expected call of GetKeyBundles. 3334 func (mr *MockMDServerMockRecorder) GetKeyBundles(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 3335 mr.mock.ctrl.T.Helper() 3336 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyBundles", reflect.TypeOf((*MockMDServer)(nil).GetKeyBundles), arg0, arg1, arg2, arg3) 3337 } 3338 3339 // GetLatestHandleForTLF mocks base method. 3340 func (m *MockMDServer) GetLatestHandleForTLF(arg0 context.Context, arg1 tlf.ID) (tlf.Handle, error) { 3341 m.ctrl.T.Helper() 3342 ret := m.ctrl.Call(m, "GetLatestHandleForTLF", arg0, arg1) 3343 ret0, _ := ret[0].(tlf.Handle) 3344 ret1, _ := ret[1].(error) 3345 return ret0, ret1 3346 } 3347 3348 // GetLatestHandleForTLF indicates an expected call of GetLatestHandleForTLF. 3349 func (mr *MockMDServerMockRecorder) GetLatestHandleForTLF(arg0, arg1 interface{}) *gomock.Call { 3350 mr.mock.ctrl.T.Helper() 3351 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestHandleForTLF", reflect.TypeOf((*MockMDServer)(nil).GetLatestHandleForTLF), arg0, arg1) 3352 } 3353 3354 // GetMerkleRootLatest mocks base method. 3355 func (m *MockMDServer) GetMerkleRootLatest(arg0 context.Context, arg1 keybase1.MerkleTreeID) (*kbfsmd.MerkleRoot, error) { 3356 m.ctrl.T.Helper() 3357 ret := m.ctrl.Call(m, "GetMerkleRootLatest", arg0, arg1) 3358 ret0, _ := ret[0].(*kbfsmd.MerkleRoot) 3359 ret1, _ := ret[1].(error) 3360 return ret0, ret1 3361 } 3362 3363 // GetMerkleRootLatest indicates an expected call of GetMerkleRootLatest. 3364 func (mr *MockMDServerMockRecorder) GetMerkleRootLatest(arg0, arg1 interface{}) *gomock.Call { 3365 mr.mock.ctrl.T.Helper() 3366 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleRootLatest", reflect.TypeOf((*MockMDServer)(nil).GetMerkleRootLatest), arg0, arg1) 3367 } 3368 3369 // GetRange mocks base method. 3370 func (m *MockMDServer) GetRange(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID, arg3 kbfsmd.MergeStatus, arg4, arg5 kbfsmd.Revision, arg6 *keybase1.LockID) ([]*RootMetadataSigned, error) { 3371 m.ctrl.T.Helper() 3372 ret := m.ctrl.Call(m, "GetRange", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 3373 ret0, _ := ret[0].([]*RootMetadataSigned) 3374 ret1, _ := ret[1].(error) 3375 return ret0, ret1 3376 } 3377 3378 // GetRange indicates an expected call of GetRange. 3379 func (mr *MockMDServerMockRecorder) GetRange(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 3380 mr.mock.ctrl.T.Helper() 3381 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRange", reflect.TypeOf((*MockMDServer)(nil).GetRange), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 3382 } 3383 3384 // IsConnected mocks base method. 3385 func (m *MockMDServer) IsConnected() bool { 3386 m.ctrl.T.Helper() 3387 ret := m.ctrl.Call(m, "IsConnected") 3388 ret0, _ := ret[0].(bool) 3389 return ret0 3390 } 3391 3392 // IsConnected indicates an expected call of IsConnected. 3393 func (mr *MockMDServerMockRecorder) IsConnected() *gomock.Call { 3394 mr.mock.ctrl.T.Helper() 3395 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsConnected", reflect.TypeOf((*MockMDServer)(nil).IsConnected)) 3396 } 3397 3398 // Lock mocks base method. 3399 func (m *MockMDServer) Lock(arg0 context.Context, arg1 tlf.ID, arg2 keybase1.LockID) error { 3400 m.ctrl.T.Helper() 3401 ret := m.ctrl.Call(m, "Lock", arg0, arg1, arg2) 3402 ret0, _ := ret[0].(error) 3403 return ret0 3404 } 3405 3406 // Lock indicates an expected call of Lock. 3407 func (mr *MockMDServerMockRecorder) Lock(arg0, arg1, arg2 interface{}) *gomock.Call { 3408 mr.mock.ctrl.T.Helper() 3409 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockMDServer)(nil).Lock), arg0, arg1, arg2) 3410 } 3411 3412 // OffsetFromServerTime mocks base method. 3413 func (m *MockMDServer) OffsetFromServerTime() (time.Duration, bool) { 3414 m.ctrl.T.Helper() 3415 ret := m.ctrl.Call(m, "OffsetFromServerTime") 3416 ret0, _ := ret[0].(time.Duration) 3417 ret1, _ := ret[1].(bool) 3418 return ret0, ret1 3419 } 3420 3421 // OffsetFromServerTime indicates an expected call of OffsetFromServerTime. 3422 func (mr *MockMDServerMockRecorder) OffsetFromServerTime() *gomock.Call { 3423 mr.mock.ctrl.T.Helper() 3424 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OffsetFromServerTime", reflect.TypeOf((*MockMDServer)(nil).OffsetFromServerTime)) 3425 } 3426 3427 // PruneBranch mocks base method. 3428 func (m *MockMDServer) PruneBranch(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.BranchID) error { 3429 m.ctrl.T.Helper() 3430 ret := m.ctrl.Call(m, "PruneBranch", arg0, arg1, arg2) 3431 ret0, _ := ret[0].(error) 3432 return ret0 3433 } 3434 3435 // PruneBranch indicates an expected call of PruneBranch. 3436 func (mr *MockMDServerMockRecorder) PruneBranch(arg0, arg1, arg2 interface{}) *gomock.Call { 3437 mr.mock.ctrl.T.Helper() 3438 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PruneBranch", reflect.TypeOf((*MockMDServer)(nil).PruneBranch), arg0, arg1, arg2) 3439 } 3440 3441 // Put mocks base method. 3442 func (m *MockMDServer) Put(arg0 context.Context, arg1 *RootMetadataSigned, arg2 kbfsmd.ExtraMetadata, arg3 *keybase1.LockContext, arg4 keybase1.MDPriority) error { 3443 m.ctrl.T.Helper() 3444 ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4) 3445 ret0, _ := ret[0].(error) 3446 return ret0 3447 } 3448 3449 // Put indicates an expected call of Put. 3450 func (mr *MockMDServerMockRecorder) Put(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 3451 mr.mock.ctrl.T.Helper() 3452 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockMDServer)(nil).Put), arg0, arg1, arg2, arg3, arg4) 3453 } 3454 3455 // RefreshAuthToken mocks base method. 3456 func (m *MockMDServer) RefreshAuthToken(arg0 context.Context) { 3457 m.ctrl.T.Helper() 3458 m.ctrl.Call(m, "RefreshAuthToken", arg0) 3459 } 3460 3461 // RefreshAuthToken indicates an expected call of RefreshAuthToken. 3462 func (mr *MockMDServerMockRecorder) RefreshAuthToken(arg0 interface{}) *gomock.Call { 3463 mr.mock.ctrl.T.Helper() 3464 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshAuthToken", reflect.TypeOf((*MockMDServer)(nil).RefreshAuthToken), arg0) 3465 } 3466 3467 // RegisterForUpdate mocks base method. 3468 func (m *MockMDServer) RegisterForUpdate(arg0 context.Context, arg1 tlf.ID, arg2 kbfsmd.Revision) (<-chan error, error) { 3469 m.ctrl.T.Helper() 3470 ret := m.ctrl.Call(m, "RegisterForUpdate", arg0, arg1, arg2) 3471 ret0, _ := ret[0].(<-chan error) 3472 ret1, _ := ret[1].(error) 3473 return ret0, ret1 3474 } 3475 3476 // RegisterForUpdate indicates an expected call of RegisterForUpdate. 3477 func (mr *MockMDServerMockRecorder) RegisterForUpdate(arg0, arg1, arg2 interface{}) *gomock.Call { 3478 mr.mock.ctrl.T.Helper() 3479 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForUpdate", reflect.TypeOf((*MockMDServer)(nil).RegisterForUpdate), arg0, arg1, arg2) 3480 } 3481 3482 // ReleaseLock mocks base method. 3483 func (m *MockMDServer) ReleaseLock(arg0 context.Context, arg1 tlf.ID, arg2 keybase1.LockID) error { 3484 m.ctrl.T.Helper() 3485 ret := m.ctrl.Call(m, "ReleaseLock", arg0, arg1, arg2) 3486 ret0, _ := ret[0].(error) 3487 return ret0 3488 } 3489 3490 // ReleaseLock indicates an expected call of ReleaseLock. 3491 func (mr *MockMDServerMockRecorder) ReleaseLock(arg0, arg1, arg2 interface{}) *gomock.Call { 3492 mr.mock.ctrl.T.Helper() 3493 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseLock", reflect.TypeOf((*MockMDServer)(nil).ReleaseLock), arg0, arg1, arg2) 3494 } 3495 3496 // Shutdown mocks base method. 3497 func (m *MockMDServer) Shutdown() { 3498 m.ctrl.T.Helper() 3499 m.ctrl.Call(m, "Shutdown") 3500 } 3501 3502 // Shutdown indicates an expected call of Shutdown. 3503 func (mr *MockMDServerMockRecorder) Shutdown() *gomock.Call { 3504 mr.mock.ctrl.T.Helper() 3505 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockMDServer)(nil).Shutdown)) 3506 } 3507 3508 // StartImplicitTeamMigration mocks base method. 3509 func (m *MockMDServer) StartImplicitTeamMigration(arg0 context.Context, arg1 tlf.ID) error { 3510 m.ctrl.T.Helper() 3511 ret := m.ctrl.Call(m, "StartImplicitTeamMigration", arg0, arg1) 3512 ret0, _ := ret[0].(error) 3513 return ret0 3514 } 3515 3516 // StartImplicitTeamMigration indicates an expected call of StartImplicitTeamMigration. 3517 func (mr *MockMDServerMockRecorder) StartImplicitTeamMigration(arg0, arg1 interface{}) *gomock.Call { 3518 mr.mock.ctrl.T.Helper() 3519 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartImplicitTeamMigration", reflect.TypeOf((*MockMDServer)(nil).StartImplicitTeamMigration), arg0, arg1) 3520 } 3521 3522 // TruncateLock mocks base method. 3523 func (m *MockMDServer) TruncateLock(arg0 context.Context, arg1 tlf.ID) (bool, error) { 3524 m.ctrl.T.Helper() 3525 ret := m.ctrl.Call(m, "TruncateLock", arg0, arg1) 3526 ret0, _ := ret[0].(bool) 3527 ret1, _ := ret[1].(error) 3528 return ret0, ret1 3529 } 3530 3531 // TruncateLock indicates an expected call of TruncateLock. 3532 func (mr *MockMDServerMockRecorder) TruncateLock(arg0, arg1 interface{}) *gomock.Call { 3533 mr.mock.ctrl.T.Helper() 3534 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TruncateLock", reflect.TypeOf((*MockMDServer)(nil).TruncateLock), arg0, arg1) 3535 } 3536 3537 // TruncateUnlock mocks base method. 3538 func (m *MockMDServer) TruncateUnlock(arg0 context.Context, arg1 tlf.ID) (bool, error) { 3539 m.ctrl.T.Helper() 3540 ret := m.ctrl.Call(m, "TruncateUnlock", arg0, arg1) 3541 ret0, _ := ret[0].(bool) 3542 ret1, _ := ret[1].(error) 3543 return ret0, ret1 3544 } 3545 3546 // TruncateUnlock indicates an expected call of TruncateUnlock. 3547 func (mr *MockMDServerMockRecorder) TruncateUnlock(arg0, arg1 interface{}) *gomock.Call { 3548 mr.mock.ctrl.T.Helper() 3549 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TruncateUnlock", reflect.TypeOf((*MockMDServer)(nil).TruncateUnlock), arg0, arg1) 3550 } 3551 3552 // MockNode is a mock of Node interface. 3553 type MockNode struct { 3554 ctrl *gomock.Controller 3555 recorder *MockNodeMockRecorder 3556 } 3557 3558 // MockNodeMockRecorder is the mock recorder for MockNode. 3559 type MockNodeMockRecorder struct { 3560 mock *MockNode 3561 } 3562 3563 // NewMockNode creates a new mock instance. 3564 func NewMockNode(ctrl *gomock.Controller) *MockNode { 3565 mock := &MockNode{ctrl: ctrl} 3566 mock.recorder = &MockNodeMockRecorder{mock} 3567 return mock 3568 } 3569 3570 // EXPECT returns an object that allows the caller to indicate expected use. 3571 func (m *MockNode) EXPECT() *MockNodeMockRecorder { 3572 return m.recorder 3573 } 3574 3575 // ChildName mocks base method. 3576 func (m *MockNode) ChildName(arg0 string) data.PathPartString { 3577 m.ctrl.T.Helper() 3578 ret := m.ctrl.Call(m, "ChildName", arg0) 3579 ret0, _ := ret[0].(data.PathPartString) 3580 return ret0 3581 } 3582 3583 // ChildName indicates an expected call of ChildName. 3584 func (mr *MockNodeMockRecorder) ChildName(arg0 interface{}) *gomock.Call { 3585 mr.mock.ctrl.T.Helper() 3586 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChildName", reflect.TypeOf((*MockNode)(nil).ChildName), arg0) 3587 } 3588 3589 // EntryType mocks base method. 3590 func (m *MockNode) EntryType() data.EntryType { 3591 m.ctrl.T.Helper() 3592 ret := m.ctrl.Call(m, "EntryType") 3593 ret0, _ := ret[0].(data.EntryType) 3594 return ret0 3595 } 3596 3597 // EntryType indicates an expected call of EntryType. 3598 func (mr *MockNodeMockRecorder) EntryType() *gomock.Call { 3599 mr.mock.ctrl.T.Helper() 3600 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EntryType", reflect.TypeOf((*MockNode)(nil).EntryType)) 3601 } 3602 3603 // FillCacheDuration mocks base method. 3604 func (m *MockNode) FillCacheDuration(arg0 *time.Duration) { 3605 m.ctrl.T.Helper() 3606 m.ctrl.Call(m, "FillCacheDuration", arg0) 3607 } 3608 3609 // FillCacheDuration indicates an expected call of FillCacheDuration. 3610 func (mr *MockNodeMockRecorder) FillCacheDuration(arg0 interface{}) *gomock.Call { 3611 mr.mock.ctrl.T.Helper() 3612 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FillCacheDuration", reflect.TypeOf((*MockNode)(nil).FillCacheDuration), arg0) 3613 } 3614 3615 // GetBasename mocks base method. 3616 func (m *MockNode) GetBasename() data.PathPartString { 3617 m.ctrl.T.Helper() 3618 ret := m.ctrl.Call(m, "GetBasename") 3619 ret0, _ := ret[0].(data.PathPartString) 3620 return ret0 3621 } 3622 3623 // GetBasename indicates an expected call of GetBasename. 3624 func (mr *MockNodeMockRecorder) GetBasename() *gomock.Call { 3625 mr.mock.ctrl.T.Helper() 3626 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBasename", reflect.TypeOf((*MockNode)(nil).GetBasename)) 3627 } 3628 3629 // GetBlockID mocks base method. 3630 func (m *MockNode) GetBlockID() kbfsblock.ID { 3631 m.ctrl.T.Helper() 3632 ret := m.ctrl.Call(m, "GetBlockID") 3633 ret0, _ := ret[0].(kbfsblock.ID) 3634 return ret0 3635 } 3636 3637 // GetBlockID indicates an expected call of GetBlockID. 3638 func (mr *MockNodeMockRecorder) GetBlockID() *gomock.Call { 3639 mr.mock.ctrl.T.Helper() 3640 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockID", reflect.TypeOf((*MockNode)(nil).GetBlockID)) 3641 } 3642 3643 // GetFS mocks base method. 3644 func (m *MockNode) GetFS(arg0 context.Context) NodeFSReadOnly { 3645 m.ctrl.T.Helper() 3646 ret := m.ctrl.Call(m, "GetFS", arg0) 3647 ret0, _ := ret[0].(NodeFSReadOnly) 3648 return ret0 3649 } 3650 3651 // GetFS indicates an expected call of GetFS. 3652 func (mr *MockNodeMockRecorder) GetFS(arg0 interface{}) *gomock.Call { 3653 mr.mock.ctrl.T.Helper() 3654 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFS", reflect.TypeOf((*MockNode)(nil).GetFS), arg0) 3655 } 3656 3657 // GetFile mocks base method. 3658 func (m *MockNode) GetFile(arg0 context.Context) billy.File { 3659 m.ctrl.T.Helper() 3660 ret := m.ctrl.Call(m, "GetFile", arg0) 3661 ret0, _ := ret[0].(billy.File) 3662 return ret0 3663 } 3664 3665 // GetFile indicates an expected call of GetFile. 3666 func (mr *MockNodeMockRecorder) GetFile(arg0 interface{}) *gomock.Call { 3667 mr.mock.ctrl.T.Helper() 3668 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFile", reflect.TypeOf((*MockNode)(nil).GetFile), arg0) 3669 } 3670 3671 // GetFolderBranch mocks base method. 3672 func (m *MockNode) GetFolderBranch() data.FolderBranch { 3673 m.ctrl.T.Helper() 3674 ret := m.ctrl.Call(m, "GetFolderBranch") 3675 ret0, _ := ret[0].(data.FolderBranch) 3676 return ret0 3677 } 3678 3679 // GetFolderBranch indicates an expected call of GetFolderBranch. 3680 func (mr *MockNodeMockRecorder) GetFolderBranch() *gomock.Call { 3681 mr.mock.ctrl.T.Helper() 3682 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFolderBranch", reflect.TypeOf((*MockNode)(nil).GetFolderBranch)) 3683 } 3684 3685 // GetID mocks base method. 3686 func (m *MockNode) GetID() NodeID { 3687 m.ctrl.T.Helper() 3688 ret := m.ctrl.Call(m, "GetID") 3689 ret0, _ := ret[0].(NodeID) 3690 return ret0 3691 } 3692 3693 // GetID indicates an expected call of GetID. 3694 func (mr *MockNodeMockRecorder) GetID() *gomock.Call { 3695 mr.mock.ctrl.T.Helper() 3696 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetID", reflect.TypeOf((*MockNode)(nil).GetID)) 3697 } 3698 3699 // GetPathPlaintextSansTlf mocks base method. 3700 func (m *MockNode) GetPathPlaintextSansTlf() (string, bool) { 3701 m.ctrl.T.Helper() 3702 ret := m.ctrl.Call(m, "GetPathPlaintextSansTlf") 3703 ret0, _ := ret[0].(string) 3704 ret1, _ := ret[1].(bool) 3705 return ret0, ret1 3706 } 3707 3708 // GetPathPlaintextSansTlf indicates an expected call of GetPathPlaintextSansTlf. 3709 func (mr *MockNodeMockRecorder) GetPathPlaintextSansTlf() *gomock.Call { 3710 mr.mock.ctrl.T.Helper() 3711 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPathPlaintextSansTlf", reflect.TypeOf((*MockNode)(nil).GetPathPlaintextSansTlf)) 3712 } 3713 3714 // Obfuscator mocks base method. 3715 func (m *MockNode) Obfuscator() data.Obfuscator { 3716 m.ctrl.T.Helper() 3717 ret := m.ctrl.Call(m, "Obfuscator") 3718 ret0, _ := ret[0].(data.Obfuscator) 3719 return ret0 3720 } 3721 3722 // Obfuscator indicates an expected call of Obfuscator. 3723 func (mr *MockNodeMockRecorder) Obfuscator() *gomock.Call { 3724 mr.mock.ctrl.T.Helper() 3725 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Obfuscator", reflect.TypeOf((*MockNode)(nil).Obfuscator)) 3726 } 3727 3728 // Readonly mocks base method. 3729 func (m *MockNode) Readonly(arg0 context.Context) bool { 3730 m.ctrl.T.Helper() 3731 ret := m.ctrl.Call(m, "Readonly", arg0) 3732 ret0, _ := ret[0].(bool) 3733 return ret0 3734 } 3735 3736 // Readonly indicates an expected call of Readonly. 3737 func (mr *MockNodeMockRecorder) Readonly(arg0 interface{}) *gomock.Call { 3738 mr.mock.ctrl.T.Helper() 3739 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Readonly", reflect.TypeOf((*MockNode)(nil).Readonly), arg0) 3740 } 3741 3742 // RemoveDir mocks base method. 3743 func (m *MockNode) RemoveDir(arg0 context.Context, arg1 data.PathPartString) (bool, error) { 3744 m.ctrl.T.Helper() 3745 ret := m.ctrl.Call(m, "RemoveDir", arg0, arg1) 3746 ret0, _ := ret[0].(bool) 3747 ret1, _ := ret[1].(error) 3748 return ret0, ret1 3749 } 3750 3751 // RemoveDir indicates an expected call of RemoveDir. 3752 func (mr *MockNodeMockRecorder) RemoveDir(arg0, arg1 interface{}) *gomock.Call { 3753 mr.mock.ctrl.T.Helper() 3754 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveDir", reflect.TypeOf((*MockNode)(nil).RemoveDir), arg0, arg1) 3755 } 3756 3757 // ShouldCreateMissedLookup mocks base method. 3758 func (m *MockNode) ShouldCreateMissedLookup(arg0 context.Context, arg1 data.PathPartString) (bool, context.Context, data.EntryType, fs.FileInfo, data.PathPartString, data.BlockPointer) { 3759 m.ctrl.T.Helper() 3760 ret := m.ctrl.Call(m, "ShouldCreateMissedLookup", arg0, arg1) 3761 ret0, _ := ret[0].(bool) 3762 ret1, _ := ret[1].(context.Context) 3763 ret2, _ := ret[2].(data.EntryType) 3764 ret3, _ := ret[3].(fs.FileInfo) 3765 ret4, _ := ret[4].(data.PathPartString) 3766 ret5, _ := ret[5].(data.BlockPointer) 3767 return ret0, ret1, ret2, ret3, ret4, ret5 3768 } 3769 3770 // ShouldCreateMissedLookup indicates an expected call of ShouldCreateMissedLookup. 3771 func (mr *MockNodeMockRecorder) ShouldCreateMissedLookup(arg0, arg1 interface{}) *gomock.Call { 3772 mr.mock.ctrl.T.Helper() 3773 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldCreateMissedLookup", reflect.TypeOf((*MockNode)(nil).ShouldCreateMissedLookup), arg0, arg1) 3774 } 3775 3776 // ShouldRetryOnDirRead mocks base method. 3777 func (m *MockNode) ShouldRetryOnDirRead(arg0 context.Context) bool { 3778 m.ctrl.T.Helper() 3779 ret := m.ctrl.Call(m, "ShouldRetryOnDirRead", arg0) 3780 ret0, _ := ret[0].(bool) 3781 return ret0 3782 } 3783 3784 // ShouldRetryOnDirRead indicates an expected call of ShouldRetryOnDirRead. 3785 func (mr *MockNodeMockRecorder) ShouldRetryOnDirRead(arg0 interface{}) *gomock.Call { 3786 mr.mock.ctrl.T.Helper() 3787 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldRetryOnDirRead", reflect.TypeOf((*MockNode)(nil).ShouldRetryOnDirRead), arg0) 3788 } 3789 3790 // Unwrap mocks base method. 3791 func (m *MockNode) Unwrap() Node { 3792 m.ctrl.T.Helper() 3793 ret := m.ctrl.Call(m, "Unwrap") 3794 ret0, _ := ret[0].(Node) 3795 return ret0 3796 } 3797 3798 // Unwrap indicates an expected call of Unwrap. 3799 func (mr *MockNodeMockRecorder) Unwrap() *gomock.Call { 3800 mr.mock.ctrl.T.Helper() 3801 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unwrap", reflect.TypeOf((*MockNode)(nil).Unwrap)) 3802 } 3803 3804 // WrapChild mocks base method. 3805 func (m *MockNode) WrapChild(arg0 Node) Node { 3806 m.ctrl.T.Helper() 3807 ret := m.ctrl.Call(m, "WrapChild", arg0) 3808 ret0, _ := ret[0].(Node) 3809 return ret0 3810 } 3811 3812 // WrapChild indicates an expected call of WrapChild. 3813 func (mr *MockNodeMockRecorder) WrapChild(arg0 interface{}) *gomock.Call { 3814 mr.mock.ctrl.T.Helper() 3815 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WrapChild", reflect.TypeOf((*MockNode)(nil).WrapChild), arg0) 3816 } 3817 3818 // MockNodeCache is a mock of NodeCache interface. 3819 type MockNodeCache struct { 3820 ctrl *gomock.Controller 3821 recorder *MockNodeCacheMockRecorder 3822 } 3823 3824 // MockNodeCacheMockRecorder is the mock recorder for MockNodeCache. 3825 type MockNodeCacheMockRecorder struct { 3826 mock *MockNodeCache 3827 } 3828 3829 // NewMockNodeCache creates a new mock instance. 3830 func NewMockNodeCache(ctrl *gomock.Controller) *MockNodeCache { 3831 mock := &MockNodeCache{ctrl: ctrl} 3832 mock.recorder = &MockNodeCacheMockRecorder{mock} 3833 return mock 3834 } 3835 3836 // EXPECT returns an object that allows the caller to indicate expected use. 3837 func (m *MockNodeCache) EXPECT() *MockNodeCacheMockRecorder { 3838 return m.recorder 3839 } 3840 3841 // AddRootWrapper mocks base method. 3842 func (m *MockNodeCache) AddRootWrapper(arg0 func(Node) Node) { 3843 m.ctrl.T.Helper() 3844 m.ctrl.Call(m, "AddRootWrapper", arg0) 3845 } 3846 3847 // AddRootWrapper indicates an expected call of AddRootWrapper. 3848 func (mr *MockNodeCacheMockRecorder) AddRootWrapper(arg0 interface{}) *gomock.Call { 3849 mr.mock.ctrl.T.Helper() 3850 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRootWrapper", reflect.TypeOf((*MockNodeCache)(nil).AddRootWrapper), arg0) 3851 } 3852 3853 // AllNodeChildren mocks base method. 3854 func (m *MockNodeCache) AllNodeChildren(arg0 Node) []Node { 3855 m.ctrl.T.Helper() 3856 ret := m.ctrl.Call(m, "AllNodeChildren", arg0) 3857 ret0, _ := ret[0].([]Node) 3858 return ret0 3859 } 3860 3861 // AllNodeChildren indicates an expected call of AllNodeChildren. 3862 func (mr *MockNodeCacheMockRecorder) AllNodeChildren(arg0 interface{}) *gomock.Call { 3863 mr.mock.ctrl.T.Helper() 3864 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllNodeChildren", reflect.TypeOf((*MockNodeCache)(nil).AllNodeChildren), arg0) 3865 } 3866 3867 // AllNodes mocks base method. 3868 func (m *MockNodeCache) AllNodes() []Node { 3869 m.ctrl.T.Helper() 3870 ret := m.ctrl.Call(m, "AllNodes") 3871 ret0, _ := ret[0].([]Node) 3872 return ret0 3873 } 3874 3875 // AllNodes indicates an expected call of AllNodes. 3876 func (mr *MockNodeCacheMockRecorder) AllNodes() *gomock.Call { 3877 mr.mock.ctrl.T.Helper() 3878 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllNodes", reflect.TypeOf((*MockNodeCache)(nil).AllNodes)) 3879 } 3880 3881 // Get mocks base method. 3882 func (m *MockNodeCache) Get(arg0 data.BlockRef) Node { 3883 m.ctrl.T.Helper() 3884 ret := m.ctrl.Call(m, "Get", arg0) 3885 ret0, _ := ret[0].(Node) 3886 return ret0 3887 } 3888 3889 // Get indicates an expected call of Get. 3890 func (mr *MockNodeCacheMockRecorder) Get(arg0 interface{}) *gomock.Call { 3891 mr.mock.ctrl.T.Helper() 3892 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNodeCache)(nil).Get), arg0) 3893 } 3894 3895 // GetOrCreate mocks base method. 3896 func (m *MockNodeCache) GetOrCreate(arg0 data.BlockPointer, arg1 data.PathPartString, arg2 Node, arg3 data.EntryType) (Node, error) { 3897 m.ctrl.T.Helper() 3898 ret := m.ctrl.Call(m, "GetOrCreate", arg0, arg1, arg2, arg3) 3899 ret0, _ := ret[0].(Node) 3900 ret1, _ := ret[1].(error) 3901 return ret0, ret1 3902 } 3903 3904 // GetOrCreate indicates an expected call of GetOrCreate. 3905 func (mr *MockNodeCacheMockRecorder) GetOrCreate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 3906 mr.mock.ctrl.T.Helper() 3907 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrCreate", reflect.TypeOf((*MockNodeCache)(nil).GetOrCreate), arg0, arg1, arg2, arg3) 3908 } 3909 3910 // IsUnlinked mocks base method. 3911 func (m *MockNodeCache) IsUnlinked(arg0 Node) bool { 3912 m.ctrl.T.Helper() 3913 ret := m.ctrl.Call(m, "IsUnlinked", arg0) 3914 ret0, _ := ret[0].(bool) 3915 return ret0 3916 } 3917 3918 // IsUnlinked indicates an expected call of IsUnlinked. 3919 func (mr *MockNodeCacheMockRecorder) IsUnlinked(arg0 interface{}) *gomock.Call { 3920 mr.mock.ctrl.T.Helper() 3921 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUnlinked", reflect.TypeOf((*MockNodeCache)(nil).IsUnlinked), arg0) 3922 } 3923 3924 // Move mocks base method. 3925 func (m *MockNodeCache) Move(arg0 data.BlockRef, arg1 Node, arg2 data.PathPartString) (func(), error) { 3926 m.ctrl.T.Helper() 3927 ret := m.ctrl.Call(m, "Move", arg0, arg1, arg2) 3928 ret0, _ := ret[0].(func()) 3929 ret1, _ := ret[1].(error) 3930 return ret0, ret1 3931 } 3932 3933 // Move indicates an expected call of Move. 3934 func (mr *MockNodeCacheMockRecorder) Move(arg0, arg1, arg2 interface{}) *gomock.Call { 3935 mr.mock.ctrl.T.Helper() 3936 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Move", reflect.TypeOf((*MockNodeCache)(nil).Move), arg0, arg1, arg2) 3937 } 3938 3939 // ObfuscatorMaker mocks base method. 3940 func (m *MockNodeCache) ObfuscatorMaker() func() data.Obfuscator { 3941 m.ctrl.T.Helper() 3942 ret := m.ctrl.Call(m, "ObfuscatorMaker") 3943 ret0, _ := ret[0].(func() data.Obfuscator) 3944 return ret0 3945 } 3946 3947 // ObfuscatorMaker indicates an expected call of ObfuscatorMaker. 3948 func (mr *MockNodeCacheMockRecorder) ObfuscatorMaker() *gomock.Call { 3949 mr.mock.ctrl.T.Helper() 3950 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObfuscatorMaker", reflect.TypeOf((*MockNodeCache)(nil).ObfuscatorMaker)) 3951 } 3952 3953 // PathFromNode mocks base method. 3954 func (m *MockNodeCache) PathFromNode(arg0 Node) data.Path { 3955 m.ctrl.T.Helper() 3956 ret := m.ctrl.Call(m, "PathFromNode", arg0) 3957 ret0, _ := ret[0].(data.Path) 3958 return ret0 3959 } 3960 3961 // PathFromNode indicates an expected call of PathFromNode. 3962 func (mr *MockNodeCacheMockRecorder) PathFromNode(arg0 interface{}) *gomock.Call { 3963 mr.mock.ctrl.T.Helper() 3964 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PathFromNode", reflect.TypeOf((*MockNodeCache)(nil).PathFromNode), arg0) 3965 } 3966 3967 // SetObfuscatorMaker mocks base method. 3968 func (m *MockNodeCache) SetObfuscatorMaker(arg0 func() data.Obfuscator) { 3969 m.ctrl.T.Helper() 3970 m.ctrl.Call(m, "SetObfuscatorMaker", arg0) 3971 } 3972 3973 // SetObfuscatorMaker indicates an expected call of SetObfuscatorMaker. 3974 func (mr *MockNodeCacheMockRecorder) SetObfuscatorMaker(arg0 interface{}) *gomock.Call { 3975 mr.mock.ctrl.T.Helper() 3976 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetObfuscatorMaker", reflect.TypeOf((*MockNodeCache)(nil).SetObfuscatorMaker), arg0) 3977 } 3978 3979 // Unlink mocks base method. 3980 func (m *MockNodeCache) Unlink(arg0 data.BlockRef, arg1 data.Path, arg2 data.DirEntry) func() { 3981 m.ctrl.T.Helper() 3982 ret := m.ctrl.Call(m, "Unlink", arg0, arg1, arg2) 3983 ret0, _ := ret[0].(func()) 3984 return ret0 3985 } 3986 3987 // Unlink indicates an expected call of Unlink. 3988 func (mr *MockNodeCacheMockRecorder) Unlink(arg0, arg1, arg2 interface{}) *gomock.Call { 3989 mr.mock.ctrl.T.Helper() 3990 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlink", reflect.TypeOf((*MockNodeCache)(nil).Unlink), arg0, arg1, arg2) 3991 } 3992 3993 // UnlinkedDirEntry mocks base method. 3994 func (m *MockNodeCache) UnlinkedDirEntry(arg0 Node) data.DirEntry { 3995 m.ctrl.T.Helper() 3996 ret := m.ctrl.Call(m, "UnlinkedDirEntry", arg0) 3997 ret0, _ := ret[0].(data.DirEntry) 3998 return ret0 3999 } 4000 4001 // UnlinkedDirEntry indicates an expected call of UnlinkedDirEntry. 4002 func (mr *MockNodeCacheMockRecorder) UnlinkedDirEntry(arg0 interface{}) *gomock.Call { 4003 mr.mock.ctrl.T.Helper() 4004 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnlinkedDirEntry", reflect.TypeOf((*MockNodeCache)(nil).UnlinkedDirEntry), arg0) 4005 } 4006 4007 // UpdatePointer mocks base method. 4008 func (m *MockNodeCache) UpdatePointer(arg0 data.BlockRef, arg1 data.BlockPointer) NodeID { 4009 m.ctrl.T.Helper() 4010 ret := m.ctrl.Call(m, "UpdatePointer", arg0, arg1) 4011 ret0, _ := ret[0].(NodeID) 4012 return ret0 4013 } 4014 4015 // UpdatePointer indicates an expected call of UpdatePointer. 4016 func (mr *MockNodeCacheMockRecorder) UpdatePointer(arg0, arg1 interface{}) *gomock.Call { 4017 mr.mock.ctrl.T.Helper() 4018 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePointer", reflect.TypeOf((*MockNodeCache)(nil).UpdatePointer), arg0, arg1) 4019 } 4020 4021 // UpdateUnlinkedDirEntry mocks base method. 4022 func (m *MockNodeCache) UpdateUnlinkedDirEntry(arg0 Node, arg1 data.DirEntry) { 4023 m.ctrl.T.Helper() 4024 m.ctrl.Call(m, "UpdateUnlinkedDirEntry", arg0, arg1) 4025 } 4026 4027 // UpdateUnlinkedDirEntry indicates an expected call of UpdateUnlinkedDirEntry. 4028 func (mr *MockNodeCacheMockRecorder) UpdateUnlinkedDirEntry(arg0, arg1 interface{}) *gomock.Call { 4029 mr.mock.ctrl.T.Helper() 4030 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUnlinkedDirEntry", reflect.TypeOf((*MockNodeCache)(nil).UpdateUnlinkedDirEntry), arg0, arg1) 4031 } 4032 4033 // MockNodeID is a mock of NodeID interface. 4034 type MockNodeID struct { 4035 ctrl *gomock.Controller 4036 recorder *MockNodeIDMockRecorder 4037 } 4038 4039 // MockNodeIDMockRecorder is the mock recorder for MockNodeID. 4040 type MockNodeIDMockRecorder struct { 4041 mock *MockNodeID 4042 } 4043 4044 // NewMockNodeID creates a new mock instance. 4045 func NewMockNodeID(ctrl *gomock.Controller) *MockNodeID { 4046 mock := &MockNodeID{ctrl: ctrl} 4047 mock.recorder = &MockNodeIDMockRecorder{mock} 4048 return mock 4049 } 4050 4051 // EXPECT returns an object that allows the caller to indicate expected use. 4052 func (m *MockNodeID) EXPECT() *MockNodeIDMockRecorder { 4053 return m.recorder 4054 } 4055 4056 // ParentID mocks base method. 4057 func (m *MockNodeID) ParentID() NodeID { 4058 m.ctrl.T.Helper() 4059 ret := m.ctrl.Call(m, "ParentID") 4060 ret0, _ := ret[0].(NodeID) 4061 return ret0 4062 } 4063 4064 // ParentID indicates an expected call of ParentID. 4065 func (mr *MockNodeIDMockRecorder) ParentID() *gomock.Call { 4066 mr.mock.ctrl.T.Helper() 4067 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParentID", reflect.TypeOf((*MockNodeID)(nil).ParentID)) 4068 } 4069 4070 // MockNotifier is a mock of Notifier interface. 4071 type MockNotifier struct { 4072 ctrl *gomock.Controller 4073 recorder *MockNotifierMockRecorder 4074 } 4075 4076 // MockNotifierMockRecorder is the mock recorder for MockNotifier. 4077 type MockNotifierMockRecorder struct { 4078 mock *MockNotifier 4079 } 4080 4081 // NewMockNotifier creates a new mock instance. 4082 func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier { 4083 mock := &MockNotifier{ctrl: ctrl} 4084 mock.recorder = &MockNotifierMockRecorder{mock} 4085 return mock 4086 } 4087 4088 // EXPECT returns an object that allows the caller to indicate expected use. 4089 func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder { 4090 return m.recorder 4091 } 4092 4093 // RegisterForChanges mocks base method. 4094 func (m *MockNotifier) RegisterForChanges(arg0 []data.FolderBranch, arg1 Observer) error { 4095 m.ctrl.T.Helper() 4096 ret := m.ctrl.Call(m, "RegisterForChanges", arg0, arg1) 4097 ret0, _ := ret[0].(error) 4098 return ret0 4099 } 4100 4101 // RegisterForChanges indicates an expected call of RegisterForChanges. 4102 func (mr *MockNotifierMockRecorder) RegisterForChanges(arg0, arg1 interface{}) *gomock.Call { 4103 mr.mock.ctrl.T.Helper() 4104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForChanges", reflect.TypeOf((*MockNotifier)(nil).RegisterForChanges), arg0, arg1) 4105 } 4106 4107 // RegisterForSyncedTlfs mocks base method. 4108 func (m *MockNotifier) RegisterForSyncedTlfs(arg0 SyncedTlfObserver) error { 4109 m.ctrl.T.Helper() 4110 ret := m.ctrl.Call(m, "RegisterForSyncedTlfs", arg0) 4111 ret0, _ := ret[0].(error) 4112 return ret0 4113 } 4114 4115 // RegisterForSyncedTlfs indicates an expected call of RegisterForSyncedTlfs. 4116 func (mr *MockNotifierMockRecorder) RegisterForSyncedTlfs(arg0 interface{}) *gomock.Call { 4117 mr.mock.ctrl.T.Helper() 4118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterForSyncedTlfs", reflect.TypeOf((*MockNotifier)(nil).RegisterForSyncedTlfs), arg0) 4119 } 4120 4121 // UnregisterFromChanges mocks base method. 4122 func (m *MockNotifier) UnregisterFromChanges(arg0 []data.FolderBranch, arg1 Observer) error { 4123 m.ctrl.T.Helper() 4124 ret := m.ctrl.Call(m, "UnregisterFromChanges", arg0, arg1) 4125 ret0, _ := ret[0].(error) 4126 return ret0 4127 } 4128 4129 // UnregisterFromChanges indicates an expected call of UnregisterFromChanges. 4130 func (mr *MockNotifierMockRecorder) UnregisterFromChanges(arg0, arg1 interface{}) *gomock.Call { 4131 mr.mock.ctrl.T.Helper() 4132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterFromChanges", reflect.TypeOf((*MockNotifier)(nil).UnregisterFromChanges), arg0, arg1) 4133 } 4134 4135 // UnregisterFromSyncedTlfs mocks base method. 4136 func (m *MockNotifier) UnregisterFromSyncedTlfs(arg0 SyncedTlfObserver) error { 4137 m.ctrl.T.Helper() 4138 ret := m.ctrl.Call(m, "UnregisterFromSyncedTlfs", arg0) 4139 ret0, _ := ret[0].(error) 4140 return ret0 4141 } 4142 4143 // UnregisterFromSyncedTlfs indicates an expected call of UnregisterFromSyncedTlfs. 4144 func (mr *MockNotifierMockRecorder) UnregisterFromSyncedTlfs(arg0 interface{}) *gomock.Call { 4145 mr.mock.ctrl.T.Helper() 4146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterFromSyncedTlfs", reflect.TypeOf((*MockNotifier)(nil).UnregisterFromSyncedTlfs), arg0) 4147 } 4148 4149 // MockRekeyQueue is a mock of RekeyQueue interface. 4150 type MockRekeyQueue struct { 4151 ctrl *gomock.Controller 4152 recorder *MockRekeyQueueMockRecorder 4153 } 4154 4155 // MockRekeyQueueMockRecorder is the mock recorder for MockRekeyQueue. 4156 type MockRekeyQueueMockRecorder struct { 4157 mock *MockRekeyQueue 4158 } 4159 4160 // NewMockRekeyQueue creates a new mock instance. 4161 func NewMockRekeyQueue(ctrl *gomock.Controller) *MockRekeyQueue { 4162 mock := &MockRekeyQueue{ctrl: ctrl} 4163 mock.recorder = &MockRekeyQueueMockRecorder{mock} 4164 return mock 4165 } 4166 4167 // EXPECT returns an object that allows the caller to indicate expected use. 4168 func (m *MockRekeyQueue) EXPECT() *MockRekeyQueueMockRecorder { 4169 return m.recorder 4170 } 4171 4172 // Enqueue mocks base method. 4173 func (m *MockRekeyQueue) Enqueue(arg0 tlf.ID) { 4174 m.ctrl.T.Helper() 4175 m.ctrl.Call(m, "Enqueue", arg0) 4176 } 4177 4178 // Enqueue indicates an expected call of Enqueue. 4179 func (mr *MockRekeyQueueMockRecorder) Enqueue(arg0 interface{}) *gomock.Call { 4180 mr.mock.ctrl.T.Helper() 4181 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enqueue", reflect.TypeOf((*MockRekeyQueue)(nil).Enqueue), arg0) 4182 } 4183 4184 // IsRekeyPending mocks base method. 4185 func (m *MockRekeyQueue) IsRekeyPending(arg0 tlf.ID) bool { 4186 m.ctrl.T.Helper() 4187 ret := m.ctrl.Call(m, "IsRekeyPending", arg0) 4188 ret0, _ := ret[0].(bool) 4189 return ret0 4190 } 4191 4192 // IsRekeyPending indicates an expected call of IsRekeyPending. 4193 func (mr *MockRekeyQueueMockRecorder) IsRekeyPending(arg0 interface{}) *gomock.Call { 4194 mr.mock.ctrl.T.Helper() 4195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRekeyPending", reflect.TypeOf((*MockRekeyQueue)(nil).IsRekeyPending), arg0) 4196 } 4197 4198 // Shutdown mocks base method. 4199 func (m *MockRekeyQueue) Shutdown() { 4200 m.ctrl.T.Helper() 4201 m.ctrl.Call(m, "Shutdown") 4202 } 4203 4204 // Shutdown indicates an expected call of Shutdown. 4205 func (mr *MockRekeyQueueMockRecorder) Shutdown() *gomock.Call { 4206 mr.mock.ctrl.T.Helper() 4207 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockRekeyQueue)(nil).Shutdown)) 4208 } 4209 4210 // MockReporter is a mock of Reporter interface. 4211 type MockReporter struct { 4212 ctrl *gomock.Controller 4213 recorder *MockReporterMockRecorder 4214 } 4215 4216 // MockReporterMockRecorder is the mock recorder for MockReporter. 4217 type MockReporterMockRecorder struct { 4218 mock *MockReporter 4219 } 4220 4221 // NewMockReporter creates a new mock instance. 4222 func NewMockReporter(ctrl *gomock.Controller) *MockReporter { 4223 mock := &MockReporter{ctrl: ctrl} 4224 mock.recorder = &MockReporterMockRecorder{mock} 4225 return mock 4226 } 4227 4228 // EXPECT returns an object that allows the caller to indicate expected use. 4229 func (m *MockReporter) EXPECT() *MockReporterMockRecorder { 4230 return m.recorder 4231 } 4232 4233 // AllKnownErrors mocks base method. 4234 func (m *MockReporter) AllKnownErrors() []ReportedError { 4235 m.ctrl.T.Helper() 4236 ret := m.ctrl.Call(m, "AllKnownErrors") 4237 ret0, _ := ret[0].([]ReportedError) 4238 return ret0 4239 } 4240 4241 // AllKnownErrors indicates an expected call of AllKnownErrors. 4242 func (mr *MockReporterMockRecorder) AllKnownErrors() *gomock.Call { 4243 mr.mock.ctrl.T.Helper() 4244 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllKnownErrors", reflect.TypeOf((*MockReporter)(nil).AllKnownErrors)) 4245 } 4246 4247 // Notify mocks base method. 4248 func (m *MockReporter) Notify(arg0 context.Context, arg1 *keybase1.FSNotification) { 4249 m.ctrl.T.Helper() 4250 m.ctrl.Call(m, "Notify", arg0, arg1) 4251 } 4252 4253 // Notify indicates an expected call of Notify. 4254 func (mr *MockReporterMockRecorder) Notify(arg0, arg1 interface{}) *gomock.Call { 4255 mr.mock.ctrl.T.Helper() 4256 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockReporter)(nil).Notify), arg0, arg1) 4257 } 4258 4259 // NotifyFavoritesChanged mocks base method. 4260 func (m *MockReporter) NotifyFavoritesChanged(arg0 context.Context) { 4261 m.ctrl.T.Helper() 4262 m.ctrl.Call(m, "NotifyFavoritesChanged", arg0) 4263 } 4264 4265 // NotifyFavoritesChanged indicates an expected call of NotifyFavoritesChanged. 4266 func (mr *MockReporterMockRecorder) NotifyFavoritesChanged(arg0 interface{}) *gomock.Call { 4267 mr.mock.ctrl.T.Helper() 4268 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyFavoritesChanged", reflect.TypeOf((*MockReporter)(nil).NotifyFavoritesChanged), arg0) 4269 } 4270 4271 // NotifyOverallSyncStatus mocks base method. 4272 func (m *MockReporter) NotifyOverallSyncStatus(arg0 context.Context, arg1 keybase1.FolderSyncStatus) { 4273 m.ctrl.T.Helper() 4274 m.ctrl.Call(m, "NotifyOverallSyncStatus", arg0, arg1) 4275 } 4276 4277 // NotifyOverallSyncStatus indicates an expected call of NotifyOverallSyncStatus. 4278 func (mr *MockReporterMockRecorder) NotifyOverallSyncStatus(arg0, arg1 interface{}) *gomock.Call { 4279 mr.mock.ctrl.T.Helper() 4280 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyOverallSyncStatus", reflect.TypeOf((*MockReporter)(nil).NotifyOverallSyncStatus), arg0, arg1) 4281 } 4282 4283 // NotifyPathUpdated mocks base method. 4284 func (m *MockReporter) NotifyPathUpdated(arg0 context.Context, arg1 string) { 4285 m.ctrl.T.Helper() 4286 m.ctrl.Call(m, "NotifyPathUpdated", arg0, arg1) 4287 } 4288 4289 // NotifyPathUpdated indicates an expected call of NotifyPathUpdated. 4290 func (mr *MockReporterMockRecorder) NotifyPathUpdated(arg0, arg1 interface{}) *gomock.Call { 4291 mr.mock.ctrl.T.Helper() 4292 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyPathUpdated", reflect.TypeOf((*MockReporter)(nil).NotifyPathUpdated), arg0, arg1) 4293 } 4294 4295 // NotifySyncStatus mocks base method. 4296 func (m *MockReporter) NotifySyncStatus(arg0 context.Context, arg1 *keybase1.FSPathSyncStatus) { 4297 m.ctrl.T.Helper() 4298 m.ctrl.Call(m, "NotifySyncStatus", arg0, arg1) 4299 } 4300 4301 // NotifySyncStatus indicates an expected call of NotifySyncStatus. 4302 func (mr *MockReporterMockRecorder) NotifySyncStatus(arg0, arg1 interface{}) *gomock.Call { 4303 mr.mock.ctrl.T.Helper() 4304 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifySyncStatus", reflect.TypeOf((*MockReporter)(nil).NotifySyncStatus), arg0, arg1) 4305 } 4306 4307 // OnlineStatusChanged mocks base method. 4308 func (m *MockReporter) OnlineStatusChanged(arg0 context.Context, arg1 bool) { 4309 m.ctrl.T.Helper() 4310 m.ctrl.Call(m, "OnlineStatusChanged", arg0, arg1) 4311 } 4312 4313 // OnlineStatusChanged indicates an expected call of OnlineStatusChanged. 4314 func (mr *MockReporterMockRecorder) OnlineStatusChanged(arg0, arg1 interface{}) *gomock.Call { 4315 mr.mock.ctrl.T.Helper() 4316 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlineStatusChanged", reflect.TypeOf((*MockReporter)(nil).OnlineStatusChanged), arg0, arg1) 4317 } 4318 4319 // ReportErr mocks base method. 4320 func (m *MockReporter) ReportErr(arg0 context.Context, arg1 tlf.CanonicalName, arg2 tlf.Type, arg3 ErrorModeType, arg4 error) { 4321 m.ctrl.T.Helper() 4322 m.ctrl.Call(m, "ReportErr", arg0, arg1, arg2, arg3, arg4) 4323 } 4324 4325 // ReportErr indicates an expected call of ReportErr. 4326 func (mr *MockReporterMockRecorder) ReportErr(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 4327 mr.mock.ctrl.T.Helper() 4328 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportErr", reflect.TypeOf((*MockReporter)(nil).ReportErr), arg0, arg1, arg2, arg3, arg4) 4329 } 4330 4331 // Shutdown mocks base method. 4332 func (m *MockReporter) Shutdown() { 4333 m.ctrl.T.Helper() 4334 m.ctrl.Call(m, "Shutdown") 4335 } 4336 4337 // Shutdown indicates an expected call of Shutdown. 4338 func (mr *MockReporterMockRecorder) Shutdown() *gomock.Call { 4339 mr.mock.ctrl.T.Helper() 4340 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockReporter)(nil).Shutdown)) 4341 } 4342 4343 // MockSubscriptionNotifier is a mock of SubscriptionNotifier interface. 4344 type MockSubscriptionNotifier struct { 4345 ctrl *gomock.Controller 4346 recorder *MockSubscriptionNotifierMockRecorder 4347 } 4348 4349 // MockSubscriptionNotifierMockRecorder is the mock recorder for MockSubscriptionNotifier. 4350 type MockSubscriptionNotifierMockRecorder struct { 4351 mock *MockSubscriptionNotifier 4352 } 4353 4354 // NewMockSubscriptionNotifier creates a new mock instance. 4355 func NewMockSubscriptionNotifier(ctrl *gomock.Controller) *MockSubscriptionNotifier { 4356 mock := &MockSubscriptionNotifier{ctrl: ctrl} 4357 mock.recorder = &MockSubscriptionNotifierMockRecorder{mock} 4358 return mock 4359 } 4360 4361 // EXPECT returns an object that allows the caller to indicate expected use. 4362 func (m *MockSubscriptionNotifier) EXPECT() *MockSubscriptionNotifierMockRecorder { 4363 return m.recorder 4364 } 4365 4366 // OnNonPathChange mocks base method. 4367 func (m *MockSubscriptionNotifier) OnNonPathChange(arg0 SubscriptionManagerClientID, arg1 []SubscriptionID, arg2 keybase1.SubscriptionTopic) { 4368 m.ctrl.T.Helper() 4369 m.ctrl.Call(m, "OnNonPathChange", arg0, arg1, arg2) 4370 } 4371 4372 // OnNonPathChange indicates an expected call of OnNonPathChange. 4373 func (mr *MockSubscriptionNotifierMockRecorder) OnNonPathChange(arg0, arg1, arg2 interface{}) *gomock.Call { 4374 mr.mock.ctrl.T.Helper() 4375 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNonPathChange", reflect.TypeOf((*MockSubscriptionNotifier)(nil).OnNonPathChange), arg0, arg1, arg2) 4376 } 4377 4378 // OnPathChange mocks base method. 4379 func (m *MockSubscriptionNotifier) OnPathChange(arg0 SubscriptionManagerClientID, arg1 []SubscriptionID, arg2 string, arg3 []keybase1.PathSubscriptionTopic) { 4380 m.ctrl.T.Helper() 4381 m.ctrl.Call(m, "OnPathChange", arg0, arg1, arg2, arg3) 4382 } 4383 4384 // OnPathChange indicates an expected call of OnPathChange. 4385 func (mr *MockSubscriptionNotifierMockRecorder) OnPathChange(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 4386 mr.mock.ctrl.T.Helper() 4387 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPathChange", reflect.TypeOf((*MockSubscriptionNotifier)(nil).OnPathChange), arg0, arg1, arg2, arg3) 4388 } 4389 4390 // MockSubscriptionManagerPublisher is a mock of SubscriptionManagerPublisher interface. 4391 type MockSubscriptionManagerPublisher struct { 4392 ctrl *gomock.Controller 4393 recorder *MockSubscriptionManagerPublisherMockRecorder 4394 } 4395 4396 // MockSubscriptionManagerPublisherMockRecorder is the mock recorder for MockSubscriptionManagerPublisher. 4397 type MockSubscriptionManagerPublisherMockRecorder struct { 4398 mock *MockSubscriptionManagerPublisher 4399 } 4400 4401 // NewMockSubscriptionManagerPublisher creates a new mock instance. 4402 func NewMockSubscriptionManagerPublisher(ctrl *gomock.Controller) *MockSubscriptionManagerPublisher { 4403 mock := &MockSubscriptionManagerPublisher{ctrl: ctrl} 4404 mock.recorder = &MockSubscriptionManagerPublisherMockRecorder{mock} 4405 return mock 4406 } 4407 4408 // EXPECT returns an object that allows the caller to indicate expected use. 4409 func (m *MockSubscriptionManagerPublisher) EXPECT() *MockSubscriptionManagerPublisherMockRecorder { 4410 return m.recorder 4411 } 4412 4413 // PublishChange mocks base method. 4414 func (m *MockSubscriptionManagerPublisher) PublishChange(arg0 keybase1.SubscriptionTopic) { 4415 m.ctrl.T.Helper() 4416 m.ctrl.Call(m, "PublishChange", arg0) 4417 } 4418 4419 // PublishChange indicates an expected call of PublishChange. 4420 func (mr *MockSubscriptionManagerPublisherMockRecorder) PublishChange(arg0 interface{}) *gomock.Call { 4421 mr.mock.ctrl.T.Helper() 4422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishChange", reflect.TypeOf((*MockSubscriptionManagerPublisher)(nil).PublishChange), arg0) 4423 }