github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/libkbfs/data_mocks_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/keybase/client/go/kbfs/data (interfaces: BlockCache,BlockSplitter,BlockWithPtrs,DirtyBlockCache)
     3  
     4  // Package libkbfs is a generated GoMock package.
     5  package libkbfs
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	data "github.com/keybase/client/go/kbfs/data"
    13  	kbfsblock "github.com/keybase/client/go/kbfs/kbfsblock"
    14  	tlf "github.com/keybase/client/go/kbfs/tlf"
    15  )
    16  
    17  // MockBlockCache is a mock of BlockCache interface.
    18  type MockBlockCache struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockBlockCacheMockRecorder
    21  }
    22  
    23  // MockBlockCacheMockRecorder is the mock recorder for MockBlockCache.
    24  type MockBlockCacheMockRecorder struct {
    25  	mock *MockBlockCache
    26  }
    27  
    28  // NewMockBlockCache creates a new mock instance.
    29  func NewMockBlockCache(ctrl *gomock.Controller) *MockBlockCache {
    30  	mock := &MockBlockCache{ctrl: ctrl}
    31  	mock.recorder = &MockBlockCacheMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockBlockCache) EXPECT() *MockBlockCacheMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // CheckForKnownPtr mocks base method.
    41  func (m *MockBlockCache) CheckForKnownPtr(arg0 tlf.ID, arg1 *data.FileBlock, arg2 data.BlockCacheHashBehavior) (data.BlockPointer, error) {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "CheckForKnownPtr", arg0, arg1, arg2)
    44  	ret0, _ := ret[0].(data.BlockPointer)
    45  	ret1, _ := ret[1].(error)
    46  	return ret0, ret1
    47  }
    48  
    49  // CheckForKnownPtr indicates an expected call of CheckForKnownPtr.
    50  func (mr *MockBlockCacheMockRecorder) CheckForKnownPtr(arg0, arg1, arg2 interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckForKnownPtr", reflect.TypeOf((*MockBlockCache)(nil).CheckForKnownPtr), arg0, arg1, arg2)
    53  }
    54  
    55  // DeleteKnownPtr mocks base method.
    56  func (m *MockBlockCache) DeleteKnownPtr(arg0 tlf.ID, arg1 *data.FileBlock) error {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "DeleteKnownPtr", arg0, arg1)
    59  	ret0, _ := ret[0].(error)
    60  	return ret0
    61  }
    62  
    63  // DeleteKnownPtr indicates an expected call of DeleteKnownPtr.
    64  func (mr *MockBlockCacheMockRecorder) DeleteKnownPtr(arg0, arg1 interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKnownPtr", reflect.TypeOf((*MockBlockCache)(nil).DeleteKnownPtr), arg0, arg1)
    67  }
    68  
    69  // DeletePermanent mocks base method.
    70  func (m *MockBlockCache) DeletePermanent(arg0 kbfsblock.ID) error {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "DeletePermanent", arg0)
    73  	ret0, _ := ret[0].(error)
    74  	return ret0
    75  }
    76  
    77  // DeletePermanent indicates an expected call of DeletePermanent.
    78  func (mr *MockBlockCacheMockRecorder) DeletePermanent(arg0 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePermanent", reflect.TypeOf((*MockBlockCache)(nil).DeletePermanent), arg0)
    81  }
    82  
    83  // DeleteTransient mocks base method.
    84  func (m *MockBlockCache) DeleteTransient(arg0 kbfsblock.ID, arg1 tlf.ID) error {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "DeleteTransient", arg0, arg1)
    87  	ret0, _ := ret[0].(error)
    88  	return ret0
    89  }
    90  
    91  // DeleteTransient indicates an expected call of DeleteTransient.
    92  func (mr *MockBlockCacheMockRecorder) DeleteTransient(arg0, arg1 interface{}) *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTransient", reflect.TypeOf((*MockBlockCache)(nil).DeleteTransient), arg0, arg1)
    95  }
    96  
    97  // Get mocks base method.
    98  func (m *MockBlockCache) Get(arg0 data.BlockPointer) (data.Block, error) {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "Get", arg0)
   101  	ret0, _ := ret[0].(data.Block)
   102  	ret1, _ := ret[1].(error)
   103  	return ret0, ret1
   104  }
   105  
   106  // Get indicates an expected call of Get.
   107  func (mr *MockBlockCacheMockRecorder) Get(arg0 interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockBlockCache)(nil).Get), arg0)
   110  }
   111  
   112  // GetCleanBytesCapacity mocks base method.
   113  func (m *MockBlockCache) GetCleanBytesCapacity() uint64 {
   114  	m.ctrl.T.Helper()
   115  	ret := m.ctrl.Call(m, "GetCleanBytesCapacity")
   116  	ret0, _ := ret[0].(uint64)
   117  	return ret0
   118  }
   119  
   120  // GetCleanBytesCapacity indicates an expected call of GetCleanBytesCapacity.
   121  func (mr *MockBlockCacheMockRecorder) GetCleanBytesCapacity() *gomock.Call {
   122  	mr.mock.ctrl.T.Helper()
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCleanBytesCapacity", reflect.TypeOf((*MockBlockCache)(nil).GetCleanBytesCapacity))
   124  }
   125  
   126  // GetWithLifetime mocks base method.
   127  func (m *MockBlockCache) GetWithLifetime(arg0 data.BlockPointer) (data.Block, data.BlockCacheLifetime, error) {
   128  	m.ctrl.T.Helper()
   129  	ret := m.ctrl.Call(m, "GetWithLifetime", arg0)
   130  	ret0, _ := ret[0].(data.Block)
   131  	ret1, _ := ret[1].(data.BlockCacheLifetime)
   132  	ret2, _ := ret[2].(error)
   133  	return ret0, ret1, ret2
   134  }
   135  
   136  // GetWithLifetime indicates an expected call of GetWithLifetime.
   137  func (mr *MockBlockCacheMockRecorder) GetWithLifetime(arg0 interface{}) *gomock.Call {
   138  	mr.mock.ctrl.T.Helper()
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWithLifetime", reflect.TypeOf((*MockBlockCache)(nil).GetWithLifetime), arg0)
   140  }
   141  
   142  // Put mocks base method.
   143  func (m *MockBlockCache) Put(arg0 data.BlockPointer, arg1 tlf.ID, arg2 data.Block, arg3 data.BlockCacheLifetime, arg4 data.BlockCacheHashBehavior) error {
   144  	m.ctrl.T.Helper()
   145  	ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4)
   146  	ret0, _ := ret[0].(error)
   147  	return ret0
   148  }
   149  
   150  // Put indicates an expected call of Put.
   151  func (mr *MockBlockCacheMockRecorder) Put(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   152  	mr.mock.ctrl.T.Helper()
   153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockBlockCache)(nil).Put), arg0, arg1, arg2, arg3, arg4)
   154  }
   155  
   156  // SetCleanBytesCapacity mocks base method.
   157  func (m *MockBlockCache) SetCleanBytesCapacity(arg0 uint64) {
   158  	m.ctrl.T.Helper()
   159  	m.ctrl.Call(m, "SetCleanBytesCapacity", arg0)
   160  }
   161  
   162  // SetCleanBytesCapacity indicates an expected call of SetCleanBytesCapacity.
   163  func (mr *MockBlockCacheMockRecorder) SetCleanBytesCapacity(arg0 interface{}) *gomock.Call {
   164  	mr.mock.ctrl.T.Helper()
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCleanBytesCapacity", reflect.TypeOf((*MockBlockCache)(nil).SetCleanBytesCapacity), arg0)
   166  }
   167  
   168  // MockBlockSplitter is a mock of BlockSplitter interface.
   169  type MockBlockSplitter struct {
   170  	ctrl     *gomock.Controller
   171  	recorder *MockBlockSplitterMockRecorder
   172  }
   173  
   174  // MockBlockSplitterMockRecorder is the mock recorder for MockBlockSplitter.
   175  type MockBlockSplitterMockRecorder struct {
   176  	mock *MockBlockSplitter
   177  }
   178  
   179  // NewMockBlockSplitter creates a new mock instance.
   180  func NewMockBlockSplitter(ctrl *gomock.Controller) *MockBlockSplitter {
   181  	mock := &MockBlockSplitter{ctrl: ctrl}
   182  	mock.recorder = &MockBlockSplitterMockRecorder{mock}
   183  	return mock
   184  }
   185  
   186  // EXPECT returns an object that allows the caller to indicate expected use.
   187  func (m *MockBlockSplitter) EXPECT() *MockBlockSplitterMockRecorder {
   188  	return m.recorder
   189  }
   190  
   191  // CheckSplit mocks base method.
   192  func (m *MockBlockSplitter) CheckSplit(arg0 *data.FileBlock) int64 {
   193  	m.ctrl.T.Helper()
   194  	ret := m.ctrl.Call(m, "CheckSplit", arg0)
   195  	ret0, _ := ret[0].(int64)
   196  	return ret0
   197  }
   198  
   199  // CheckSplit indicates an expected call of CheckSplit.
   200  func (mr *MockBlockSplitterMockRecorder) CheckSplit(arg0 interface{}) *gomock.Call {
   201  	mr.mock.ctrl.T.Helper()
   202  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSplit", reflect.TypeOf((*MockBlockSplitter)(nil).CheckSplit), arg0)
   203  }
   204  
   205  // CopyUntilSplit mocks base method.
   206  func (m *MockBlockSplitter) CopyUntilSplit(arg0 *data.FileBlock, arg1 bool, arg2 []byte, arg3 int64) int64 {
   207  	m.ctrl.T.Helper()
   208  	ret := m.ctrl.Call(m, "CopyUntilSplit", arg0, arg1, arg2, arg3)
   209  	ret0, _ := ret[0].(int64)
   210  	return ret0
   211  }
   212  
   213  // CopyUntilSplit indicates an expected call of CopyUntilSplit.
   214  func (mr *MockBlockSplitterMockRecorder) CopyUntilSplit(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   215  	mr.mock.ctrl.T.Helper()
   216  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyUntilSplit", reflect.TypeOf((*MockBlockSplitter)(nil).CopyUntilSplit), arg0, arg1, arg2, arg3)
   217  }
   218  
   219  // MaxPtrsPerBlock mocks base method.
   220  func (m *MockBlockSplitter) MaxPtrsPerBlock() int {
   221  	m.ctrl.T.Helper()
   222  	ret := m.ctrl.Call(m, "MaxPtrsPerBlock")
   223  	ret0, _ := ret[0].(int)
   224  	return ret0
   225  }
   226  
   227  // MaxPtrsPerBlock indicates an expected call of MaxPtrsPerBlock.
   228  func (mr *MockBlockSplitterMockRecorder) MaxPtrsPerBlock() *gomock.Call {
   229  	mr.mock.ctrl.T.Helper()
   230  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxPtrsPerBlock", reflect.TypeOf((*MockBlockSplitter)(nil).MaxPtrsPerBlock))
   231  }
   232  
   233  // ShouldEmbedData mocks base method.
   234  func (m *MockBlockSplitter) ShouldEmbedData(arg0 uint64) bool {
   235  	m.ctrl.T.Helper()
   236  	ret := m.ctrl.Call(m, "ShouldEmbedData", arg0)
   237  	ret0, _ := ret[0].(bool)
   238  	return ret0
   239  }
   240  
   241  // ShouldEmbedData indicates an expected call of ShouldEmbedData.
   242  func (mr *MockBlockSplitterMockRecorder) ShouldEmbedData(arg0 interface{}) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldEmbedData", reflect.TypeOf((*MockBlockSplitter)(nil).ShouldEmbedData), arg0)
   245  }
   246  
   247  // SplitDirIfNeeded mocks base method.
   248  func (m *MockBlockSplitter) SplitDirIfNeeded(arg0 *data.DirBlock) ([]*data.DirBlock, *data.StringOffset) {
   249  	m.ctrl.T.Helper()
   250  	ret := m.ctrl.Call(m, "SplitDirIfNeeded", arg0)
   251  	ret0, _ := ret[0].([]*data.DirBlock)
   252  	ret1, _ := ret[1].(*data.StringOffset)
   253  	return ret0, ret1
   254  }
   255  
   256  // SplitDirIfNeeded indicates an expected call of SplitDirIfNeeded.
   257  func (mr *MockBlockSplitterMockRecorder) SplitDirIfNeeded(arg0 interface{}) *gomock.Call {
   258  	mr.mock.ctrl.T.Helper()
   259  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SplitDirIfNeeded", reflect.TypeOf((*MockBlockSplitter)(nil).SplitDirIfNeeded), arg0)
   260  }
   261  
   262  // MockBlockWithPtrs is a mock of BlockWithPtrs interface.
   263  type MockBlockWithPtrs struct {
   264  	ctrl     *gomock.Controller
   265  	recorder *MockBlockWithPtrsMockRecorder
   266  }
   267  
   268  // MockBlockWithPtrsMockRecorder is the mock recorder for MockBlockWithPtrs.
   269  type MockBlockWithPtrsMockRecorder struct {
   270  	mock *MockBlockWithPtrs
   271  }
   272  
   273  // NewMockBlockWithPtrs creates a new mock instance.
   274  func NewMockBlockWithPtrs(ctrl *gomock.Controller) *MockBlockWithPtrs {
   275  	mock := &MockBlockWithPtrs{ctrl: ctrl}
   276  	mock.recorder = &MockBlockWithPtrsMockRecorder{mock}
   277  	return mock
   278  }
   279  
   280  // EXPECT returns an object that allows the caller to indicate expected use.
   281  func (m *MockBlockWithPtrs) EXPECT() *MockBlockWithPtrsMockRecorder {
   282  	return m.recorder
   283  }
   284  
   285  // AppendNewIndirectPtr mocks base method.
   286  func (m *MockBlockWithPtrs) AppendNewIndirectPtr(arg0 data.BlockPointer, arg1 data.Offset) {
   287  	m.ctrl.T.Helper()
   288  	m.ctrl.Call(m, "AppendNewIndirectPtr", arg0, arg1)
   289  }
   290  
   291  // AppendNewIndirectPtr indicates an expected call of AppendNewIndirectPtr.
   292  func (mr *MockBlockWithPtrsMockRecorder) AppendNewIndirectPtr(arg0, arg1 interface{}) *gomock.Call {
   293  	mr.mock.ctrl.T.Helper()
   294  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendNewIndirectPtr", reflect.TypeOf((*MockBlockWithPtrs)(nil).AppendNewIndirectPtr), arg0, arg1)
   295  }
   296  
   297  // BytesCanBeDirtied mocks base method.
   298  func (m *MockBlockWithPtrs) BytesCanBeDirtied() int64 {
   299  	m.ctrl.T.Helper()
   300  	ret := m.ctrl.Call(m, "BytesCanBeDirtied")
   301  	ret0, _ := ret[0].(int64)
   302  	return ret0
   303  }
   304  
   305  // BytesCanBeDirtied indicates an expected call of BytesCanBeDirtied.
   306  func (mr *MockBlockWithPtrsMockRecorder) BytesCanBeDirtied() *gomock.Call {
   307  	mr.mock.ctrl.T.Helper()
   308  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCanBeDirtied", reflect.TypeOf((*MockBlockWithPtrs)(nil).BytesCanBeDirtied))
   309  }
   310  
   311  // ClearIndirectPtrSize mocks base method.
   312  func (m *MockBlockWithPtrs) ClearIndirectPtrSize(arg0 int) {
   313  	m.ctrl.T.Helper()
   314  	m.ctrl.Call(m, "ClearIndirectPtrSize", arg0)
   315  }
   316  
   317  // ClearIndirectPtrSize indicates an expected call of ClearIndirectPtrSize.
   318  func (mr *MockBlockWithPtrsMockRecorder) ClearIndirectPtrSize(arg0 interface{}) *gomock.Call {
   319  	mr.mock.ctrl.T.Helper()
   320  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearIndirectPtrSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).ClearIndirectPtrSize), arg0)
   321  }
   322  
   323  // DataVersion mocks base method.
   324  func (m *MockBlockWithPtrs) DataVersion() data.Ver {
   325  	m.ctrl.T.Helper()
   326  	ret := m.ctrl.Call(m, "DataVersion")
   327  	ret0, _ := ret[0].(data.Ver)
   328  	return ret0
   329  }
   330  
   331  // DataVersion indicates an expected call of DataVersion.
   332  func (mr *MockBlockWithPtrsMockRecorder) DataVersion() *gomock.Call {
   333  	mr.mock.ctrl.T.Helper()
   334  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DataVersion", reflect.TypeOf((*MockBlockWithPtrs)(nil).DataVersion))
   335  }
   336  
   337  // FirstOffset mocks base method.
   338  func (m *MockBlockWithPtrs) FirstOffset() data.Offset {
   339  	m.ctrl.T.Helper()
   340  	ret := m.ctrl.Call(m, "FirstOffset")
   341  	ret0, _ := ret[0].(data.Offset)
   342  	return ret0
   343  }
   344  
   345  // FirstOffset indicates an expected call of FirstOffset.
   346  func (mr *MockBlockWithPtrsMockRecorder) FirstOffset() *gomock.Call {
   347  	mr.mock.ctrl.T.Helper()
   348  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FirstOffset", reflect.TypeOf((*MockBlockWithPtrs)(nil).FirstOffset))
   349  }
   350  
   351  // GetEncodedSize mocks base method.
   352  func (m *MockBlockWithPtrs) GetEncodedSize() uint32 {
   353  	m.ctrl.T.Helper()
   354  	ret := m.ctrl.Call(m, "GetEncodedSize")
   355  	ret0, _ := ret[0].(uint32)
   356  	return ret0
   357  }
   358  
   359  // GetEncodedSize indicates an expected call of GetEncodedSize.
   360  func (mr *MockBlockWithPtrsMockRecorder) GetEncodedSize() *gomock.Call {
   361  	mr.mock.ctrl.T.Helper()
   362  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEncodedSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).GetEncodedSize))
   363  }
   364  
   365  // IndirectPtr mocks base method.
   366  func (m *MockBlockWithPtrs) IndirectPtr(arg0 int) (data.BlockInfo, data.Offset) {
   367  	m.ctrl.T.Helper()
   368  	ret := m.ctrl.Call(m, "IndirectPtr", arg0)
   369  	ret0, _ := ret[0].(data.BlockInfo)
   370  	ret1, _ := ret[1].(data.Offset)
   371  	return ret0, ret1
   372  }
   373  
   374  // IndirectPtr indicates an expected call of IndirectPtr.
   375  func (mr *MockBlockWithPtrsMockRecorder) IndirectPtr(arg0 interface{}) *gomock.Call {
   376  	mr.mock.ctrl.T.Helper()
   377  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndirectPtr", reflect.TypeOf((*MockBlockWithPtrs)(nil).IndirectPtr), arg0)
   378  }
   379  
   380  // IsIndirect mocks base method.
   381  func (m *MockBlockWithPtrs) IsIndirect() bool {
   382  	m.ctrl.T.Helper()
   383  	ret := m.ctrl.Call(m, "IsIndirect")
   384  	ret0, _ := ret[0].(bool)
   385  	return ret0
   386  }
   387  
   388  // IsIndirect indicates an expected call of IsIndirect.
   389  func (mr *MockBlockWithPtrsMockRecorder) IsIndirect() *gomock.Call {
   390  	mr.mock.ctrl.T.Helper()
   391  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsIndirect", reflect.TypeOf((*MockBlockWithPtrs)(nil).IsIndirect))
   392  }
   393  
   394  // IsTail mocks base method.
   395  func (m *MockBlockWithPtrs) IsTail() bool {
   396  	m.ctrl.T.Helper()
   397  	ret := m.ctrl.Call(m, "IsTail")
   398  	ret0, _ := ret[0].(bool)
   399  	return ret0
   400  }
   401  
   402  // IsTail indicates an expected call of IsTail.
   403  func (mr *MockBlockWithPtrsMockRecorder) IsTail() *gomock.Call {
   404  	mr.mock.ctrl.T.Helper()
   405  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTail", reflect.TypeOf((*MockBlockWithPtrs)(nil).IsTail))
   406  }
   407  
   408  // NewEmptier mocks base method.
   409  func (m *MockBlockWithPtrs) NewEmptier() func() data.Block {
   410  	m.ctrl.T.Helper()
   411  	ret := m.ctrl.Call(m, "NewEmptier")
   412  	ret0, _ := ret[0].(func() data.Block)
   413  	return ret0
   414  }
   415  
   416  // NewEmptier indicates an expected call of NewEmptier.
   417  func (mr *MockBlockWithPtrsMockRecorder) NewEmptier() *gomock.Call {
   418  	mr.mock.ctrl.T.Helper()
   419  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEmptier", reflect.TypeOf((*MockBlockWithPtrs)(nil).NewEmptier))
   420  }
   421  
   422  // NewEmpty mocks base method.
   423  func (m *MockBlockWithPtrs) NewEmpty() data.Block {
   424  	m.ctrl.T.Helper()
   425  	ret := m.ctrl.Call(m, "NewEmpty")
   426  	ret0, _ := ret[0].(data.Block)
   427  	return ret0
   428  }
   429  
   430  // NewEmpty indicates an expected call of NewEmpty.
   431  func (mr *MockBlockWithPtrsMockRecorder) NewEmpty() *gomock.Call {
   432  	mr.mock.ctrl.T.Helper()
   433  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEmpty", reflect.TypeOf((*MockBlockWithPtrs)(nil).NewEmpty))
   434  }
   435  
   436  // NumIndirectPtrs mocks base method.
   437  func (m *MockBlockWithPtrs) NumIndirectPtrs() int {
   438  	m.ctrl.T.Helper()
   439  	ret := m.ctrl.Call(m, "NumIndirectPtrs")
   440  	ret0, _ := ret[0].(int)
   441  	return ret0
   442  }
   443  
   444  // NumIndirectPtrs indicates an expected call of NumIndirectPtrs.
   445  func (mr *MockBlockWithPtrsMockRecorder) NumIndirectPtrs() *gomock.Call {
   446  	mr.mock.ctrl.T.Helper()
   447  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumIndirectPtrs", reflect.TypeOf((*MockBlockWithPtrs)(nil).NumIndirectPtrs))
   448  }
   449  
   450  // OffsetExceedsData mocks base method.
   451  func (m *MockBlockWithPtrs) OffsetExceedsData(arg0, arg1 data.Offset) bool {
   452  	m.ctrl.T.Helper()
   453  	ret := m.ctrl.Call(m, "OffsetExceedsData", arg0, arg1)
   454  	ret0, _ := ret[0].(bool)
   455  	return ret0
   456  }
   457  
   458  // OffsetExceedsData indicates an expected call of OffsetExceedsData.
   459  func (mr *MockBlockWithPtrsMockRecorder) OffsetExceedsData(arg0, arg1 interface{}) *gomock.Call {
   460  	mr.mock.ctrl.T.Helper()
   461  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OffsetExceedsData", reflect.TypeOf((*MockBlockWithPtrs)(nil).OffsetExceedsData), arg0, arg1)
   462  }
   463  
   464  // Set mocks base method.
   465  func (m *MockBlockWithPtrs) Set(arg0 data.Block) {
   466  	m.ctrl.T.Helper()
   467  	m.ctrl.Call(m, "Set", arg0)
   468  }
   469  
   470  // Set indicates an expected call of Set.
   471  func (mr *MockBlockWithPtrsMockRecorder) Set(arg0 interface{}) *gomock.Call {
   472  	mr.mock.ctrl.T.Helper()
   473  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockBlockWithPtrs)(nil).Set), arg0)
   474  }
   475  
   476  // SetEncodedSize mocks base method.
   477  func (m *MockBlockWithPtrs) SetEncodedSize(arg0 uint32) {
   478  	m.ctrl.T.Helper()
   479  	m.ctrl.Call(m, "SetEncodedSize", arg0)
   480  }
   481  
   482  // SetEncodedSize indicates an expected call of SetEncodedSize.
   483  func (mr *MockBlockWithPtrsMockRecorder) SetEncodedSize(arg0 interface{}) *gomock.Call {
   484  	mr.mock.ctrl.T.Helper()
   485  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncodedSize", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetEncodedSize), arg0)
   486  }
   487  
   488  // SetIndirectPtrInfo mocks base method.
   489  func (m *MockBlockWithPtrs) SetIndirectPtrInfo(arg0 int, arg1 data.BlockInfo) {
   490  	m.ctrl.T.Helper()
   491  	m.ctrl.Call(m, "SetIndirectPtrInfo", arg0, arg1)
   492  }
   493  
   494  // SetIndirectPtrInfo indicates an expected call of SetIndirectPtrInfo.
   495  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrInfo(arg0, arg1 interface{}) *gomock.Call {
   496  	mr.mock.ctrl.T.Helper()
   497  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrInfo", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrInfo), arg0, arg1)
   498  }
   499  
   500  // SetIndirectPtrOff mocks base method.
   501  func (m *MockBlockWithPtrs) SetIndirectPtrOff(arg0 int, arg1 data.Offset) {
   502  	m.ctrl.T.Helper()
   503  	m.ctrl.Call(m, "SetIndirectPtrOff", arg0, arg1)
   504  }
   505  
   506  // SetIndirectPtrOff indicates an expected call of SetIndirectPtrOff.
   507  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrOff(arg0, arg1 interface{}) *gomock.Call {
   508  	mr.mock.ctrl.T.Helper()
   509  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrOff", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrOff), arg0, arg1)
   510  }
   511  
   512  // SetIndirectPtrType mocks base method.
   513  func (m *MockBlockWithPtrs) SetIndirectPtrType(arg0 int, arg1 data.BlockDirectType) {
   514  	m.ctrl.T.Helper()
   515  	m.ctrl.Call(m, "SetIndirectPtrType", arg0, arg1)
   516  }
   517  
   518  // SetIndirectPtrType indicates an expected call of SetIndirectPtrType.
   519  func (mr *MockBlockWithPtrsMockRecorder) SetIndirectPtrType(arg0, arg1 interface{}) *gomock.Call {
   520  	mr.mock.ctrl.T.Helper()
   521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndirectPtrType", reflect.TypeOf((*MockBlockWithPtrs)(nil).SetIndirectPtrType), arg0, arg1)
   522  }
   523  
   524  // SwapIndirectPtrs mocks base method.
   525  func (m *MockBlockWithPtrs) SwapIndirectPtrs(arg0 int, arg1 data.BlockWithPtrs, arg2 int) {
   526  	m.ctrl.T.Helper()
   527  	m.ctrl.Call(m, "SwapIndirectPtrs", arg0, arg1, arg2)
   528  }
   529  
   530  // SwapIndirectPtrs indicates an expected call of SwapIndirectPtrs.
   531  func (mr *MockBlockWithPtrsMockRecorder) SwapIndirectPtrs(arg0, arg1, arg2 interface{}) *gomock.Call {
   532  	mr.mock.ctrl.T.Helper()
   533  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwapIndirectPtrs", reflect.TypeOf((*MockBlockWithPtrs)(nil).SwapIndirectPtrs), arg0, arg1, arg2)
   534  }
   535  
   536  // ToCommonBlock mocks base method.
   537  func (m *MockBlockWithPtrs) ToCommonBlock() *data.CommonBlock {
   538  	m.ctrl.T.Helper()
   539  	ret := m.ctrl.Call(m, "ToCommonBlock")
   540  	ret0, _ := ret[0].(*data.CommonBlock)
   541  	return ret0
   542  }
   543  
   544  // ToCommonBlock indicates an expected call of ToCommonBlock.
   545  func (mr *MockBlockWithPtrsMockRecorder) ToCommonBlock() *gomock.Call {
   546  	mr.mock.ctrl.T.Helper()
   547  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ToCommonBlock", reflect.TypeOf((*MockBlockWithPtrs)(nil).ToCommonBlock))
   548  }
   549  
   550  // MockDirtyBlockCache is a mock of DirtyBlockCache interface.
   551  type MockDirtyBlockCache struct {
   552  	ctrl     *gomock.Controller
   553  	recorder *MockDirtyBlockCacheMockRecorder
   554  }
   555  
   556  // MockDirtyBlockCacheMockRecorder is the mock recorder for MockDirtyBlockCache.
   557  type MockDirtyBlockCacheMockRecorder struct {
   558  	mock *MockDirtyBlockCache
   559  }
   560  
   561  // NewMockDirtyBlockCache creates a new mock instance.
   562  func NewMockDirtyBlockCache(ctrl *gomock.Controller) *MockDirtyBlockCache {
   563  	mock := &MockDirtyBlockCache{ctrl: ctrl}
   564  	mock.recorder = &MockDirtyBlockCacheMockRecorder{mock}
   565  	return mock
   566  }
   567  
   568  // EXPECT returns an object that allows the caller to indicate expected use.
   569  func (m *MockDirtyBlockCache) EXPECT() *MockDirtyBlockCacheMockRecorder {
   570  	return m.recorder
   571  }
   572  
   573  // BlockSyncFinished mocks base method.
   574  func (m *MockDirtyBlockCache) BlockSyncFinished(arg0 tlf.ID, arg1 int64) {
   575  	m.ctrl.T.Helper()
   576  	m.ctrl.Call(m, "BlockSyncFinished", arg0, arg1)
   577  }
   578  
   579  // BlockSyncFinished indicates an expected call of BlockSyncFinished.
   580  func (mr *MockDirtyBlockCacheMockRecorder) BlockSyncFinished(arg0, arg1 interface{}) *gomock.Call {
   581  	mr.mock.ctrl.T.Helper()
   582  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockSyncFinished", reflect.TypeOf((*MockDirtyBlockCache)(nil).BlockSyncFinished), arg0, arg1)
   583  }
   584  
   585  // Delete mocks base method.
   586  func (m *MockDirtyBlockCache) Delete(arg0 tlf.ID, arg1 data.BlockPointer, arg2 data.BranchName) error {
   587  	m.ctrl.T.Helper()
   588  	ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
   589  	ret0, _ := ret[0].(error)
   590  	return ret0
   591  }
   592  
   593  // Delete indicates an expected call of Delete.
   594  func (mr *MockDirtyBlockCacheMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call {
   595  	mr.mock.ctrl.T.Helper()
   596  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDirtyBlockCache)(nil).Delete), arg0, arg1, arg2)
   597  }
   598  
   599  // Get mocks base method.
   600  func (m *MockDirtyBlockCache) Get(arg0 context.Context, arg1 tlf.ID, arg2 data.BlockPointer, arg3 data.BranchName) (data.Block, error) {
   601  	m.ctrl.T.Helper()
   602  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2, arg3)
   603  	ret0, _ := ret[0].(data.Block)
   604  	ret1, _ := ret[1].(error)
   605  	return ret0, ret1
   606  }
   607  
   608  // Get indicates an expected call of Get.
   609  func (mr *MockDirtyBlockCacheMockRecorder) Get(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   610  	mr.mock.ctrl.T.Helper()
   611  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDirtyBlockCache)(nil).Get), arg0, arg1, arg2, arg3)
   612  }
   613  
   614  // IsAnyDirty mocks base method.
   615  func (m *MockDirtyBlockCache) IsAnyDirty(arg0 tlf.ID) bool {
   616  	m.ctrl.T.Helper()
   617  	ret := m.ctrl.Call(m, "IsAnyDirty", arg0)
   618  	ret0, _ := ret[0].(bool)
   619  	return ret0
   620  }
   621  
   622  // IsAnyDirty indicates an expected call of IsAnyDirty.
   623  func (mr *MockDirtyBlockCacheMockRecorder) IsAnyDirty(arg0 interface{}) *gomock.Call {
   624  	mr.mock.ctrl.T.Helper()
   625  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAnyDirty", reflect.TypeOf((*MockDirtyBlockCache)(nil).IsAnyDirty), arg0)
   626  }
   627  
   628  // IsDirty mocks base method.
   629  func (m *MockDirtyBlockCache) IsDirty(arg0 tlf.ID, arg1 data.BlockPointer, arg2 data.BranchName) bool {
   630  	m.ctrl.T.Helper()
   631  	ret := m.ctrl.Call(m, "IsDirty", arg0, arg1, arg2)
   632  	ret0, _ := ret[0].(bool)
   633  	return ret0
   634  }
   635  
   636  // IsDirty indicates an expected call of IsDirty.
   637  func (mr *MockDirtyBlockCacheMockRecorder) IsDirty(arg0, arg1, arg2 interface{}) *gomock.Call {
   638  	mr.mock.ctrl.T.Helper()
   639  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDirty", reflect.TypeOf((*MockDirtyBlockCache)(nil).IsDirty), arg0, arg1, arg2)
   640  }
   641  
   642  // Put mocks base method.
   643  func (m *MockDirtyBlockCache) Put(arg0 context.Context, arg1 tlf.ID, arg2 data.BlockPointer, arg3 data.BranchName, arg4 data.Block) error {
   644  	m.ctrl.T.Helper()
   645  	ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3, arg4)
   646  	ret0, _ := ret[0].(error)
   647  	return ret0
   648  }
   649  
   650  // Put indicates an expected call of Put.
   651  func (mr *MockDirtyBlockCacheMockRecorder) Put(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   652  	mr.mock.ctrl.T.Helper()
   653  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockDirtyBlockCache)(nil).Put), arg0, arg1, arg2, arg3, arg4)
   654  }
   655  
   656  // RequestPermissionToDirty mocks base method.
   657  func (m *MockDirtyBlockCache) RequestPermissionToDirty(arg0 context.Context, arg1 tlf.ID, arg2 int64) (data.DirtyPermChan, error) {
   658  	m.ctrl.T.Helper()
   659  	ret := m.ctrl.Call(m, "RequestPermissionToDirty", arg0, arg1, arg2)
   660  	ret0, _ := ret[0].(data.DirtyPermChan)
   661  	ret1, _ := ret[1].(error)
   662  	return ret0, ret1
   663  }
   664  
   665  // RequestPermissionToDirty indicates an expected call of RequestPermissionToDirty.
   666  func (mr *MockDirtyBlockCacheMockRecorder) RequestPermissionToDirty(arg0, arg1, arg2 interface{}) *gomock.Call {
   667  	mr.mock.ctrl.T.Helper()
   668  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPermissionToDirty", reflect.TypeOf((*MockDirtyBlockCache)(nil).RequestPermissionToDirty), arg0, arg1, arg2)
   669  }
   670  
   671  // ShouldForceSync mocks base method.
   672  func (m *MockDirtyBlockCache) ShouldForceSync(arg0 tlf.ID) bool {
   673  	m.ctrl.T.Helper()
   674  	ret := m.ctrl.Call(m, "ShouldForceSync", arg0)
   675  	ret0, _ := ret[0].(bool)
   676  	return ret0
   677  }
   678  
   679  // ShouldForceSync indicates an expected call of ShouldForceSync.
   680  func (mr *MockDirtyBlockCacheMockRecorder) ShouldForceSync(arg0 interface{}) *gomock.Call {
   681  	mr.mock.ctrl.T.Helper()
   682  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldForceSync", reflect.TypeOf((*MockDirtyBlockCache)(nil).ShouldForceSync), arg0)
   683  }
   684  
   685  // Shutdown mocks base method.
   686  func (m *MockDirtyBlockCache) Shutdown() error {
   687  	m.ctrl.T.Helper()
   688  	ret := m.ctrl.Call(m, "Shutdown")
   689  	ret0, _ := ret[0].(error)
   690  	return ret0
   691  }
   692  
   693  // Shutdown indicates an expected call of Shutdown.
   694  func (mr *MockDirtyBlockCacheMockRecorder) Shutdown() *gomock.Call {
   695  	mr.mock.ctrl.T.Helper()
   696  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockDirtyBlockCache)(nil).Shutdown))
   697  }
   698  
   699  // SyncFinished mocks base method.
   700  func (m *MockDirtyBlockCache) SyncFinished(arg0 tlf.ID, arg1 int64) {
   701  	m.ctrl.T.Helper()
   702  	m.ctrl.Call(m, "SyncFinished", arg0, arg1)
   703  }
   704  
   705  // SyncFinished indicates an expected call of SyncFinished.
   706  func (mr *MockDirtyBlockCacheMockRecorder) SyncFinished(arg0, arg1 interface{}) *gomock.Call {
   707  	mr.mock.ctrl.T.Helper()
   708  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncFinished", reflect.TypeOf((*MockDirtyBlockCache)(nil).SyncFinished), arg0, arg1)
   709  }
   710  
   711  // UpdateSyncingBytes mocks base method.
   712  func (m *MockDirtyBlockCache) UpdateSyncingBytes(arg0 tlf.ID, arg1 int64) {
   713  	m.ctrl.T.Helper()
   714  	m.ctrl.Call(m, "UpdateSyncingBytes", arg0, arg1)
   715  }
   716  
   717  // UpdateSyncingBytes indicates an expected call of UpdateSyncingBytes.
   718  func (mr *MockDirtyBlockCacheMockRecorder) UpdateSyncingBytes(arg0, arg1 interface{}) *gomock.Call {
   719  	mr.mock.ctrl.T.Helper()
   720  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSyncingBytes", reflect.TypeOf((*MockDirtyBlockCache)(nil).UpdateSyncingBytes), arg0, arg1)
   721  }
   722  
   723  // UpdateUnsyncedBytes mocks base method.
   724  func (m *MockDirtyBlockCache) UpdateUnsyncedBytes(arg0 tlf.ID, arg1 int64, arg2 bool) {
   725  	m.ctrl.T.Helper()
   726  	m.ctrl.Call(m, "UpdateUnsyncedBytes", arg0, arg1, arg2)
   727  }
   728  
   729  // UpdateUnsyncedBytes indicates an expected call of UpdateUnsyncedBytes.
   730  func (mr *MockDirtyBlockCacheMockRecorder) UpdateUnsyncedBytes(arg0, arg1, arg2 interface{}) *gomock.Call {
   731  	mr.mock.ctrl.T.Helper()
   732  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUnsyncedBytes", reflect.TypeOf((*MockDirtyBlockCache)(nil).UpdateUnsyncedBytes), arg0, arg1, arg2)
   733  }