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

Unified Diff: content/browser/ssl/ssl_host_state_unittest.cc

Issue 10384211: Add SSlHostState::Clear() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove #ifdef's, add test code Created 8 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
« no previous file with comments | « content/browser/ssl/ssl_host_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_host_state_unittest.cc
diff --git a/content/browser/ssl/ssl_host_state_unittest.cc b/content/browser/ssl/ssl_host_state_unittest.cc
index 08a589fc82cd435a5a05bf136d6b73989cafa7c1..7dd70eb333338996987f6b22efe3ae09d59773df 100644
--- a/content/browser/ssl/ssl_host_state_unittest.cc
+++ b/content/browser/ssl/ssl_host_state_unittest.cc
@@ -151,4 +151,14 @@ TEST_F(SSLHostStateTest, QueryPolicy) {
net::CertPolicy::UNKNOWN);
EXPECT_EQ(state.QueryPolicy(google_cert.get(), "example.com"),
net::CertPolicy::DENIED);
+
+ state.Clear();
+
+ EXPECT_EQ(state.QueryPolicy(google_cert.get(), "www.google.com"),
+ net::CertPolicy::UNKNOWN);
+ EXPECT_EQ(state.QueryPolicy(google_cert.get(), "google.com"),
+ net::CertPolicy::UNKNOWN);
+ EXPECT_EQ(state.QueryPolicy(google_cert.get(), "example.com"),
+ net::CertPolicy::UNKNOWN);
+
}
« no previous file with comments | « content/browser/ssl/ssl_host_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698