OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "mojo/message_pump/handle_watcher.h" | 5 #include "mojo/message_pump/handle_watcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "base/test/simple_test_tick_clock.h" | 15 #include "base/test/simple_test_tick_clock.h" |
15 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
16 #include "mojo/message_pump/message_pump_mojo.h" | 17 #include "mojo/message_pump/message_pump_mojo.h" |
17 #include "mojo/message_pump/time_helper.h" | 18 #include "mojo/message_pump/time_helper.h" |
18 #include "mojo/public/cpp/system/core.h" | 19 #include "mojo/public/cpp/system/core.h" |
19 #include "mojo/public/cpp/test_support/test_utils.h" | 20 #include "mojo/public/cpp/test_support/test_utils.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 | 22 |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 message_loop.task_runner(), | 475 message_loop.task_runner(), |
475 &run_loop, &threads_active_counter)); | 476 &run_loop, &threads_active_counter)); |
476 } | 477 } |
477 run_loop.Run(); | 478 run_loop.Run(); |
478 ASSERT_EQ(0, threads_active_counter); | 479 ASSERT_EQ(0, threads_active_counter); |
479 } | 480 } |
480 | 481 |
481 } // namespace test | 482 } // namespace test |
482 } // namespace common | 483 } // namespace common |
483 } // namespace mojo | 484 } // namespace mojo |
OLD | NEW |