Commit e38e5853 authored by Robbie McElrath's avatar Robbie McElrath Committed by Commit Bot

Fix Feature set up in SSLErrorHandlerDateInvalidTest.

This moves Feature set up in SSLErrorHandlerDateInvalidTest to the
constructor rather than the SetUp method to make sure it gets set before
things start checking for Features.

Bug: 989225
Change-Id: If4b781ee37534bb8100a781aa99cecab8ad7f06d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732151Reviewed-by: default avatarRyan Sleevi <rsleevi@chromium.org>
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683666}
parent a695961b
...@@ -602,16 +602,16 @@ class SSLErrorHandlerDateInvalidTest : public ChromeRenderViewHostTestHarness { ...@@ -602,16 +602,16 @@ class SSLErrorHandlerDateInvalidTest : public ChromeRenderViewHostTestHarness {
tick_clock_(new base::SimpleTestTickClock), tick_clock_(new base::SimpleTestTickClock),
test_server_(new net::EmbeddedTestServer) { test_server_(new net::EmbeddedTestServer) {
network_time::NetworkTimeTracker::RegisterPrefs(pref_service_.registry()); network_time::NetworkTimeTracker::RegisterPrefs(pref_service_.registry());
field_trial_test()->SetNetworkQueriesWithVariationsService(
false, 0.0,
network_time::NetworkTimeTracker::FETCHES_IN_BACKGROUND_ONLY);
} }
void SetUp() override { void SetUp() override {
ChromeRenderViewHostTestHarness::SetUp(); ChromeRenderViewHostTestHarness::SetUp();
SSLErrorHandler::ResetConfigForTesting(); SSLErrorHandler::ResetConfigForTesting();
field_trial_test()->SetNetworkQueriesWithVariationsService(
false, 0.0,
network_time::NetworkTimeTracker::FETCHES_IN_BACKGROUND_ONLY);
base::RunLoop run_loop; base::RunLoop run_loop;
std::unique_ptr<network::SharedURLLoaderFactoryInfo> std::unique_ptr<network::SharedURLLoaderFactoryInfo>
url_loader_factory_info; url_loader_factory_info;
......
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