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

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

Issue 1244783006: Add Finch testing configs for ReportCertificateErrors study (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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/captive_portal_blocking_page_browsertest.cc
diff --git a/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc b/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
index 0d649ee633bc87fb176f524546a33baa85c1b2c0..e641d4b53ca3ed4f5e3aa7804c9ab103ea9a3828 100644
--- a/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
+++ b/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
@@ -279,16 +279,18 @@ IN_PROC_BROWSER_TEST_F(CaptivePortalBlockingPageTest,
}
IN_PROC_BROWSER_TEST_F(CaptivePortalBlockingPageTest, CertReportingOptIn) {
meacer 2015/07/21 06:04:31 nit: Can you add a comment here saying something l
estark 2015/07/21 14:50:09 Done. I also remove the Finch check from the next
- CertificateReportingTestUtils::SetCertReportingFinchConfig(
- CertReportHelper::kFinchGroupShowPossiblySend, "1.0");
- TestCertReporting(CertificateReportingTestUtils::EXTENDED_REPORTING_OPT_IN);
+ if (CertificateReportingTestUtils::GetReportExpectedFromFinch() ==
+ CertificateReportingTestUtils::CERT_REPORT_EXPECTED) {
+ TestCertReporting(CertificateReportingTestUtils::EXTENDED_REPORTING_OPT_IN);
+ }
}
IN_PROC_BROWSER_TEST_F(CaptivePortalBlockingPageTest, CertReportingOptOut) {
- CertificateReportingTestUtils::SetCertReportingFinchConfig(
- CertReportHelper::kFinchGroupShowPossiblySend, "1.0");
- TestCertReporting(
- CertificateReportingTestUtils::EXTENDED_REPORTING_DO_NOT_OPT_IN);
+ if (CertificateReportingTestUtils::GetReportExpectedFromFinch() ==
+ CertificateReportingTestUtils::CERT_REPORT_EXPECTED) {
+ TestCertReporting(
+ CertificateReportingTestUtils::EXTENDED_REPORTING_DO_NOT_OPT_IN);
+ }
}
class CaptivePortalBlockingPageIDNTest : public SecurityInterstitialIDNTest {

Powered by Google App Engine
This is Rietveld 408576698