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

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

Issue 418133012: Add button to page info to revoke user certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits from pkasting and rsesek Created 6 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: 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 5e4366d375d6adba7091a5ae0cb9f98082b1d088..dcee74f76ee659a2dc9d6e562b50a380974c5f4c 100644
--- a/content/browser/ssl/ssl_host_state_unittest.cc
+++ b/content/browser/ssl/ssl_host_state_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/ssl/ssl_host_state.h"
+#include "content/browser/ssl/ssl_host_state_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -90,11 +90,10 @@ unsigned char google_der[] = {
namespace content {
-class SSLHostStateTest : public testing::Test {
-};
+class SSLHostStateImplTest : public testing::Test {};
-TEST_F(SSLHostStateTest, DidHostRunInsecureContent) {
- SSLHostState state;
+TEST_F(SSLHostStateImplTest, DidHostRunInsecureContent) {
+ SSLHostStateImpl state;
EXPECT_FALSE(state.DidHostRunInsecureContent("www.google.com", 42));
EXPECT_FALSE(state.DidHostRunInsecureContent("www.google.com", 191));
@@ -113,12 +112,12 @@ TEST_F(SSLHostStateTest, DidHostRunInsecureContent) {
EXPECT_TRUE(state.DidHostRunInsecureContent("example.com", 42));
}
-TEST_F(SSLHostStateTest, QueryPolicy) {
+TEST_F(SSLHostStateImplTest, QueryPolicy) {
scoped_refptr<net::X509Certificate> google_cert(
net::X509Certificate::CreateFromBytes(
reinterpret_cast<const char*>(google_der), sizeof(google_der)));
- SSLHostState state;
+ SSLHostStateImpl state;
EXPECT_EQ(net::CertPolicy::UNKNOWN,
state.QueryPolicy(google_cert.get(),

Powered by Google App Engine
This is Rietveld 408576698