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

Side by Side Diff: tools/gn/loader_unittest.cc

Issue 2130443002: Remove calls to MessageLoop::current() in tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR brettw (add comment) Created 4 years, 5 months 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
« no previous file with comments | « tools/gn/loader.cc ('k') | tools/gn/scheduler.h » ('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 #include <map> 5 #include <map>
6 #include <utility> 6 #include <utility>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 10 #include "base/run_loop.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "tools/gn/build_settings.h" 12 #include "tools/gn/build_settings.h"
14 #include "tools/gn/err.h" 13 #include "tools/gn/err.h"
15 #include "tools/gn/loader.h" 14 #include "tools/gn/loader.h"
16 #include "tools/gn/parse_tree.h" 15 #include "tools/gn/parse_tree.h"
17 #include "tools/gn/parser.h" 16 #include "tools/gn/parser.h"
18 #include "tools/gn/scheduler.h" 17 #include "tools/gn/scheduler.h"
19 #include "tools/gn/tokenizer.h" 18 #include "tools/gn/tokenizer.h"
20 19
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 loader->Load(third_file, LocationRange(), second_tc); 177 loader->Load(third_file, LocationRange(), second_tc);
179 EXPECT_TRUE(mock_ifm_.HasOnePending(build_config)); 178 EXPECT_TRUE(mock_ifm_.HasOnePending(build_config));
180 179
181 // Running the build config file should make our third file pending. 180 // Running the build config file should make our third file pending.
182 mock_ifm_.IssueAllPending(); 181 mock_ifm_.IssueAllPending();
183 base::RunLoop().RunUntilIdle(); 182 base::RunLoop().RunUntilIdle();
184 EXPECT_TRUE(mock_ifm_.HasTwoPending(second_file, third_file)); 183 EXPECT_TRUE(mock_ifm_.HasTwoPending(second_file, third_file));
185 184
186 EXPECT_FALSE(scheduler_.is_failed()); 185 EXPECT_FALSE(scheduler_.is_failed());
187 } 186 }
OLDNEW
« no previous file with comments | « tools/gn/loader.cc ('k') | tools/gn/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698