| 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 <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 Loading... |
| 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 } |
| OLD | NEW |