Index: tools/gn/target_unittest.cc |
diff --git a/tools/gn/target_unittest.cc b/tools/gn/target_unittest.cc |
index 986fa658e106d1e8a28cad4db37b02911940e0e3..4d9b1da8b8fa56c14cf1cac8d12ed9fa9621768d 100644 |
--- a/tools/gn/target_unittest.cc |
+++ b/tools/gn/target_unittest.cc |
@@ -2,12 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "tools/gn/target.h" |
+ |
+#include <utility> |
+ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "tools/gn/build_settings.h" |
#include "tools/gn/config.h" |
#include "tools/gn/scheduler.h" |
#include "tools/gn/settings.h" |
-#include "tools/gn/target.h" |
#include "tools/gn/test_with_scope.h" |
#include "tools/gn/toolchain.h" |
@@ -445,7 +448,7 @@ TEST(Target, LinkAndDepOutputs) { |
solink_tool->set_outputs(SubstitutionList::MakeForTest( |
kLinkPattern, kDependPattern)); |
- toolchain.SetTool(Toolchain::TYPE_SOLINK, solink_tool.Pass()); |
+ toolchain.SetTool(Toolchain::TYPE_SOLINK, std::move(solink_tool)); |
Target target(setup.settings(), Label(SourceDir("//a/"), "a")); |
target.set_output_type(Target::SHARED_LIBRARY); |