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

Side by Side Diff: tools/gn/test_with_scope.h

Issue 51693002: GN: toolchain threading cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/target_unittest.cc ('k') | tools/gn/test_with_scope.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef TOOLS_GN_TEST_WITH_SCOPE_H_ 5 #ifndef TOOLS_GN_TEST_WITH_SCOPE_H_
6 #define TOOLS_GN_TEST_WITH_SCOPE_H_ 6 #define TOOLS_GN_TEST_WITH_SCOPE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "tools/gn/build_settings.h" 9 #include "tools/gn/build_settings.h"
10 #include "tools/gn/scope.h" 10 #include "tools/gn/scope.h"
11 #include "tools/gn/settings.h" 11 #include "tools/gn/settings.h"
12 #include "tools/gn/toolchain.h" 12 #include "tools/gn/toolchain.h"
13 13
14 // A helper class for setting up a Scope that a test can use. It makes a 14 // A helper class for setting up a Scope that a test can use. It makes a
15 // toolchain and sets up all the build state. 15 // toolchain and sets up all the build state.
16 class TestWithScope { 16 class TestWithScope {
17 public: 17 public:
18 TestWithScope(); 18 TestWithScope();
19 ~TestWithScope(); 19 ~TestWithScope();
20 20
21 BuildSettings* build_settings() { return &build_settings_; } 21 BuildSettings* build_settings() { return &build_settings_; }
22 Settings* settings() { return &settings_; } 22 Settings* settings() { return &settings_; }
23 Toolchain* toolchain() { return &toolchain_; }
23 Scope* scope() { return &scope_; } 24 Scope* scope() { return &scope_; }
24 25
25 private: 26 private:
26 BuildSettings build_settings_; 27 BuildSettings build_settings_;
28 Settings settings_;
27 Toolchain toolchain_; 29 Toolchain toolchain_;
28 Settings settings_;
29 Scope scope_; 30 Scope scope_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(TestWithScope); 32 DISALLOW_COPY_AND_ASSIGN(TestWithScope);
32 }; 33 };
33 34
34 #endif // TOOLS_GN_TEST_WITH_SCOPE_H_ 35 #endif // TOOLS_GN_TEST_WITH_SCOPE_H_
OLDNEW
« no previous file with comments | « tools/gn/target_unittest.cc ('k') | tools/gn/test_with_scope.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698