Index: chrome/browser/sync/test/integration/two_client_apps_sync_test.cc |
diff --git a/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc b/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc |
index 475759a5465de745c5d8090fdac11b21180a9401..83b72acc90155f354e84299257da27fd0373f7e0 100644 |
--- a/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc |
+++ b/chrome/browser/sync/test/integration/two_client_apps_sync_test.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/basictypes.h" |
+#include "base/command_line.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/extensions/extension_sorting.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -10,6 +11,7 @@ |
#include "chrome/browser/sync/test/integration/apps_helper.h" |
#include "chrome/browser/sync/test/integration/sync_app_helper.h" |
#include "chrome/browser/sync/test/integration/sync_test.h" |
+#include "chrome/common/chrome_switches.h" |
#include "chrome/common/extensions/extension_constants.h" |
#include "sync/api/string_ordinal.h" |
@@ -28,6 +30,7 @@ using apps_helper::InstallPlatformApp; |
using apps_helper::SetAppLaunchOrdinalForApp; |
using apps_helper::SetPageOrdinalForApp; |
using apps_helper::UninstallApp; |
+using apps_helper::WaitForPlatformAppsToUnload; |
class TwoClientAppsSyncTest : public SyncTest { |
public: |
@@ -35,6 +38,14 @@ class TwoClientAppsSyncTest : public SyncTest { |
virtual ~TwoClientAppsSyncTest() {} |
+ protected: |
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
+ SyncTest::SetUpCommandLine(command_line); |
+ // Make event pages get suspended quicker. |
+ command_line->AppendSwitchASCII(switches::kEventPageIdleTime, "1"); |
+ command_line->AppendSwitchASCII(switches::kEventPageUnloadingTime, "1"); |
+ } |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(TwoClientAppsSyncTest); |
}; |
@@ -108,6 +119,8 @@ IN_PROC_BROWSER_TEST_F(TwoClientAppsSyncTest, StartWithDifferentApps) { |
InstallAppsPendingForSync(GetProfile(1)); |
ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier()); |
+ |
+ WaitForPlatformAppsToUnload(); |
} |
// Install some apps on both clients, then sync. Then install some apps on only |