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

Unified Diff: content/browser/storage_partition_impl_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/storage_partition_impl_map_unittest.cc ('k') | content/browser/streams/stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_unittest.cc
diff --git a/content/browser/storage_partition_impl_unittest.cc b/content/browser/storage_partition_impl_unittest.cc
index 22f0185fee2e586b6d9ee7dea5cf15c8f7710135..0d0f183c7ce3fcbb8eb9e30750d60d8592a8bd81 100644
--- a/content/browser/storage_partition_impl_unittest.cc
+++ b/content/browser/storage_partition_impl_unittest.cc
@@ -350,7 +350,7 @@ class StoragePartitionImplTest : public testing::Test {
private:
content::TestBrowserThreadBundle thread_bundle_;
- scoped_ptr<TestBrowserContext> browser_context_;
+ std::unique_ptr<TestBrowserContext> browser_context_;
scoped_refptr<MockQuotaManager> quota_manager_;
DISALLOW_COPY_AND_ASSIGN(StoragePartitionImplTest);
@@ -395,7 +395,7 @@ class StoragePartitionShaderClearTest : public testing::Test {
private:
content::TestBrowserThreadBundle thread_bundle_;
- scoped_ptr<TestBrowserContext> browser_context_;
+ std::unique_ptr<TestBrowserContext> browser_context_;
scoped_refptr<ShaderDiskCache> cache_;
};
@@ -932,13 +932,13 @@ TEST(StoragePartitionImplStaticTest, CreatePredicateForHostCookies) {
StoragePartitionImpl::CreatePredicateForHostCookies(url);
base::Time now = base::Time::Now();
- std::vector<scoped_ptr<CanonicalCookie>> valid_cookies;
+ std::vector<std::unique_ptr<CanonicalCookie>> valid_cookies;
valid_cookies.push_back(CanonicalCookie::Create(url, "A=B", now, options));
valid_cookies.push_back(CanonicalCookie::Create(url, "C=F", now, options));
// We should match a different scheme with the same host.
valid_cookies.push_back(CanonicalCookie::Create(url2, "A=B", now, options));
- std::vector<scoped_ptr<CanonicalCookie>> invalid_cookies;
+ std::vector<std::unique_ptr<CanonicalCookie>> invalid_cookies;
// We don't match domain cookies.
invalid_cookies.push_back(
CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options));
« no previous file with comments | « content/browser/storage_partition_impl_map_unittest.cc ('k') | content/browser/streams/stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698