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

Unified Diff: content/browser/appcache/appcache_service_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
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | content/browser/appcache/appcache_storage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_service_unittest.cc
diff --git a/content/browser/appcache/appcache_service_unittest.cc b/content/browser/appcache/appcache_service_unittest.cc
index 5c29d50ee5f9fde16f02870c46871c6cfeefe8ee..6a0fed2d1de2ed1ccbae8bee4a88b8f4d1caf495 100644
--- a/content/browser/appcache/appcache_service_unittest.cc
+++ b/content/browser/appcache/appcache_service_unittest.cc
@@ -83,7 +83,7 @@ class MockResponseReader : public AppCacheResponseReader {
weak_factory_.GetWeakPtr(), result));
}
- scoped_ptr<net::HttpResponseInfo> info_;
+ std::unique_ptr<net::HttpResponseInfo> info_;
int info_size_;
const char* data_;
int data_size_;
@@ -128,7 +128,7 @@ class AppCacheServiceImplTest : public testing::Test {
}
void SetupMockGroup() {
- scoped_ptr<net::HttpResponseInfo> info(MakeMockResponseInfo());
+ std::unique_ptr<net::HttpResponseInfo> info(MakeMockResponseInfo());
const int kMockInfoSize = GetResponseInfoSize(info.get());
// Create a mock group, cache, and entry and stuff them into mock storage.
@@ -183,7 +183,7 @@ class AppCacheServiceImplTest : public testing::Test {
const GURL kOrigin;
const GURL kManifestUrl;
- scoped_ptr<AppCacheServiceImpl> service_;
+ std::unique_ptr<AppCacheServiceImpl> service_;
int delete_result_;
int delete_completion_count_;
net::CompletionCallback deletion_callback_;
@@ -337,7 +337,7 @@ TEST_F(AppCacheServiceImplTest, ScheduleReinitialize) {
const base::TimeDelta kOneHour(base::TimeDelta::FromHours(1));
// Do things get initialized as expected?
- scoped_ptr<AppCacheServiceImpl> service(new AppCacheServiceImpl(NULL));
+ std::unique_ptr<AppCacheServiceImpl> service(new AppCacheServiceImpl(NULL));
EXPECT_TRUE(service->last_reinit_time_.is_null());
EXPECT_FALSE(service->reinit_timer_.IsRunning());
EXPECT_EQ(kNoDelay, service->next_reinit_delay_);
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | content/browser/appcache/appcache_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698