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

Unified Diff: content/browser/appcache/appcache_response_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_response.cc ('k') | content/browser/appcache/appcache_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_response_unittest.cc
diff --git a/content/browser/appcache/appcache_response_unittest.cc b/content/browser/appcache/appcache_response_unittest.cc
index 54f3a6e2e6598c7dde4985b0fcd9a81b3c05cdad..c6588cd42be6e8a1386060a11df542ae50711ed3 100644
--- a/content/browser/appcache/appcache_response_unittest.cc
+++ b/content/browser/appcache/appcache_response_unittest.cc
@@ -757,12 +757,12 @@ class AppCacheResponseTest : public testing::Test {
// Data members
- scoped_ptr<base::WaitableEvent> test_finished_event_;
- scoped_ptr<MockStorageDelegate> storage_delegate_;
- scoped_ptr<MockAppCacheService> service_;
+ std::unique_ptr<base::WaitableEvent> test_finished_event_;
+ std::unique_ptr<MockStorageDelegate> storage_delegate_;
+ std::unique_ptr<MockAppCacheService> service_;
std::stack<std::pair<base::Closure, bool> > task_stack_;
- scoped_ptr<AppCacheResponseReader> reader_;
+ std::unique_ptr<AppCacheResponseReader> reader_;
scoped_refptr<HttpResponseInfoIOBuffer> read_info_buffer_;
scoped_refptr<IOBuffer> read_buffer_;
int expected_read_result_;
@@ -771,8 +771,8 @@ class AppCacheResponseTest : public testing::Test {
bool read_callback_was_called_;
int64_t written_response_id_;
- scoped_ptr<AppCacheResponseWriter> writer_;
- scoped_ptr<AppCacheResponseMetadataWriter> metadata_writer_;
+ std::unique_ptr<AppCacheResponseWriter> writer_;
+ std::unique_ptr<AppCacheResponseMetadataWriter> metadata_writer_;
scoped_refptr<HttpResponseInfoIOBuffer> write_info_buffer_;
scoped_refptr<IOBuffer> write_buffer_;
int expected_write_result_;
@@ -780,11 +780,11 @@ class AppCacheResponseTest : public testing::Test {
int writer_deletion_count_down_;
bool write_callback_was_called_;
- static scoped_ptr<base::Thread> io_thread_;
+ static std::unique_ptr<base::Thread> io_thread_;
};
// static
-scoped_ptr<base::Thread> AppCacheResponseTest::io_thread_;
+std::unique_ptr<base::Thread> AppCacheResponseTest::io_thread_;
TEST_F(AppCacheResponseTest, ReadNonExistentResponse) {
RunTestOnIOThread(&AppCacheResponseTest::ReadNonExistentResponse);
« no previous file with comments | « content/browser/appcache/appcache_response.cc ('k') | content/browser/appcache/appcache_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698