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

Unified Diff: chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/net/sqlite_server_bound_cert_store.cc ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc
diff --git a/chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc b/chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc
index 7be0eea8efaa2e91796b7b1fe7794d56bca7fb0b..44e3c588b747d23c18d890f931b2b085e744f64d 100644
--- a/chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc
+++ b/chrome/browser/net/sqlite_server_bound_cert_store_unittest.cc
@@ -99,7 +99,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestPersistence) {
store_ = NULL;
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
// Make sure we wait until the destructor has run.
ASSERT_TRUE(helper->Run());
store_ = new SQLiteServerBoundCertStore(
@@ -213,7 +214,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestUpgradeV1) {
// Make sure we wait until the destructor has run.
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
ASSERT_TRUE(helper->Run());
// Verify the database version is updated.
@@ -301,7 +303,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestUpgradeV2) {
// Make sure we wait until the destructor has run.
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
ASSERT_TRUE(helper->Run());
// Verify the database version is updated.
@@ -393,7 +396,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestUpgradeV3) {
// Make sure we wait until the destructor has run.
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
ASSERT_TRUE(helper->Run());
// Verify the database version is updated.
@@ -437,7 +441,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestFlush) {
store_->Flush(base::Closure());
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
ASSERT_TRUE(helper->Run());
// We forced a write, so now the file will be bigger.
@@ -476,7 +481,8 @@ TEST_F(SQLiteServerBoundCertStoreTest, TestFlushCompletionCallback) {
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::DB).get()));
ASSERT_TRUE(helper->Run());
ASSERT_EQ(1, counter->callback_count());
« no previous file with comments | « chrome/browser/net/sqlite_server_bound_cert_store.cc ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698