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

Unified Diff: chrome/test/live_sync/sync_datatype_helper.h

Issue 7461109: Allow sync integration tests to operate on multiple datatypes: Typed Urls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback; rebase Created 9 years, 4 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/test/live_sync/sync_datatype_helper.h
diff --git a/chrome/test/live_sync/sync_datatype_helper.h b/chrome/test/live_sync/sync_datatype_helper.h
index 1fccda566afd555fefa8abbcd7f4899357345f6c..ebeed62a3a3f5bc692d4cd7df23dcec3b595049d 100644
--- a/chrome/test/live_sync/sync_datatype_helper.h
+++ b/chrome/test/live_sync/sync_datatype_helper.h
@@ -10,25 +10,17 @@
class LiveSyncTest;
-class SyncDatatypeHelper {
- public:
- // Associates an instance of LiveSyncTest with a SyncDatatypeHelper. Must be
- // called before any of the methods in the helper subclasses can be used.
- static void AssociateWithTest(LiveSyncTest* test);
+namespace sync_datatype_helper {
- // Returns |test_| after making sure it is a valid pointer.
- static LiveSyncTest* test();
+// Associates an instance of LiveSyncTest with sync_datatype_helper. Must be
+// called before any of the methods in the per-datatype helper namespaces can be
+// used.
+void AssociateWithTest(LiveSyncTest* test);
- protected:
- SyncDatatypeHelper();
- virtual ~SyncDatatypeHelper();
-
- private:
- // The LiveSyncTest instance associated with this helper object.
- static LiveSyncTest* test_;
-
- DISALLOW_COPY_AND_ASSIGN(SyncDatatypeHelper);
-};
+// Returns a pointer to the instance of LiveSyncTest associated with the
+// per-datatype helpers after making sure it is valid.
+LiveSyncTest* test();
+} // namespace sync_datatype_helper
#endif // CHROME_TEST_LIVE_SYNC_SYNC_DATATYPE_HELPER_H_
« no previous file with comments | « chrome/test/live_sync/single_client_typed_urls_sync_test.cc ('k') | chrome/test/live_sync/sync_datatype_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698