Commit 0ccda825 authored by Wez's avatar Wez Committed by Chromium LUCI CQ

[fuchsia] Fix ThemeManagerTest suite.

The test suite was removing all services from the browser process'
incoming service directory, causing the NetworkService to sometimes
fail to be able to contact the platform network stack.

Fix the test suite not to disable access to platform services.

Bug: 1150754
Change-Id: Idd34735bcd494502af9391ab212313cea2b94c22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2637517
Commit-Queue: Wez <wez@chromium.org>
Commit-Queue: Marina Ciocea <marinaciocea@chromium.org>
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: default avatarMarina Ciocea <marinaciocea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844814}
parent 083efdbd
...@@ -37,12 +37,13 @@ class ThemeManagerTest : public cr_fuchsia::WebEngineBrowserTest, ...@@ -37,12 +37,13 @@ class ThemeManagerTest : public cr_fuchsia::WebEngineBrowserTest,
protected: protected:
void SetUpOnMainThread() override { void SetUpOnMainThread() override {
component_context_.emplace(
base::TestComponentContextForProcess::InitialState::kCloneAll);
display_binding_.emplace(component_context_->additional_services(), this);
ASSERT_TRUE(embedded_test_server()->Start()); ASSERT_TRUE(embedded_test_server()->Start());
cr_fuchsia::WebEngineBrowserTest::SetUpOnMainThread(); cr_fuchsia::WebEngineBrowserTest::SetUpOnMainThread();
component_context_.emplace(
base::TestComponentContextForProcess::InitialState::kEmpty);
display_binding_.emplace(component_context_->additional_services(), this);
frame_ = WebEngineBrowserTest::CreateFrame(&navigation_listener_); frame_ = WebEngineBrowserTest::CreateFrame(&navigation_listener_);
base::RunLoop().RunUntilIdle(); base::RunLoop().RunUntilIdle();
frame_->GetNavigationController(controller_.NewRequest()); frame_->GetNavigationController(controller_.NewRequest());
......
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