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

Unified Diff: webkit/appcache/appcache_request_handler_unittest.cc

Issue 16155009: Update webkit/ 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 | « webkit/appcache/appcache_request_handler.cc ('k') | webkit/appcache/appcache_response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_request_handler_unittest.cc
diff --git a/webkit/appcache/appcache_request_handler_unittest.cc b/webkit/appcache/appcache_request_handler_unittest.cc
index 800c070e799e298353e8154e95db722ac0ef6985..5343116de6ea7c2e36edd0b29e7fbb62cbdb675b 100644
--- a/webkit/appcache/appcache_request_handler_unittest.cc
+++ b/webkit/appcache/appcache_request_handler_unittest.cc
@@ -386,14 +386,14 @@ class AppCacheRequestHandlerTest : public testing::Test {
// real network job gets created. We expect NULL here which will cause
// the net library to create a real job.
job_ = handler_->MaybeLoadResource(request_.get(), empty_network_delegate_);
- EXPECT_FALSE(job_);
+ EXPECT_FALSE(job_.get());
// Simulate an http error of the real network job.
request_->SimulateResponseCode(500);
job_ = handler_->MaybeLoadFallbackForResponse(
request_.get(), empty_network_delegate_);
- EXPECT_TRUE(job_);
+ EXPECT_TRUE(job_.get());
EXPECT_TRUE(job_->is_delivering_appcache_response());
int64 cache_id = kNoCacheId;
@@ -446,7 +446,7 @@ class AppCacheRequestHandlerTest : public testing::Test {
// real network job gets created. We expect NULL here which will cause
// the net library to create a real job.
job_ = handler_->MaybeLoadResource(request_.get(), empty_network_delegate_);
- EXPECT_FALSE(job_);
+ EXPECT_FALSE(job_.get());
// Simulate an http error of the real network job, but with custom
// headers that override the fallback behavior.
@@ -461,7 +461,7 @@ class AppCacheRequestHandlerTest : public testing::Test {
job_ = handler_->MaybeLoadFallbackForResponse(
request_.get(), empty_network_delegate_);
- EXPECT_FALSE(job_);
+ EXPECT_FALSE(job_.get());
TestFinished();
}
@@ -526,7 +526,7 @@ class AppCacheRequestHandlerTest : public testing::Test {
EXPECT_TRUE(job_.get());
EXPECT_TRUE(job_->is_waiting());
- host_->FinishCacheSelection(cache, NULL);
+ host_->FinishCacheSelection(cache.get(), NULL);
EXPECT_FALSE(job_->is_waiting());
EXPECT_TRUE(job_->is_delivering_error_response());
« no previous file with comments | « webkit/appcache/appcache_request_handler.cc ('k') | webkit/appcache/appcache_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698