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

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

Issue 6873061: [Sync] Revamp and re-enable themes/extensions sync integration tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 8 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
« 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
index 624ca3af4799096a381abd54b63d22a22b17476c..c5b2fedf2387ab9003e3bee9be7f049d690f1854 100644
--- a/chrome/test/live_sync/live_extensions_sync_test.h
+++ b/chrome/test/live_sync/live_extensions_sync_test.h
@@ -6,36 +6,35 @@
#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/memory/ref_counted.h"
-#include "base/memory/scoped_temp_dir.h"
-#include "chrome/test/live_sync/live_extensions_sync_test_base.h"
+#include "chrome/test/live_sync/live_sync_extension_helper.h"
+#include "chrome/test/live_sync/live_sync_test.h"
-class Extension;
class Profile;
-class LiveExtensionsSyncTest : public LiveExtensionsSyncTestBase {
+class LiveExtensionsSyncTest : public LiveSyncTest {
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;
+ // Like LiveSyncTest::SetupClients(), but also sets up
+ // |extension_helper_|.
+ virtual bool SetupClients() OVERRIDE WARN_UNUSED_RESULT;
// Returns true iff all existing profiles have the same extensions
// as the verifier.
bool AllProfilesHaveSameExtensionsAsVerifier() WARN_UNUSED_RESULT;
+ // Installs the extension for the given index to |profile|.
+ void InstallExtension(Profile* profile, int index);
+
+ // Installs all pending synced extensions for |profile|.
+ void InstallExtensionsPendingForSync(Profile* profile);
+
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;
+ LiveSyncExtensionHelper extension_helper_;
DISALLOW_COPY_AND_ASSIGN(LiveExtensionsSyncTest);
};
« 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