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

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

Issue 7104072: Adding new extension sync integration tests. Also modified the way that profile (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More review changes Created 9 years, 6 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/live_extensions_sync_test.cc
diff --git a/chrome/test/live_sync/live_extensions_sync_test.cc b/chrome/test/live_sync/live_extensions_sync_test.cc
index 9b4f92bcdc3c45ee12d1953c232f1965a6426ff4..ba4afeade6b9687048fc9540d4b5502eeb34feca 100644
--- a/chrome/test/live_sync/live_extensions_sync_test.cc
+++ b/chrome/test/live_sync/live_extensions_sync_test.cc
@@ -31,13 +31,7 @@ bool LiveExtensionsSyncTest::SetupClients() {
}
bool LiveExtensionsSyncTest::HasSameExtensionsAsVerifier(int index) {
- LiveSyncExtensionHelper::ExtensionStateMap
- verifier_extension_state_map(
- extension_helper_.GetExtensionStates(verifier()));
- LiveSyncExtensionHelper::ExtensionStateMap
- extension_state_map(
- extension_helper_.GetExtensionStates(GetProfile(index)));
- return (extension_state_map == verifier_extension_state_map);
+ return extension_helper_.ExtensionStatesMatch(GetProfile(index), verifier());
}
bool LiveExtensionsSyncTest::AllProfilesHaveSameExtensionsAsVerifier() {
@@ -62,6 +56,28 @@ void LiveExtensionsSyncTest::UninstallExtension(Profile* profile, int index) {
CreateFakeExtensionName(index));
}
+void LiveExtensionsSyncTest::EnableExtension(Profile* profile, int index) {
+ return extension_helper_.EnableExtension(profile,
+ CreateFakeExtensionName(index));
+}
+
+void LiveExtensionsSyncTest::DisableExtension(Profile* profile, int index) {
+ return extension_helper_.DisableExtension(profile,
+ CreateFakeExtensionName(index));
+}
+
+void LiveExtensionsSyncTest::IncognitoEnableExtension(Profile* profile,
+ int index) {
+ return extension_helper_.IncognitoEnableExtension(
+ profile, CreateFakeExtensionName(index));
+}
+
+void LiveExtensionsSyncTest::IncognitoDisableExtension(Profile* profile,
+ int index) {
+ return extension_helper_.IncognitoDisableExtension(
+ profile, CreateFakeExtensionName(index));
+}
+
void LiveExtensionsSyncTest::InstallExtensionsPendingForSync(
Profile* profile) {
extension_helper_.InstallExtensionsPendingForSync(
« no previous file with comments | « chrome/test/live_sync/live_extensions_sync_test.h ('k') | chrome/test/live_sync/live_sync_extension_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698