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

Unified Diff: components/dom_distiller/core/distilled_content_store_unittest.cc

Issue 1879613003: Convert //components/dom_distiller from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: components/dom_distiller/core/distilled_content_store_unittest.cc
diff --git a/components/dom_distiller/core/distilled_content_store_unittest.cc b/components/dom_distiller/core/distilled_content_store_unittest.cc
index 648ab42d071d16c40c93a804cf55e0fa422cf85d..6a3ad46f42047328467e116fc7acfaa836e039f8 100644
--- a/components/dom_distiller/core/distilled_content_store_unittest.cc
+++ b/components/dom_distiller/core/distilled_content_store_unittest.cc
@@ -53,7 +53,8 @@ DistilledArticleProto CreateDistilledArticleForEntry(
class InMemoryContentStoreTest : public testing::Test {
public:
- void OnLoadCallback(bool success, scoped_ptr<DistilledArticleProto> proto) {
+ void OnLoadCallback(bool success,
+ std::unique_ptr<DistilledArticleProto> proto) {
load_success_ = success;
loaded_proto_ = std::move(proto);
}
@@ -69,10 +70,10 @@ class InMemoryContentStoreTest : public testing::Test {
loaded_proto_.reset();
}
- scoped_ptr<InMemoryContentStore> store_;
+ std::unique_ptr<InMemoryContentStore> store_;
bool save_success_;
bool load_success_;
- scoped_ptr<DistilledArticleProto> loaded_proto_;
+ std::unique_ptr<DistilledArticleProto> loaded_proto_;
};
// Tests whether saving and then loading a single article works as expected.

Powered by Google App Engine
This is Rietveld 408576698