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

Unified Diff: tools/gn/parse_tree_unittest.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> 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 | « tools/gn/parse_tree.h ('k') | tools/gn/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/parse_tree_unittest.cc
diff --git a/tools/gn/parse_tree_unittest.cc b/tools/gn/parse_tree_unittest.cc
index fba902a9257c21afcdf08ee70fc6a686421db201..f5edbc8f064d7b9be8b680b2a069b125b23bbb9b 100644
--- a/tools/gn/parse_tree_unittest.cc
+++ b/tools/gn/parse_tree_unittest.cc
@@ -24,7 +24,7 @@ TEST(ParseTree, Accessor) {
AccessorNode accessor;
accessor.set_base(base_token);
- scoped_ptr<IdentifierNode> member_identifier(
+ std::unique_ptr<IdentifierNode> member_identifier(
new IdentifierNode(member_token));
accessor.set_member(std::move(member_identifier));
@@ -37,7 +37,7 @@ TEST(ParseTree, Accessor) {
// Define a as a Scope. It should still fail because b isn't defined.
err = Err();
setup.scope()->SetValue(
- "a", Value(nullptr, scoped_ptr<Scope>(new Scope(setup.scope()))),
+ "a", Value(nullptr, std::unique_ptr<Scope>(new Scope(setup.scope()))),
nullptr);
result = accessor.Execute(setup.scope(), &err);
EXPECT_TRUE(err.has_error());
« no previous file with comments | « tools/gn/parse_tree.h ('k') | tools/gn/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698