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

Unified Diff: chrome/browser/apps/ephemeral_app_browsertest.cc

Issue 489333002: Disable sync in EphemeralAppBrowserTests on Windows due to flakiness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/ephemeral_app_browsertest.cc
diff --git a/chrome/browser/apps/ephemeral_app_browsertest.cc b/chrome/browser/apps/ephemeral_app_browsertest.cc
index 86dc13d7b50171e6514e7d4a7f6272b0a9b8f7a9..14389aba0e53b678aebfeba48cb0174e22228e5b 100644
--- a/chrome/browser/apps/ephemeral_app_browsertest.cc
+++ b/chrome/browser/apps/ephemeral_app_browsertest.cc
@@ -61,6 +61,14 @@ namespace alarms = extensions::api::alarms;
const char kPowerTestApp[] = "ephemeral_apps/power";
+// Enabling sync causes these tests to be flaky on Windows. Disable sync so that
+// everything else can be tested. See crbug.com/401028
benwells 2014/08/26 03:09:54 This makes me a bit uneasy. Is there some underlyi
tmdiep 2014/08/26 03:44:45 Yes. This patch is intended to be a temporary band
benwells 2014/08/26 03:58:12 OK. It is probably that someone else that should b
tmdiep 2014/08/26 04:29:39 I think it's sync related. There are other browser
+#if defined(OS_WIN)
+const bool kEnableSync = false;
+#else
+const bool kEnableSync = true;
+#endif
+
typedef std::vector<message_center::Notifier*> NotifierList;
bool IsNotifierInList(const message_center::NotifierId& notifier_id,
@@ -505,6 +513,9 @@ class EphemeralAppBrowserTest : public EphemeralAppTestBase {
}
void InitSyncService() {
+ if (!kEnableSync)
+ return;
+
ExtensionSyncService* sync_service = ExtensionSyncService::Get(profile());
sync_service->MergeDataAndStartSyncing(
syncer::APPS,
@@ -530,6 +541,9 @@ class EphemeralAppBrowserTest : public EphemeralAppTestBase {
}
void VerifySyncChange(const AppSyncData* sync_change, bool expect_enabled) {
+ if (!kEnableSync)
+ return;
+
ASSERT_TRUE(sync_change);
EXPECT_TRUE(sync_change->page_ordinal().IsValid());
EXPECT_TRUE(sync_change->app_launch_ordinal().IsValid());
@@ -915,16 +929,8 @@ IN_PROC_BROWSER_TEST_F(EphemeralAppBrowserTest,
// permanently install an ephemeral app. However, there may be cases where an
// install occurs through the usual route of installing from the Web Store (due
// to race conditions). Ensure that the app is still installed correctly.
-#if defined(OS_WIN)
-// Disabled on Windows due to failures. See crbug.com/401028
-#define MAYBE_ReplaceEphemeralAppWithInstalledApp \
- DISABLED_ReplaceEphemeralAppWithInstalledApp
-#else
-#define MAYBE_ReplaceEphemeralAppWithInstalledApp \
- ReplaceEphemeralAppWithInstalledApp
-#endif
IN_PROC_BROWSER_TEST_F(EphemeralAppBrowserTest,
- MAYBE_ReplaceEphemeralAppWithInstalledApp) {
+ ReplaceEphemeralAppWithInstalledApp) {
InitSyncService();
const Extension* app = InstallAndLaunchEphemeralApp(kNotificationsTestApp);
@@ -946,16 +952,8 @@ IN_PROC_BROWSER_TEST_F(EphemeralAppBrowserTest,
// This is similar to ReplaceEphemeralAppWithInstalledApp, but installs will
// be delayed until the app is idle.
-#if defined(OS_WIN)
-// Disabled on Windows due to failures. See crbug.com/401028
-#define MAYBE_ReplaceEphemeralAppWithDelayedInstalledApp \
- DISABLED_ReplaceEphemeralAppWithDelayedInstalledApp
-#else
-#define MAYBE_ReplaceEphemeralAppWithDelayedInstalledApp \
- ReplaceEphemeralAppWithDelayedInstalledApp
-#endif
IN_PROC_BROWSER_TEST_F(EphemeralAppBrowserTest,
- MAYBE_ReplaceEphemeralAppWithDelayedInstalledApp) {
+ ReplaceEphemeralAppWithDelayedInstalledApp) {
InitSyncService();
const Extension* app = InstallAndLaunchEphemeralApp(kNotificationsTestApp);
ASSERT_TRUE(app);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698