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

Unified Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc

Issue 578553004: Remove the "snionly" concept from the HSTS preload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 years, 3 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/net/chrome_fraudulent_certificate_reporter_unittest.cc
diff --git a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
index f4134d1d08d537d42556c614a0c734ed38a5439a..f39afb78f8a1f698d55dfa9cebbe41defbbcfc5d 100644
--- a/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
+++ b/chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc
@@ -83,11 +83,9 @@ class SendingTestReporter : public TestReporter {
// Passes if invoked with a good SSLInfo and for a hostname that is a Google
// pinned property.
virtual void SendReport(const std::string& hostname,
- const SSLInfo& ssl_info,
- bool sni_available) OVERRIDE {
+ const SSLInfo& ssl_info) OVERRIDE {
EXPECT_TRUE(IsGoodSSLInfo(ssl_info));
- EXPECT_TRUE(net::TransportSecurityState::IsGooglePinnedProperty(
- hostname, sni_available));
+ EXPECT_TRUE(net::TransportSecurityState::IsGooglePinnedProperty(hostname));
passed_ = true;
}
@@ -108,11 +106,9 @@ class NotSendingTestReporter : public TestReporter {
// Passes if invoked with a bad SSLInfo and for a hostname that is not a
// Google pinned property.
virtual void SendReport(const std::string& hostname,
- const SSLInfo& ssl_info,
- bool sni_available) OVERRIDE {
+ const SSLInfo& ssl_info) OVERRIDE {
EXPECT_FALSE(IsGoodSSLInfo(ssl_info));
- EXPECT_FALSE(net::TransportSecurityState::IsGooglePinnedProperty(
- hostname, sni_available));
+ EXPECT_FALSE(net::TransportSecurityState::IsGooglePinnedProperty(hostname));
}
};
@@ -133,12 +129,10 @@ class MockReporter : public ChromeFraudulentCertificateReporter {
virtual void SendReport(
const std::string& hostname,
- const net::SSLInfo& ssl_info,
- bool sni_available) OVERRIDE {
+ const net::SSLInfo& ssl_info) OVERRIDE {
DCHECK(!hostname.empty());
DCHECK(ssl_info.is_valid());
- ChromeFraudulentCertificateReporter::SendReport(hostname, ssl_info,
- sni_available);
+ ChromeFraudulentCertificateReporter::SendReport(hostname, ssl_info);
}
};

Powered by Google App Engine
This is Rietveld 408576698