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

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

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_disk_cache_unittest.cc
diff --git a/content/browser/appcache/appcache_disk_cache_unittest.cc b/content/browser/appcache/appcache_disk_cache_unittest.cc
index b9c67cf9a973371920ac904df53c919100988b62..a1a9841ad7484ef942e0dc2cbf808962ffdd31be 100644
--- a/content/browser/appcache/appcache_disk_cache_unittest.cc
+++ b/content/browser/appcache/appcache_disk_cache_unittest.cc
@@ -43,7 +43,7 @@ class AppCacheDiskCacheTest : public testing::Test {
}
base::ScopedTempDir directory_;
- scoped_ptr<base::MessageLoop> message_loop_;
+ std::unique_ptr<base::MessageLoop> message_loop_;
scoped_refptr<base::SingleThreadTaskRunner> cache_thread_;
net::CompletionCallback completion_callback_;
std::vector<int> completion_results_;
@@ -56,7 +56,7 @@ TEST_F(AppCacheDiskCacheTest, DisablePriorToInitCompletion) {
// Create an instance and start it initializing, queue up
// one of each kind of "entry" function.
- scoped_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
+ std::unique_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
EXPECT_FALSE(disk_cache->is_disabled());
disk_cache->InitWithDiskBackend(
directory_.path(), k10MBytes, false, cache_thread_, completion_callback_);
@@ -87,7 +87,7 @@ TEST_F(AppCacheDiskCacheTest, DisablePriorToInitCompletion) {
TEST_F(AppCacheDiskCacheTest, DisableAfterInitted) {
// Create an instance and let it fully init.
- scoped_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
+ std::unique_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
EXPECT_FALSE(disk_cache->is_disabled());
disk_cache->InitWithDiskBackend(
directory_.path(), k10MBytes, false, cache_thread_, completion_callback_);
@@ -122,7 +122,7 @@ TEST_F(AppCacheDiskCacheTest, DisableAfterInitted) {
// Flaky on Android: http://crbug.com/339534
TEST_F(AppCacheDiskCacheTest, DISABLED_DisableWithEntriesOpen) {
// Create an instance and let it fully init.
- scoped_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
+ std::unique_ptr<AppCacheDiskCache> disk_cache(new AppCacheDiskCache);
EXPECT_FALSE(disk_cache->is_disabled());
disk_cache->InitWithDiskBackend(
directory_.path(), k10MBytes, false, cache_thread_, completion_callback_);
« no previous file with comments | « content/browser/appcache/appcache_disk_cache.cc ('k') | content/browser/appcache/appcache_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698