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

Unified Diff: chrome/browser/ssl/ssl_error_handler_unittest.cc

Issue 2546433002: Fix flakiness in SSLErrorHandlerDateInvalidTest tests (Closed)
Patch Set: Addressed comment Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_error_handler_unittest.cc
diff --git a/chrome/browser/ssl/ssl_error_handler_unittest.cc b/chrome/browser/ssl/ssl_error_handler_unittest.cc
index f31e10ce187be2ea2d3931da6a5aae3eb29fe71e..34b6395f7cf3bf109877df63ebabfab92afaa835 100644
--- a/chrome/browser/ssl/ssl_error_handler_unittest.cc
+++ b/chrome/browser/ssl/ssl_error_handler_unittest.cc
@@ -223,6 +223,10 @@ class SSLErrorHandlerDateInvalidTest : public ChromeRenderViewHostTestHarness {
error_handler_.reset(
new SSLErrorHandlerForTest(profile(), web_contents(), ssl_info_));
error_handler_->SetNetworkTimeTrackerForTest(tracker_.get());
+
+ // Fix flakiness in case system time is off and triggers a bad clock
+ // interstitial. https://crbug.com/666821#c50
+ ssl_errors::SetBuildTimeForTesting(base::Time::Now());
}
void TearDown() override {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698