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

Unified Diff: content/browser/appcache/appcache_storage_impl_unittest.cc

Issue 478053003: Remove implicit conversions from scoped_refptr to T* in content/browser/appcache/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: content/browser/appcache/appcache_storage_impl_unittest.cc
diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc
index 29d4a2799d755de946e72e147251ed401c7c249d..f431aa815ce276a85d90a1e7b243d8c5773fbb42 100644
--- a/content/browser/appcache/appcache_storage_impl_unittest.cc
+++ b/content/browser/appcache/appcache_storage_impl_unittest.cc
@@ -710,7 +710,7 @@ class AppCacheStorageImplTest : public testing::Test {
base::Unretained(this), now));
// Conduct the test.
- EXPECT_EQ(cache_, group_->newest_complete_cache());
+ EXPECT_EQ(cache_.get(), group_->newest_complete_cache());
storage()->StoreGroupAndNewestCache(group_.get(), cache_.get(), delegate());
EXPECT_FALSE(delegate()->stored_group_success_);
}
@@ -718,7 +718,7 @@ class AppCacheStorageImplTest : public testing::Test {
void Verify_StoreExistingGroupExistingCache(
base::Time expected_update_time) {
EXPECT_TRUE(delegate()->stored_group_success_);
- EXPECT_EQ(cache_, group_->newest_complete_cache());
+ EXPECT_EQ(cache_.get(), group_->newest_complete_cache());
AppCacheDatabase::CacheRecord cache_record;
EXPECT_TRUE(database()->FindCache(1, &cache_record));
@@ -1798,7 +1798,7 @@ class AppCacheStorageImplTest : public testing::Test {
EXPECT_TRUE(frontend_.error_event_was_raised_);
AppCacheHost* host1 = backend_->GetHost(1);
EXPECT_FALSE(host1->associated_cache());
- EXPECT_FALSE(host1->group_being_updated_);
+ EXPECT_FALSE(host1->group_being_updated_.get());
EXPECT_TRUE(host1->disabled_storage_reference_.get());
} else {
ASSERT_EQ(CORRUPT_CACHE_ON_LOAD_EXISTING, test_case);
« no previous file with comments | « content/browser/appcache/appcache_storage_impl.cc ('k') | content/browser/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698