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

Unified Diff: sync/internal_api/http_bridge_unittest.cc

Issue 16298002: Update sync/, sql/, and printing/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « sync/internal_api/http_bridge.cc ('k') | sync/notifier/non_blocking_invalidator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/http_bridge_unittest.cc
diff --git a/sync/internal_api/http_bridge_unittest.cc b/sync/internal_api/http_bridge_unittest.cc
index 605d9c0e44ce60c10572835444044c334ff7a429..6db061ed78b5142b5b68d42a124361fffbd072e8 100644
--- a/sync/internal_api/http_bridge_unittest.cc
+++ b/sync/internal_api/http_bridge_unittest.cc
@@ -160,11 +160,11 @@ void SyncHttpBridgeTest::RunSyncThreadBridgeUseTest(
scoped_refptr<net::URLRequestContextGetter> ctx_getter(
new net::TestURLRequestContextGetter(io_thread_.message_loop_proxy()));
{
- scoped_refptr<ShuntedHttpBridge> bridge(new ShuntedHttpBridge(
- ctx_getter, this, true));
+ scoped_refptr<ShuntedHttpBridge> bridge(
+ new ShuntedHttpBridge(ctx_getter.get(), this, true));
bridge->SetURL("http://www.google.com", 9999);
bridge->SetPostPayload("text/plain", 2, " ");
- bridge_for_race_test_ = bridge;
+ bridge_for_race_test_ = bridge.get();
signal_when_created->Signal();
int os_error = 0;
@@ -190,8 +190,8 @@ TEST_F(SyncHttpBridgeTest, TestUsesSameHttpNetworkSession) {
TEST_F(SyncHttpBridgeTest, TestMakeSynchronousPostShunted) {
scoped_refptr<net::URLRequestContextGetter> ctx_getter(
new net::TestURLRequestContextGetter(io_thread()->message_loop_proxy()));
- scoped_refptr<HttpBridge> http_bridge(new ShuntedHttpBridge(
- ctx_getter, this, false));
+ scoped_refptr<HttpBridge> http_bridge(
+ new ShuntedHttpBridge(ctx_getter.get(), this, false));
http_bridge->SetURL("http://www.google.com", 9999);
http_bridge->SetPostPayload("text/plain", 2, " ");
@@ -312,8 +312,8 @@ TEST_F(SyncHttpBridgeTest, TestResponseHeader) {
TEST_F(SyncHttpBridgeTest, Abort) {
scoped_refptr<net::URLRequestContextGetter> ctx_getter(
new net::TestURLRequestContextGetter(io_thread()->message_loop_proxy()));
- scoped_refptr<ShuntedHttpBridge> http_bridge(new ShuntedHttpBridge(
- ctx_getter, this, true));
+ scoped_refptr<ShuntedHttpBridge> http_bridge(
+ new ShuntedHttpBridge(ctx_getter.get(), this, true));
http_bridge->SetURL("http://www.google.com", 9999);
http_bridge->SetPostPayload("text/plain", 2, " ");
@@ -331,8 +331,8 @@ TEST_F(SyncHttpBridgeTest, Abort) {
TEST_F(SyncHttpBridgeTest, AbortLate) {
scoped_refptr<net::URLRequestContextGetter> ctx_getter(
new net::TestURLRequestContextGetter(io_thread()->message_loop_proxy()));
- scoped_refptr<ShuntedHttpBridge> http_bridge(new ShuntedHttpBridge(
- ctx_getter, this, false));
+ scoped_refptr<ShuntedHttpBridge> http_bridge(
+ new ShuntedHttpBridge(ctx_getter.get(), this, false));
http_bridge->SetURL("http://www.google.com", 9999);
http_bridge->SetPostPayload("text/plain", 2, " ");
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | sync/notifier/non_blocking_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698