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

Unified Diff: chrome/common/net/x509_certificate_model_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
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/x509_certificate_model_unittest.cc
diff --git a/chrome/common/net/x509_certificate_model_unittest.cc b/chrome/common/net/x509_certificate_model_unittest.cc
index 37f3fe487a41ebff70f88028ae0cb7bdae3ebf87..d063e540dbdc8595e9211ff26d7eb552fea088cb 100644
--- a/chrome/common/net/x509_certificate_model_unittest.cc
+++ b/chrome/common/net/x509_certificate_model_unittest.cc
@@ -321,9 +321,9 @@ TEST(X509CertificateModelTest, GetCMSString) {
EXPECT_TRUE(certs[i]->Equals(decoded_certs[i]));
#else
// NSS sorts the certs before writing the file.
- EXPECT_TRUE(certs[0]->Equals(decoded_certs.back()));
+ EXPECT_TRUE(certs[0]->Equals(decoded_certs.back().get()));
for (size_t i = 1; i < certs.size(); ++i)
- EXPECT_TRUE(certs[i]->Equals(decoded_certs[i-1]));
+ EXPECT_TRUE(certs[i]->Equals(decoded_certs[i - 1].get()));
#endif
}
@@ -339,7 +339,7 @@ TEST(X509CertificateModelTest, GetCMSString) {
net::X509Certificate::FORMAT_PKCS7);
ASSERT_EQ(1U, decoded_certs.size());
- EXPECT_TRUE(certs[0]->Equals(decoded_certs[0]));
+ EXPECT_TRUE(certs[0]->Equals(decoded_certs[0].get()));
}
}
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698