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

Unified Diff: tools/gn/ninja_build_writer_unittest.cc

Issue 2485523002: gn: Make generation of main build.ninja file deterministic. (Closed)
Patch Set: linux Created 4 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 | « tools/gn/ninja_build_writer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/ninja_build_writer_unittest.cc
diff --git a/tools/gn/ninja_build_writer_unittest.cc b/tools/gn/ninja_build_writer_unittest.cc
index 9fee37aed103caee966526000681f08451037402..98852313fd65cf1cf559ff57ce3dd37822dcefd8 100644
--- a/tools/gn/ninja_build_writer_unittest.cc
+++ b/tools/gn/ninja_build_writer_unittest.cc
@@ -48,7 +48,7 @@ TEST(NinjaBuildWriter, TwoTargets) {
Settings other_settings(setup.build_settings(), "toolchain/");
other_settings.set_toolchain_label(other_toolchain_label);
- std::map<const Settings*, const Toolchain*> used_toolchains;
+ std::unordered_map<const Settings*, const Toolchain*> used_toolchains;
used_toolchains[setup.settings()] = setup.toolchain();
used_toolchains[&other_settings] = &other_toolchain;
@@ -117,7 +117,7 @@ TEST(NinjaBuildWriter, DuplicateOutputs) {
target_bar.SetToolchain(setup.toolchain());
ASSERT_TRUE(target_bar.OnResolved(&err));
- std::map<const Settings*, const Toolchain*> used_toolchains;
+ std::unordered_map<const Settings*, const Toolchain*> used_toolchains;
used_toolchains[setup.settings()] = setup.toolchain();
std::vector<const Target*> targets = { &target_foo, &target_bar };
std::ostringstream ninja_out;
« no previous file with comments | « tools/gn/ninja_build_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698