Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: components/ssl_errors/error_classification_unittest.cc

Issue 2449193002: Attempt an on-demand time fetch when encountering a date invalid error (Closed)
Patch Set: meacer nits Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/network_time/network_time_tracker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ssl_errors/error_classification_unittest.cc
diff --git a/components/ssl_errors/error_classification_unittest.cc b/components/ssl_errors/error_classification_unittest.cc
index 9e203a965a72d679c50572920cfdc008c0854178..551ecd04fe37dd48dc4b9fc95f2c7c29627c8b13 100644
--- a/components/ssl_errors/error_classification_unittest.cc
+++ b/components/ssl_errors/error_classification_unittest.cc
@@ -42,7 +42,7 @@ NetworkErrorResponseHandler(const net::test_server::HttpRequest& request) {
class SSLErrorClassificationTest : public ::testing::Test {
public:
SSLErrorClassificationTest()
- : field_trial_test_(new network_time::FieldTrialTest()) {}
+ : field_trial_test_(network_time::FieldTrialTest::CreateForUnitTest()) {}
network_time::FieldTrialTest* field_trial_test() {
return field_trial_test_.get();
}
@@ -357,7 +357,8 @@ TEST_F(SSLErrorClassificationTest, NetworkClockStateHistogram) {
new net::TestURLRequestContextGetter(io_thread.task_runner()));
network_time_tracker.SetTimeServerURLForTesting(test_server.GetURL("/"));
field_trial_test()->SetNetworkQueriesWithVariationsService(
- true, 0.0, network_time::FieldTrialTest::ENABLE_FETCHES_ON_DEMAND);
+ true, 0.0,
+ network_time::FieldTrialTest::FETCHES_IN_BACKGROUND_AND_ON_DEMAND);
// No sync attempt.
EXPECT_EQ(
« no previous file with comments | « components/network_time/network_time_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698