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

Unified Diff: base/trace_event/trace_config_unittest.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/trace_event/trace_config.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_config_unittest.cc
diff --git a/base/trace_event/trace_config_unittest.cc b/base/trace_event/trace_config_unittest.cc
index 1b49fdc18925442ca162e4fc9937f3d683ef1db0..1fb41f86fb9eef43d13ac122c7bff135ac8d3e04 100644
--- a/base/trace_event/trace_config_unittest.cc
+++ b/base/trace_event/trace_config_unittest.cc
@@ -292,7 +292,8 @@ TEST(TraceConfigTest, TraceConfigFromDict) {
EXPECT_FALSE(tc.IsArgumentFilterEnabled());
EXPECT_STREQ("", tc.ToCategoryFilterString().c_str());
- scoped_ptr<Value> default_value(JSONReader::Read(kDefaultTraceConfigString));
+ std::unique_ptr<Value> default_value(
+ JSONReader::Read(kDefaultTraceConfigString));
DCHECK(default_value);
const DictionaryValue* default_dict = nullptr;
bool is_dict = default_value->GetAsDictionary(&default_dict);
@@ -305,7 +306,8 @@ TEST(TraceConfigTest, TraceConfigFromDict) {
EXPECT_FALSE(default_tc.IsArgumentFilterEnabled());
EXPECT_STREQ("-*Debug,-*Test", default_tc.ToCategoryFilterString().c_str());
- scoped_ptr<Value> custom_value(JSONReader::Read(kCustomTraceConfigString));
+ std::unique_ptr<Value> custom_value(
+ JSONReader::Read(kCustomTraceConfigString));
DCHECK(custom_value);
const DictionaryValue* custom_dict = nullptr;
is_dict = custom_value->GetAsDictionary(&custom_dict);
« no previous file with comments | « base/trace_event/trace_config.cc ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698