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

Unified Diff: net/ocsp/nss_ocsp_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/ocsp/nss_ocsp.cc ('k') | net/proxy/mock_proxy_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ocsp/nss_ocsp_unittest.cc
diff --git a/net/ocsp/nss_ocsp_unittest.cc b/net/ocsp/nss_ocsp_unittest.cc
index 076e9bdd2cd529f24b3bf99adcfd49de19ea6de7..be29d5f79313550c895469905fb55ed109bfecbc 100644
--- a/net/ocsp/nss_ocsp_unittest.cc
+++ b/net/ocsp/nss_ocsp_unittest.cc
@@ -73,8 +73,7 @@ class NssHttpTest : public ::testing::Test {
: context_(false),
handler_(NULL),
verify_proc_(new CertVerifyProcNSS),
- verifier_(new MultiThreadedCertVerifier(verify_proc_)) {
- }
+ verifier_(new MultiThreadedCertVerifier(verify_proc_.get())) {}
virtual ~NssHttpTest() {}
virtual void SetUp() {
@@ -136,16 +135,21 @@ TEST_F(NssHttpTest, TestAia) {
ImportCertFromFile(GetTestCertsDirectory(), "aia-root.pem"));
ASSERT_TRUE(test_root.get());
- ScopedTestRoot scoped_root(test_root);
+ ScopedTestRoot scoped_root(test_root.get());
CertVerifyResult verify_result;
TestCompletionCallback test_callback;
CertVerifier::RequestHandle request_handle;
int flags = CertVerifier::VERIFY_CERT_IO_ENABLED;
- int error = verifier()->Verify(test_cert, "aia-host.invalid", flags, NULL,
- &verify_result, test_callback.callback(),
- &request_handle, BoundNetLog());
+ int error = verifier()->Verify(test_cert.get(),
+ "aia-host.invalid",
+ flags,
+ NULL,
+ &verify_result,
+ test_callback.callback(),
+ &request_handle,
+ BoundNetLog());
ASSERT_EQ(ERR_IO_PENDING, error);
error = test_callback.WaitForResult();
« no previous file with comments | « net/ocsp/nss_ocsp.cc ('k') | net/proxy/mock_proxy_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698