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

Unified Diff: trunk/src/tools/gn/target_unittest.cc

Issue 46313006: Revert 232657 "GN: toolchain threading cleanup" (Closed) Base URL: svn://svn.chromium.org/chrome/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/tools/gn/target.cc ('k') | trunk/src/tools/gn/test_with_scope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/gn/target_unittest.cc
===================================================================
--- trunk/src/tools/gn/target_unittest.cc (revision 232660)
+++ trunk/src/tools/gn/target_unittest.cc (working copy)
@@ -15,17 +15,16 @@
public:
TargetTest()
: build_settings_(),
- settings_(&build_settings_, std::string()),
- toolchain_(&settings_, Label(SourceDir("//tc/"), "tc")) {
- settings_.set_toolchain_label(toolchain_.label());
+ toolchain_(Label(SourceDir("//tc/"), "tc")),
+ settings_(&build_settings_, &toolchain_, std::string()) {
}
virtual ~TargetTest() {
}
protected:
BuildSettings build_settings_;
+ Toolchain toolchain_;
Settings settings_;
- Toolchain toolchain_;
};
} // namespace
@@ -123,15 +122,15 @@
b.deps().push_back(LabelTargetPair(&c));
// Normal non-inherited config.
- Config config(&settings_, Label(SourceDir("//foo/"), "config"));
+ Config config(Label(SourceDir("//foo/"), "config"));
c.configs().push_back(LabelConfigPair(&config));
// All dependent config.
- Config all(&settings_, Label(SourceDir("//foo/"), "all"));
+ Config all(Label(SourceDir("//foo/"), "all"));
c.all_dependent_configs().push_back(LabelConfigPair(&all));
// Direct dependent config.
- Config direct(&settings_, Label(SourceDir("//foo/"), "direct"));
+ Config direct(Label(SourceDir("//foo/"), "direct"));
c.direct_dependent_configs().push_back(LabelConfigPair(&direct));
c.OnResolved();
« no previous file with comments | « trunk/src/tools/gn/target.cc ('k') | trunk/src/tools/gn/test_with_scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698