diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 00:37:33 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 00:37:33 +0000 |
commit | b65d4bdcc48f230a83049cc93de2eaf375e7620f (patch) | |
tree | 845f4a75ef89121cb2680e5b4915f35a397930fa /chrome/browser/extensions/app_process_apitest.cc | |
parent | 4160df37171371798ed5f6768a05abc7841347a9 (diff) | |
download | chromium_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/extensions/app_process_apitest.cc')
-rw-r--r-- | chrome/browser/extensions/app_process_apitest.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc index a1c30b5..85f6ef8 100644 --- a/chrome/browser/extensions/app_process_apitest.cc +++ b/chrome/browser/extensions/app_process_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 "chrome/browser/chrome_notification_types.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/extensions/extension_host.h" @@ -20,6 +21,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/extensions/extension.h" #include "chrome/common/extensions/extension_file_util.h" +#include "chrome/test/base/test_switches.h" #include "chrome/test/base/ui_test_utils.h" #include "content/public/browser/navigation_entry.h" #include "content/public/browser/notification_service.h" @@ -32,10 +34,6 @@ #include "net/test/embedded_test_server/embedded_test_server.h" #include "sync/api/string_ordinal.h" -#if defined(OS_WIN) && defined(USE_ASH) -#include "base/win/windows_version.h" -#endif - using content::NavigationController; using content::RenderViewHost; using content::WebContents; @@ -606,7 +604,7 @@ void RenderViewHostCreated(std::vector<content::RenderViewHost*>* rvh_vector, IN_PROC_BROWSER_TEST_F(AppApiTest, OpenAppFromIframe) { #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 |