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

Unified Diff: chrome/browser/sync/test/integration/single_client_apps_sync_test.cc

Issue 11308072: Include v2 packaged apps in sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: chrome/browser/sync/test/integration/single_client_apps_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/single_client_apps_sync_test.cc b/chrome/browser/sync/test/integration/single_client_apps_sync_test.cc
index cff03fa8d271d4919fa1bbd9d7c9b1393370c462..62deed2dd92612d86e484967e86ac7418f9918e7 100644
--- a/chrome/browser/sync/test/integration/single_client_apps_sync_test.cc
+++ b/chrome/browser/sync/test/integration/single_client_apps_sync_test.cc
@@ -9,6 +9,7 @@
using apps_helper::AllProfilesHaveSameAppsAsVerifier;
using apps_helper::InstallApp;
+using apps_helper::InstallPlatformApp;
class SingleClientAppsSyncTest : public SyncTest {
public:
@@ -40,6 +41,20 @@ IN_PROC_BROWSER_TEST_F(SingleClientAppsSyncTest, StartWithSomeApps) {
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
}
+IN_PROC_BROWSER_TEST_F(SingleClientAppsSyncTest, StartWithSomePlatformApps) {
+ ASSERT_TRUE(SetupClients());
+
+ const int kNumApps = 5;
+ for (int i = 0; i < kNumApps; ++i) {
+ InstallPlatformApp(GetProfile(0), i);
+ InstallPlatformApp(verifier(), i);
+ }
+
+ ASSERT_TRUE(SetupSync());
+
+ ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier());
akalin 2012/11/16 18:38:53 Doesn't AllProfileHaveSameAppsAsVerifier() have to
Marijn Kruisselbrink 2012/11/16 18:54:30 As far as I could tell AllProfileHaveSameAppsAsVer
akalin 2012/11/16 20:09:06 Okay, I think you're right. Can you update the co
+}
+
IN_PROC_BROWSER_TEST_F(SingleClientAppsSyncTest, InstallSomeApps) {
akalin 2012/11/16 18:38:53 can you add an InstallSomePlatformApps test also?
Marijn Kruisselbrink 2012/11/16 18:54:30 Done.
ASSERT_TRUE(SetupSync());

Powered by Google App Engine
This is Rietveld 408576698