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

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

Issue 4732005: [Sync] Added some basic extension sync integration tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed rsimha's comments Created 10 years, 1 month 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_extensions_sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/live_extensions_sync_test.h
diff --git a/chrome/test/live_sync/live_extensions_sync_test.h b/chrome/test/live_sync/live_extensions_sync_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d188cdd8abdae8f1d46ae5749df84ea7d260d13
--- /dev/null
+++ b/chrome/test/live_sync/live_extensions_sync_test.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2010 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_LIVE_EXTENSIONS_SYNC_TEST_H_
+#define CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
+#pragma once
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/scoped_temp_dir.h"
+#include "base/ref_counted.h"
+#include "chrome/test/live_sync/live_extensions_sync_test_base.h"
+
+class Extension;
+class Profile;
+
+class LiveExtensionsSyncTest : public LiveExtensionsSyncTestBase {
+ public:
+ explicit LiveExtensionsSyncTest(TestType test_type);
+ virtual ~LiveExtensionsSyncTest();
+
+ protected:
+ // Returns true iff the given profile has the same extensions as the
+ // verifier.
+ bool HasSameExtensionsAsVerifier(int profile) WARN_UNUSED_RESULT;
+
+ // Returns true iff all existing profiles have the same extensions
+ // as the verifier.
+ bool AllProfilesHaveSameExtensionsAsVerifier() WARN_UNUSED_RESULT;
+
+ private:
+ // Returns true iff the given two profiles have the same set of
+ // enabled, disabled, and pending extensions.
+ static bool HasSameExtensionsHelper(
+ Profile* profile1, Profile* profile2) WARN_UNUSED_RESULT;
+
+ DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest);
+};
+
+#endif // CHROME_TEST_LIVE_SYNC_LIVE_EXTENSIONS_SYNC_TEST_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/live_sync/live_extensions_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698