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

Side by Side Diff: chrome/browser/sync/test/engine/test_directory_setter_upper.h

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // A handy class that takes care of setting up and destroying a 5 // A handy class that takes care of setting up and destroying a
6 // syncable::Directory instance for unit tests that require one. 6 // syncable::Directory instance for unit tests that require one.
7 // 7 //
8 // The expected usage is to make this a component of your test fixture: 8 // The expected usage is to make this a component of your test fixture:
9 // 9 //
10 // class AwesomenessTest : public testing::Test { 10 // class AwesomenessTest : public testing::Test {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 class Manager : public syncable::DirectoryManager { 116 class Manager : public syncable::DirectoryManager {
117 public: 117 public:
118 Manager(const FilePath& root_path, syncable::Directory* dir); 118 Manager(const FilePath& root_path, syncable::Directory* dir);
119 virtual ~Manager() { managed_directory_ = NULL; } 119 virtual ~Manager() { managed_directory_ = NULL; }
120 }; 120 };
121 121
122 class MockDirectory : public syncable::Directory { 122 class MockDirectory : public syncable::Directory {
123 public: 123 public:
124 explicit MockDirectory(const std::string& name); 124 explicit MockDirectory(const std::string& name);
125 virtual ~MockDirectory(); 125 virtual ~MockDirectory();
126 MOCK_METHOD1(PurgeEntriesWithTypeIn, void(syncable::ModelEnumSet)); 126 MOCK_METHOD1(PurgeEntriesWithTypeIn, void(syncable::ModelTypeSet));
127 127
128 private: 128 private:
129 syncable::NullDirectoryChangeDelegate delegate_; 129 syncable::NullDirectoryChangeDelegate delegate_;
130 }; 130 };
131 131
132 MockDirectorySetterUpper(); 132 MockDirectorySetterUpper();
133 virtual ~MockDirectorySetterUpper(); 133 virtual ~MockDirectorySetterUpper();
134 134
135 virtual void SetUp() OVERRIDE; 135 virtual void SetUp() OVERRIDE;
136 virtual void TearDown() OVERRIDE; 136 virtual void TearDown() OVERRIDE;
137 MockDirectory* directory() { return directory_.get(); } 137 MockDirectory* directory() { return directory_.get(); }
138 138
139 private: 139 private:
140 scoped_ptr<MockDirectory> directory_; 140 scoped_ptr<MockDirectory> directory_;
141 }; 141 };
142 142
143 } // namespace browser_sync 143 } // namespace browser_sync
144 144
145 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 145 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/engine/mock_connection_manager.h ('k') | chrome/browser/sync/test/integration/enable_disable_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698