diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 07:26:25 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 07:26:25 +0000 |
commit | 4b8d7493f1b6e01017fb9775d7c9c84b115128e1 (patch) | |
tree | 688253bcc108eee06c015964e656a000b286b8ce /chrome/browser/ssl/ssl_host_state_unittest.cc | |
parent | acab73cf73225002a1405ccca7b71caee4686cf0 (diff) | |
download | chromium_src-4b8d7493f1b6e01017fb9775d7c9c84b115128e1.zip chromium_src-4b8d7493f1b6e01017fb9775d7c9c84b115128e1.tar.gz chromium_src-4b8d7493f1b6e01017fb9775d7c9c84b115128e1.tar.bz2 |
Remove old way of handling mixed content now that we have the new mixed content
API in place.
R=agl
TEST=Covered by our mixed content browser tests
Review URL: http://codereview.chromium.org/248013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl/ssl_host_state_unittest.cc')
-rw-r--r-- | chrome/browser/ssl/ssl_host_state_unittest.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/chrome/browser/ssl/ssl_host_state_unittest.cc b/chrome/browser/ssl/ssl_host_state_unittest.cc index f88b45d..2a3db46 100644 --- a/chrome/browser/ssl/ssl_host_state_unittest.cc +++ b/chrome/browser/ssl/ssl_host_state_unittest.cc @@ -152,23 +152,3 @@ TEST_F(SSLHostStateTest, QueryPolicy) { EXPECT_EQ(state.QueryPolicy(google_cert.get(), "example.com"), net::X509Certificate::Policy::DENIED); } - -TEST_F(SSLHostStateTest, AllowMixedContentForHost) { - SSLHostState state; - - EXPECT_FALSE(state.DidAllowMixedContentForHost("www.google.com")); - EXPECT_FALSE(state.DidAllowMixedContentForHost("google.com")); - EXPECT_FALSE(state.DidAllowMixedContentForHost("example.com")); - - state.AllowMixedContentForHost("www.google.com"); - - EXPECT_TRUE(state.DidAllowMixedContentForHost("www.google.com")); - EXPECT_FALSE(state.DidAllowMixedContentForHost("google.com")); - EXPECT_FALSE(state.DidAllowMixedContentForHost("example.com")); - - state.AllowMixedContentForHost("example.com"); - - EXPECT_TRUE(state.DidAllowMixedContentForHost("www.google.com")); - EXPECT_FALSE(state.DidAllowMixedContentForHost("google.com")); - EXPECT_TRUE(state.DidAllowMixedContentForHost("example.com")); -} |