summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility
diff options
context:
space:
mode:
authorgab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 00:37:33 +0000
committergab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 00:37:33 +0000
commitb65d4bdcc48f230a83049cc93de2eaf375e7620f (patch)
tree845f4a75ef89121cb2680e5b4915f35a397930fa /chrome/browser/accessibility
parent4160df37171371798ed5f6768a05abc7841347a9 (diff)
downloadchromium_src-b65d4bdcc48f230a83049cc93de2eaf375e7620f.zip
chromium_src-b65d4bdcc48f230a83049cc93de2eaf375e7620f.tar.gz
chromium_src-b65d4bdcc48f230a83049cc93de2eaf375e7620f.tar.bz2
Disable Ash browser tests by detecting command-line switch rather than OS version.
The original intent by disabling them per OS version was that regular browser tests don't run on win8_aura bots anyways... but this also makes it annoying as devs on Win8+Aura now can't run these tests as "regular" browser tests... Disable those tests by detecting the --ash-browsertests command-line flag instead. BUG=262796 Review URL: https://chromiumcodereview.appspot.com/21112003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility')
-rw-r--r--chrome/browser/accessibility/accessibility_extension_apitest.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/accessibility/accessibility_extension_apitest.cc b/chrome/browser/accessibility/accessibility_extension_apitest.cc
index b66e2f3..82cbd73 100644
--- a/chrome/browser/accessibility/accessibility_extension_apitest.cc
+++ b/chrome/browser/accessibility/accessibility_extension_apitest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/command_line.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/infobars/infobar_service.h"
@@ -9,10 +10,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_switches.h"
-
-#if defined(OS_WIN) && defined(USE_ASH)
-#include "base/win/windows_version.h"
-#endif
+#include "chrome/test/base/test_switches.h"
// Times out on win asan, http://crbug.com/166026
#if defined(OS_WIN) && defined(ADDRESS_SANITIZER)
@@ -23,7 +21,7 @@
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_GetAlertsForTab) {
#if defined(OS_WIN) && defined(USE_ASH)
// Disable this test in Metro+Ash for now (http://crbug.com/262796).
- if (base::win::GetVersion() >= base::win::VERSION_WIN8)
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests))
return;
#endif