| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 5 #ifndef SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
| 6 #define SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 6 #define SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "sync/syncable/directory.h" | 10 #include "sync/syncable/directory.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 explicit MockDirectory(syncer::UnrecoverableErrorHandler* handler); | 22 explicit MockDirectory(syncer::UnrecoverableErrorHandler* handler); |
| 23 virtual ~MockDirectory(); | 23 virtual ~MockDirectory(); |
| 24 | 24 |
| 25 MOCK_METHOD1(GetEntryByHandle, syncable::EntryKernel*(int64)); | 25 MOCK_METHOD1(GetEntryByHandle, syncable::EntryKernel*(int64)); |
| 26 | 26 |
| 27 MOCK_METHOD2(set_last_downloadstamp, void(syncer::ModelType, int64)); | 27 MOCK_METHOD2(set_last_downloadstamp, void(syncer::ModelType, int64)); |
| 28 | 28 |
| 29 MOCK_METHOD1(GetEntryByClientTag, | 29 MOCK_METHOD1(GetEntryByClientTag, |
| 30 syncable::EntryKernel*(const std::string&)); | 30 syncable::EntryKernel*(const std::string&)); |
| 31 | 31 |
| 32 MOCK_METHOD1(PurgeEntriesWithTypeIn, bool(syncer::ModelTypeSet)); | 32 MOCK_METHOD1(PurgeEntriesWithTypeIn, void(syncer::ModelTypeSet)); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 syncer::FakeEncryptor encryptor_; | 35 syncer::FakeEncryptor encryptor_; |
| 36 syncable::NullDirectoryChangeDelegate delegate_; | 36 syncable::NullDirectoryChangeDelegate delegate_; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 class MockSyncableWriteTransaction : public syncable::WriteTransaction { | 39 class MockSyncableWriteTransaction : public syncable::WriteTransaction { |
| 40 public: | 40 public: |
| 41 MockSyncableWriteTransaction( | 41 MockSyncableWriteTransaction( |
| 42 const tracked_objects::Location& from_here, Directory *directory); | 42 const tracked_objects::Location& from_here, Directory *directory); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace syncable | 45 } // namespace syncable |
| 46 } // namespace syncer | 46 } // namespace syncer |
| 47 | 47 |
| 48 #endif // SYNC_SYNCABLE_SYNCABLE_MOCK_H_ | 48 #endif // SYNC_SYNCABLE_SYNCABLE_MOCK_H_ |
| OLD | NEW |