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

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

Issue 6462015: Cleanup more test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtf windows is this me 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 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 {
11 // public: 11 // public:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 }; 114 };
115 115
116 class MockDirectory : public syncable::Directory { 116 class MockDirectory : public syncable::Directory {
117 public: 117 public:
118 explicit MockDirectory(const std::string& name); 118 explicit MockDirectory(const std::string& name);
119 virtual ~MockDirectory(); 119 virtual ~MockDirectory();
120 MOCK_METHOD1(PurgeEntriesWithTypeIn, void(const syncable::ModelTypeSet&)); 120 MOCK_METHOD1(PurgeEntriesWithTypeIn, void(const syncable::ModelTypeSet&));
121 }; 121 };
122 122
123 MockDirectorySetterUpper(); 123 MockDirectorySetterUpper();
124 virtual ~MockDirectorySetterUpper();
124 125
125 virtual void SetUp(); 126 virtual void SetUp();
126 virtual void TearDown(); 127 virtual void TearDown();
127 MockDirectory* directory() { return directory_.get(); } 128 MockDirectory* directory() { return directory_.get(); }
128 129
129 private: 130 private:
130 scoped_ptr<MockDirectory> directory_; 131 scoped_ptr<MockDirectory> directory_;
131 }; 132 };
132 133
133 } // namespace browser_sync 134 } // namespace browser_sync
134 135
135 #endif // CHROME_TEST_SYNC_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 136 #endif // CHROME_TEST_SYNC_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
OLDNEW
« no previous file with comments | « chrome/test/live_sync/two_client_live_themes_sync_test.cc ('k') | chrome/test/sync/engine/test_directory_setter_upper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698