Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: sync/syncable/syncable_mock.h

Issue 10791002: Finish commit 146665. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/test/callback_counter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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, void(syncer::ModelTypeSet)); 32 MOCK_METHOD1(PurgeEntriesWithTypeIn, bool(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_
OLDNEW
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/test/callback_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698