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

Unified Diff: tools/gn/ninja_binary_target_writer_unittest.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: tools/gn/ninja_binary_target_writer_unittest.cc
diff --git a/tools/gn/ninja_binary_target_writer_unittest.cc b/tools/gn/ninja_binary_target_writer_unittest.cc
index c9b3ebef9da56d6f8c16a2148d302601f8fbe252..ca54478a0748d81a74c47fb3aebaea841070c084 100644
--- a/tools/gn/ninja_binary_target_writer_unittest.cc
+++ b/tools/gn/ninja_binary_target_writer_unittest.cc
@@ -474,7 +474,7 @@ TEST(NinjaBinaryTargetWriter, WinPrecompiledHeaders) {
pch_settings.set_default_toolchain_label(setup.toolchain()->label());
// Declare a C++ compiler that supports PCH.
- scoped_ptr<Tool> cxx_tool(new Tool);
+ std::unique_ptr<Tool> cxx_tool(new Tool);
TestWithScope::SetCommandForTool(
"c++ {{source}} {{cflags}} {{cflags_cc}} {{defines}} {{include_dirs}} "
"-o {{output}}",
@@ -485,7 +485,7 @@ TEST(NinjaBinaryTargetWriter, WinPrecompiledHeaders) {
pch_toolchain.SetTool(Toolchain::TYPE_CXX, std::move(cxx_tool));
// Add a C compiler as well.
- scoped_ptr<Tool> cc_tool(new Tool);
+ std::unique_ptr<Tool> cc_tool(new Tool);
TestWithScope::SetCommandForTool(
"cc {{source}} {{cflags}} {{cflags_c}} {{defines}} {{include_dirs}} "
"-o {{output}}",
@@ -602,7 +602,7 @@ TEST(NinjaBinaryTargetWriter, GCCPrecompiledHeaders) {
pch_settings.set_default_toolchain_label(setup.toolchain()->label());
// Declare a C++ compiler that supports PCH.
- scoped_ptr<Tool> cxx_tool(new Tool);
+ std::unique_ptr<Tool> cxx_tool(new Tool);
TestWithScope::SetCommandForTool(
"c++ {{source}} {{cflags}} {{cflags_cc}} {{defines}} {{include_dirs}} "
"-o {{output}}",
@@ -614,7 +614,7 @@ TEST(NinjaBinaryTargetWriter, GCCPrecompiledHeaders) {
pch_toolchain.ToolchainSetupComplete();
// Add a C compiler as well.
- scoped_ptr<Tool> cc_tool(new Tool);
+ std::unique_ptr<Tool> cc_tool(new Tool);
TestWithScope::SetCommandForTool(
"cc {{source}} {{cflags}} {{cflags_c}} {{defines}} {{include_dirs}} "
"-o {{output}}",

Powered by Google App Engine
This is Rietveld 408576698