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

Unified Diff: chrome/test/live_sync/two_client_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
« no previous file with comments | « chrome/test/live_sync/two_client_live_apps_sync_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/two_client_live_extensions_sync_test.cc
diff --git a/chrome/test/live_sync/two_client_live_extensions_sync_test.cc b/chrome/test/live_sync/two_client_live_extensions_sync_test.cc
index a9384f8b24e5213167866d2bf08f553bd000fcab..9589a9b54866487047073959d1dd5ce26845dfe5 100644
--- a/chrome/test/live_sync/two_client_live_extensions_sync_test.cc
+++ b/chrome/test/live_sync/two_client_live_extensions_sync_test.cc
@@ -147,6 +147,90 @@ IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, Uninstall) {
ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
}
+// TCM ID - 3635304.
+IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, Merge) {
+ ASSERT_TRUE(SetupSync());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ InstallExtension(GetProfile(0), 0);
+ InstallExtension(GetProfile(1), 0);
+ ASSERT_TRUE(AwaitQuiescence());
+
+ UninstallExtension(GetProfile(0), 0);
+ InstallExtension(GetProfile(0), 1);
+ InstallExtension(verifier(), 1);
+
+ InstallExtension(GetProfile(0), 2);
+ InstallExtension(GetProfile(1), 2);
+ InstallExtension(verifier(), 2);
+
+ InstallExtension(GetProfile(1), 3);
+ InstallExtension(verifier(), 3);
+
+ ASSERT_TRUE(AwaitQuiescence());
+ InstallExtensionsPendingForSync(GetProfile(0));
+ InstallExtensionsPendingForSync(GetProfile(1));
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+}
+
+// TCM ID - 3605300.
+IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest,
+ UpdateEnableDisableExtension) {
+ ASSERT_TRUE(SetupSync());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ InstallExtension(GetProfile(0), 0);
+ InstallExtension(GetProfile(1), 0);
+ InstallExtension(verifier(), 0);
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ DisableExtension(GetProfile(0), 0);
+ DisableExtension(verifier(), 0);
+ ASSERT_TRUE(HasSameExtensionsAsVerifier(0));
+ ASSERT_FALSE(HasSameExtensionsAsVerifier(1));
+
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ EnableExtension(GetProfile(1), 0);
+ EnableExtension(verifier(), 0);
+ ASSERT_TRUE(HasSameExtensionsAsVerifier(1));
+ ASSERT_FALSE(HasSameExtensionsAsVerifier(0));
+
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+}
+
+// TCM ID - 3728322.
+IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest,
+ UpdateIncognitoEnableDisable) {
+ ASSERT_TRUE(SetupSync());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ InstallExtension(GetProfile(0), 0);
+ InstallExtension(GetProfile(1), 0);
+ InstallExtension(verifier(), 0);
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ IncognitoEnableExtension(GetProfile(0), 0);
+ IncognitoEnableExtension(verifier(), 0);
+ ASSERT_TRUE(HasSameExtensionsAsVerifier(0));
+ ASSERT_FALSE(HasSameExtensionsAsVerifier(1));
+
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+
+ IncognitoDisableExtension(GetProfile(1), 0);
+ IncognitoDisableExtension(verifier(), 0);
+ ASSERT_TRUE(HasSameExtensionsAsVerifier(1));
+ ASSERT_FALSE(HasSameExtensionsAsVerifier(0));
+
+ ASSERT_TRUE(AwaitQuiescence());
+ ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
+}
+
// TCM ID - 3732278.
IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, DisableExtensions) {
ASSERT_TRUE(SetupSync());
« no previous file with comments | « chrome/test/live_sync/two_client_live_apps_sync_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698