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

Unified Diff: tools/json_schema_compiler/test/test_util.cc

Issue 2084633002: json_schema_compiler: Don't use deprecated ListValue::Append(Value*) overload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « tools/json_schema_compiler/test/test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/test_util.cc
diff --git a/tools/json_schema_compiler/test/test_util.cc b/tools/json_schema_compiler/test/test_util.cc
index c1ac198252187661f4f7fa061b3db61018f3b8f1..60744ba57b2e27297a01f93dacf72a9cfa18ce71 100644
--- a/tools/json_schema_compiler/test/test_util.cc
+++ b/tools/json_schema_compiler/test/test_util.cc
@@ -8,6 +8,7 @@
#include "base/json/json_reader.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
namespace json_schema_compiler {
namespace test_util {
@@ -24,19 +25,19 @@ std::unique_ptr<base::Value> ReadJson(const base::StringPiece& json) {
std::unique_ptr<base::ListValue> List(base::Value* a) {
std::unique_ptr<base::ListValue> list(new base::ListValue());
- list->Append(a);
+ list->Append(base::WrapUnique(a));
return list;
}
std::unique_ptr<base::ListValue> List(base::Value* a, base::Value* b) {
std::unique_ptr<base::ListValue> list = List(a);
- list->Append(b);
+ list->Append(base::WrapUnique(b));
return list;
}
std::unique_ptr<base::ListValue> List(base::Value* a,
base::Value* b,
base::Value* c) {
std::unique_ptr<base::ListValue> list = List(a, b);
- list->Append(c);
+ list->Append(base::WrapUnique(c));
return list;
}
« no previous file with comments | « tools/json_schema_compiler/test/test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698