Commit c1f0724d authored by Reid Kleckner's avatar Reid Kleckner Committed by Commit Bot

Skip IncompatibleApplicationsBrowserTest test setup in viz_browser_tests

This test seems to crash on our bots before it reaches the test fixture
code. I assume that is failing somewhere in SetUp, but there is no stack
trace to confirm that. I'm speculatively disabling some code when this
feature flag is set. We'll see if that greens our bots.

Also, remove the OFFICIAL_BUILD ifdef check. This code is only compiled
when is_chrome_branded is true.

NOTRY=True
TBR=chrisha@chromium.org, mhosen@chromium.org, mohsen@chromium.org
BUG=850517

Change-Id: I9f7e1fc8d826e830fc3e5284bff7e9cd6344fd7b
Reviewed-on: https://chromium-review.googlesource.com/1101408Reviewed-by: default avatarReid Kleckner <rnk@chromium.org>
Commit-Queue: Reid Kleckner <rnk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567343}
parent f1ee29e8
...@@ -83,21 +83,27 @@ class IncompatibleApplicationsBrowserTest : public InProcessBrowserTest { ...@@ -83,21 +83,27 @@ class IncompatibleApplicationsBrowserTest : public InProcessBrowserTest {
~IncompatibleApplicationsBrowserTest() override = default; ~IncompatibleApplicationsBrowserTest() override = default;
void SetUp() override { void SetUp() override {
ASSERT_TRUE(scoped_temp_dir_.CreateUniqueTempDir()); // TODO(crbug.com/850517): Don't do test-specific setup if the test isn't
// going to do anything. It seems to conflict with the VizDisplayCompositor
ASSERT_NO_FATAL_FAILURE( // feature.
registry_override_manager_.OverrideRegistry(HKEY_LOCAL_MACHINE)); if (!base::FeatureList::IsEnabled(features::kVizDisplayCompositor)) {
ASSERT_NO_FATAL_FAILURE( ASSERT_TRUE(scoped_temp_dir_.CreateUniqueTempDir());
registry_override_manager_.OverrideRegistry(HKEY_CURRENT_USER));
ASSERT_NO_FATAL_FAILURE(
scoped_feature_list_.InitWithFeatures( registry_override_manager_.OverrideRegistry(HKEY_LOCAL_MACHINE));
// Enabled features. ASSERT_NO_FATAL_FAILURE(
{features::kModuleDatabase, features::kIncompatibleApplicationsWarning}, registry_override_manager_.OverrideRegistry(HKEY_CURRENT_USER));
// Disabled features.
{}); scoped_feature_list_.InitWithFeatures(
// Enabled features.
ASSERT_NO_FATAL_FAILURE(CreateModuleList()); {features::kModuleDatabase,
ASSERT_NO_FATAL_FAILURE(InstallThirdPartyApplication()); features::kIncompatibleApplicationsWarning},
// Disabled features.
{});
ASSERT_NO_FATAL_FAILURE(CreateModuleList());
ASSERT_NO_FATAL_FAILURE(InstallThirdPartyApplication());
}
InProcessBrowserTest::SetUp(); InProcessBrowserTest::SetUp();
} }
...@@ -197,11 +203,9 @@ IN_PROC_BROWSER_TEST_F(IncompatibleApplicationsBrowserTest, ...@@ -197,11 +203,9 @@ IN_PROC_BROWSER_TEST_F(IncompatibleApplicationsBrowserTest,
if (base::win::GetVersion() < base::win::VERSION_WIN10) if (base::win::GetVersion() < base::win::VERSION_WIN10)
return; return;
#if defined(OFFICIAL_BUILD)
// TODO(crbug.com/850517) This fails in viz_browser_tests in official builds. // TODO(crbug.com/850517) This fails in viz_browser_tests in official builds.
if (base::FeatureList::IsEnabled(features::kVizDisplayCompositor)) if (base::FeatureList::IsEnabled(features::kVizDisplayCompositor))
return; return;
#endif
ModuleDatabase* module_database = ModuleDatabase::GetInstance(); ModuleDatabase* module_database = ModuleDatabase::GetInstance();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment