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

Unified Diff: net/ssl/server_bound_cert_service_unittest.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 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 | « net/ssl/default_server_bound_cert_store.cc ('k') | net/ssl/ssl_client_auth_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/server_bound_cert_service_unittest.cc
diff --git a/net/ssl/server_bound_cert_service_unittest.cc b/net/ssl/server_bound_cert_service_unittest.cc
index 51c74bfe056182c0abced25114b2e46a2ce6bbb6..0c5105e4a8db1def4ba64810857261e96582fa8b 100644
--- a/net/ssl/server_bound_cert_service_unittest.cc
+++ b/net/ssl/server_bound_cert_service_unittest.cc
@@ -38,7 +38,7 @@ class ServerBoundCertServiceTest : public testing::Test {
}
virtual ~ServerBoundCertServiceTest() {
- if (sequenced_worker_pool_)
+ if (sequenced_worker_pool_.get())
sequenced_worker_pool_->Shutdown();
}
@@ -323,7 +323,7 @@ TEST_F(ServerBoundCertServiceTest, ExtractValuesFromBytesEC) {
// Check that we can retrieve the cert from the bytes.
scoped_refptr<X509Certificate> x509cert(
X509Certificate::CreateFromBytes(der_cert.data(), der_cert.size()));
- EXPECT_TRUE(x509cert != NULL);
+ EXPECT_TRUE(x509cert.get() != NULL);
}
// Tests that the callback of a canceled request is never made.
« no previous file with comments | « net/ssl/default_server_bound_cert_store.cc ('k') | net/ssl/ssl_client_auth_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698