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

Unified Diff: components/precache/core/precache_url_table_unittest.cc

Issue 1851913002: Convert //sql to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup in precache_url_table_unittest.cc 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 | « chrome/browser/predictors/resource_prefetch_predictor_tables.cc ('k') | sql/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/precache_url_table_unittest.cc
diff --git a/components/precache/core/precache_url_table_unittest.cc b/components/precache/core/precache_url_table_unittest.cc
index e7a04c6467de9098790c7f83040a470894a1e546..9053e58a96d65245b500bf457e293e0f04809a94 100644
--- a/components/precache/core/precache_url_table_unittest.cc
+++ b/components/precache/core/precache_url_table_unittest.cc
@@ -5,6 +5,7 @@
#include "components/precache/core/precache_url_table.h"
#include <map>
+#include <memory>
#include "base/compiler_specific.h"
#include "base/time/time.h"
@@ -28,8 +29,8 @@ class PrecacheURLTableTest : public testing::Test {
precache_url_table_->Init(db_.get());
}
- scoped_ptr<PrecacheURLTable> precache_url_table_;
- scoped_ptr<sql::Connection> db_;
+ std::unique_ptr<PrecacheURLTable> precache_url_table_;
+ std::unique_ptr<sql::Connection> db_;
};
TEST_F(PrecacheURLTableTest, AddURLWithNoExistingRow) {
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_tables.cc ('k') | sql/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698