| Index: tools/gn/test_with_scope.cc
|
| diff --git a/tools/gn/test_with_scope.cc b/tools/gn/test_with_scope.cc
|
| index 847af62e2787905ac83e9e4e3546372810bf9cff..d37b72246247151f4de7715dc4a15cdd0851733d 100644
|
| --- a/tools/gn/test_with_scope.cc
|
| +++ b/tools/gn/test_with_scope.cc
|
| @@ -8,19 +8,6 @@
|
| #include "tools/gn/parser.h"
|
| #include "tools/gn/tokenizer.h"
|
|
|
| -namespace {
|
| -
|
| -void SetCommandForTool(const std::string& cmd, Tool* tool) {
|
| - Err err;
|
| - SubstitutionPattern command;
|
| - command.Parse(cmd, nullptr, &err);
|
| - CHECK(!err.has_error())
|
| - << "Couldn't parse \"" << cmd << "\", " << "got " << err.message();
|
| - tool->set_command(command);
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| TestWithScope::TestWithScope()
|
| : build_settings_(),
|
| settings_(&build_settings_, std::string()),
|
| @@ -132,6 +119,16 @@ void TestWithScope::SetupToolchain(Toolchain* toolchain) {
|
| toolchain->ToolchainSetupComplete();
|
| }
|
|
|
| +// static
|
| +void TestWithScope::SetCommandForTool(const std::string& cmd, Tool* tool) {
|
| + Err err;
|
| + SubstitutionPattern command;
|
| + command.Parse(cmd, nullptr, &err);
|
| + CHECK(!err.has_error())
|
| + << "Couldn't parse \"" << cmd << "\", " << "got " << err.message();
|
| + tool->set_command(command);
|
| +}
|
| +
|
| void TestWithScope::AppendPrintOutput(const std::string& str) {
|
| print_output_.append(str);
|
| }
|
|
|