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

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

Issue 2903383002: Limit certificate error reports to running in official builds (Closed)
Patch Set: fix more tests Created 3 years, 7 months 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
Index: chrome/browser/ssl/ssl_browser_tests.cc
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc
index f94398941f19c149b116eb42416e9dffc828070f..5992e360a97fb24398efe4aa442bdf16ac886d94 100644
--- a/chrome/browser/ssl/ssl_browser_tests.cc
+++ b/chrome/browser/ssl/ssl_browser_tests.cc
@@ -768,7 +768,11 @@ class SSLUITestIgnoreLocalhostCertErrors : public SSLUITest {
class SSLUITestWithExtendedReporting : public SSLUITest {
public:
- SSLUITestWithExtendedReporting() : SSLUITest() {}
+ SSLUITestWithExtendedReporting() : SSLUITest() {
+ // Certificate reports are only sent from official builds, unless this has
+ // been called.
+ CertReportHelper::SetFakeOfficialBuildForTesting();
+ }
};
// Visits a regular page over http.
« chrome/browser/ssl/cert_report_helper.cc ('K') | « chrome/browser/ssl/cert_report_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698