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_ |