| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "tools/gn/test_with_scope.h" | 5 #include "tools/gn/test_with_scope.h" |
| 6 | 6 |
| 7 TestWithScope::TestWithScope() | 7 TestWithScope::TestWithScope() |
| 8 : build_settings_(), | 8 : build_settings_(), |
| 9 settings_(&build_settings_, std::string()), | 9 settings_(&build_settings_, std::string()), |
| 10 toolchain_(&settings_, Label(SourceDir("//toolchain/"), "default")), | 10 toolchain_(&settings_, Label(SourceDir("//toolchain/"), "default")), |
| 11 scope_(&settings_) { | 11 scope_(&settings_) { |
| 12 build_settings_.SetBuildDir(SourceDir("//out/Debug/")); | 12 build_settings_.SetBuildDir(SourceDir("//out/Debug/")); |
| 13 | 13 |
| 14 settings_.set_toolchain_label(toolchain_.label()); | 14 settings_.set_toolchain_label(toolchain_.label()); |
| 15 settings_.set_is_default(true); | 15 settings_.set_default_toolchain_label(toolchain_.label()); |
| 16 } | 16 } |
| 17 | 17 |
| 18 TestWithScope::~TestWithScope() { | 18 TestWithScope::~TestWithScope() { |
| 19 } | 19 } |
| OLD | NEW |