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

Unified Diff: chrome/browser/sync/syncable/syncable_mock.h

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/syncable/syncable_mock.h
diff --git a/chrome/browser/sync/syncable/syncable_mock.h b/chrome/browser/sync/syncable/syncable_mock.h
index 9412fe0a9a5dccd2868b2768e33c170370694ee4..e6e09127abfa0f1898a1c94e3e3a9ee381ef9c00 100644
--- a/chrome/browser/sync/syncable/syncable_mock.h
+++ b/chrome/browser/sync/syncable/syncable_mock.h
@@ -17,9 +17,9 @@ using syncable::EntryKernel;
class MockDirectory : public Directory {
public:
- MockDirectory() {
- init_kernel("myk");
- }
+ MockDirectory();
+ virtual ~MockDirectory();
+
MOCK_METHOD1(GetEntryByHandle, syncable::EntryKernel*(int64));
MOCK_METHOD2(set_last_downloadstamp, void(syncable::ModelType, int64));
@@ -30,9 +30,7 @@ class MockDirectory : public Directory {
class MockSyncableWriteTransaction : public syncable::WriteTransaction {
public:
- explicit MockSyncableWriteTransaction(Directory *directory) :
- WriteTransaction(directory, syncable::UNITTEST, "dontcare.cpp", 25) {
- }
+ explicit MockSyncableWriteTransaction(Directory *directory);
};

Powered by Google App Engine
This is Rietveld 408576698