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

Unified Diff: tools/gn/loader_unittest.cc

Issue 2085023004: Remove calls to deprecated MessageLoop methods in tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/loader.cc ('k') | tools/gn/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/loader_unittest.cc
diff --git a/tools/gn/loader_unittest.cc b/tools/gn/loader_unittest.cc
index 47d0f80d5f99a30fe3cbdea5c6d82e8fe9769bbf..e8d809d62512026dedbc0f8ed97da0193d4f162c 100644
--- a/tools/gn/loader_unittest.cc
+++ b/tools/gn/loader_unittest.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "tools/gn/build_settings.h"
#include "tools/gn/err.h"
@@ -146,12 +147,12 @@ TEST_F(LoaderTest, Foo) {
// Completing the build config load should kick off the root build file load.
mock_ifm_.IssueAllPending();
- scheduler_.main_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
Nico 2016/06/22 18:22:28 (this replacement looks like it makes things more
fdoray 2016/06/22 18:41:50 Ironically, a goal of base::RunLoop is to make thi
EXPECT_TRUE(mock_ifm_.HasOnePending(root_build));
// Load the root build file.
mock_ifm_.IssueAllPending();
- scheduler_.main_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Schedule some other file to load in another toolchain.
Label second_tc(SourceDir("//tc2/"), "tc2");
@@ -162,7 +163,7 @@ TEST_F(LoaderTest, Foo) {
// Running the toolchain file should schedule the build config file to load
// for that toolchain.
mock_ifm_.IssueAllPending();
- scheduler_.main_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// We have to tell it we have a toolchain definition now (normally the
// builder would do this).
@@ -179,7 +180,7 @@ TEST_F(LoaderTest, Foo) {
// Running the build config file should make our third file pending.
mock_ifm_.IssueAllPending();
- scheduler_.main_loop()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_TRUE(mock_ifm_.HasTwoPending(second_file, third_file));
EXPECT_FALSE(scheduler_.is_failed());
« no previous file with comments | « tools/gn/loader.cc ('k') | tools/gn/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698