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

Unified Diff: net/url_request/url_fetcher_impl_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/url_request/url_fetcher_core.cc ('k') | net/url_request/url_fetcher_response_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher_impl_unittest.cc
diff --git a/net/url_request/url_fetcher_impl_unittest.cc b/net/url_request/url_fetcher_impl_unittest.cc
index de4221f871ed38e6296005114c3bf3a392d01923..f142f1ee9dfe1ff8a6a951bd3adb87c984c9c33a 100644
--- a/net/url_request/url_fetcher_impl_unittest.cc
+++ b/net/url_request/url_fetcher_impl_unittest.cc
@@ -461,7 +461,7 @@ class CancelTestURLRequestContextGetter
0.0,
4000));
context_->throttler_manager()
- ->OverrideEntryForTests(throttle_for_url_, entry);
+ ->OverrideEntryForTests(throttle_for_url_, entry.get());
context_created_.Signal();
}
@@ -1202,7 +1202,8 @@ TEST_F(URLFetcherProtectTest, Overload) {
2.0,
0.0,
256));
- request_context()->throttler_manager()->OverrideEntryForTests(url, entry);
+ request_context()->throttler_manager()
+ ->OverrideEntryForTests(url, entry.get());
CreateFetcher(url);
@@ -1230,7 +1231,8 @@ TEST_F(URLFetcherProtectTest, ServerUnavailable) {
2.0,
0.0,
256));
- request_context()->throttler_manager()->OverrideEntryForTests(url, entry);
+ request_context()->throttler_manager()
+ ->OverrideEntryForTests(url, entry.get());
CreateFetcher(url);
@@ -1260,7 +1262,8 @@ TEST_F(URLFetcherProtectTestPassedThrough, ServerUnavailablePropagateResponse) {
150000));
// Total time if *not* for not doing automatic backoff would be 150s.
// In reality it should be "as soon as server responds".
- request_context()->throttler_manager()->OverrideEntryForTests(url, entry);
+ request_context()->throttler_manager()
+ ->OverrideEntryForTests(url, entry.get());
CreateFetcher(url);
@@ -1322,7 +1325,8 @@ TEST_F(URLFetcherCancelTest, CancelWhileDelayedStartTaskPending) {
2.0,
0.0,
4000));
- request_context()->throttler_manager()->OverrideEntryForTests(url, entry);
+ request_context()->throttler_manager()
+ ->OverrideEntryForTests(url, entry.get());
// Fake that a request has just started.
entry->ReserveSendingTimeForNextRequest(base::TimeTicks());
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_fetcher_response_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698