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

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

Issue 511473002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move download out Created 6 years, 4 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/ssl_error_classification_unittest.cc
diff --git a/chrome/browser/ssl/ssl_error_classification_unittest.cc b/chrome/browser/ssl/ssl_error_classification_unittest.cc
index bb04b15a5661b640d8c8033f8e3d40413aac8ae2..4a25433e70f01b6d4ff790d9cccd3ce650c0f748 100644
--- a/chrome/browser/ssl/ssl_error_classification_unittest.cc
+++ b/chrome/browser/ssl/ssl_error_classification_unittest.cc
@@ -47,7 +47,7 @@ TEST(SSLErrorClassificationTest, TestNameMismatch) {
scoped_refptr<net::X509Certificate> google_cert(
net::X509Certificate::CreateFromBytes(
reinterpret_cast<const char*>(google_der), sizeof(google_der)));
- ASSERT_NE(static_cast<net::X509Certificate*>(NULL), google_cert);
+ ASSERT_NE(static_cast<net::X509Certificate*>(NULL), google_cert.get());
base::Time time = base::Time::NowFromSystemTime();
std::vector<std::string> dns_names_google;
dns_names_google.push_back("www");
@@ -125,7 +125,7 @@ TEST(SSLErrorClassificationTest, TestNameMismatch) {
scoped_refptr<net::X509Certificate> webkit_cert(
net::X509Certificate::CreateFromBytes(
reinterpret_cast<const char*>(webkit_der), sizeof(webkit_der)));
- ASSERT_NE(static_cast<net::X509Certificate*>(NULL), webkit_cert);
+ ASSERT_NE(static_cast<net::X509Certificate*>(NULL), webkit_cert.get());
std::vector<std::string> dns_names_webkit;
dns_names_webkit.push_back("webkit");
dns_names_webkit.push_back("org");
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chrome/browser/supervised_user/supervised_user_settings_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698