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

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

Issue 7259005: Allow sync integration tests to operate on multiple datatypes: Preferences + Bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 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
new file mode 100644
index 0000000000000000000000000000000000000000..1fccda566afd555fefa8abbcd7f4899357345f6c
--- /dev/null
+++ b/chrome/test/live_sync/sync_datatype_helper.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_LIVE_SYNC_SYNC_DATATYPE_HELPER_H_
+#define CHROME_TEST_LIVE_SYNC_SYNC_DATATYPE_HELPER_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+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);
+
+ // Returns |test_| after making sure it is a valid pointer.
+ static LiveSyncTest* test();
+
+ protected:
+ SyncDatatypeHelper();
+ virtual ~SyncDatatypeHelper();
+
+ private:
+ // The LiveSyncTest instance associated with this helper object.
+ static LiveSyncTest* test_;
+
+ DISALLOW_COPY_AND_ASSIGN(SyncDatatypeHelper);
+};
+
+
+#endif // CHROME_TEST_LIVE_SYNC_SYNC_DATATYPE_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698