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

Unified Diff: webkit/appcache/appcache_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_test_helper.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_unittest.cc
diff --git a/webkit/appcache/appcache_unittest.cc b/webkit/appcache/appcache_unittest.cc
index d097a4585ced2c9a2e3a6291384656df432689af..68306c882b3a53f935ac088d09d5e61c4769ccd7 100644
--- a/webkit/appcache/appcache_unittest.cc
+++ b/webkit/appcache/appcache_unittest.cc
@@ -20,7 +20,7 @@ TEST(AppCacheTest, CleanupUnusedCache) {
cache->set_complete(true);
scoped_refptr<AppCacheGroup> group(
new AppCacheGroup(service.storage(), GURL("http://blah/manifest"), 111));
- group->AddCache(cache);
+ group->AddCache(cache.get());
AppCacheHost host1(1, &frontend, &service);
AppCacheHost host2(2, &frontend, &service);
@@ -559,9 +559,12 @@ TEST(AppCacheTest, ToFromDatabaseRecords) {
std::vector<AppCacheDatabase::NamespaceRecord> intercepts;
std::vector<AppCacheDatabase::NamespaceRecord> fallbacks;
std::vector<AppCacheDatabase::OnlineWhiteListRecord> whitelists;
- cache->ToDatabaseRecords(
- group, &cache_record, &entries,
- &intercepts, &fallbacks, &whitelists);
+ cache->ToDatabaseRecords(group.get(),
+ &cache_record,
+ &entries,
+ &intercepts,
+ &fallbacks,
+ &whitelists);
EXPECT_EQ(kCacheId, cache_record.cache_id);
EXPECT_EQ(kGroupId, cache_record.group_id);
EXPECT_TRUE(cache_record.online_wildcard);
« no previous file with comments | « webkit/appcache/appcache_test_helper.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698