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/common/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/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/test/simple_test_tick_clock.h" | 14 #include "base/test/simple_test_tick_clock.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "mojo/common/message_pump_mojo.h" | 16 #include "mojo/message_pump/message_pump_mojo.h" |
17 #include "mojo/common/time_helper.h" | 17 #include "mojo/message_pump/time_helper.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | 19 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" |
20 #include "third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h" | 20 #include "third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace common { | 23 namespace common { |
24 namespace test { | 24 namespace test { |
25 | 25 |
26 enum MessageLoopConfig { | 26 enum MessageLoopConfig { |
27 MESSAGE_LOOP_CONFIG_DEFAULT = 0, | 27 MESSAGE_LOOP_CONFIG_DEFAULT = 0, |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 message_loop.task_runner(), | 474 message_loop.task_runner(), |
475 &run_loop, &threads_active_counter)); | 475 &run_loop, &threads_active_counter)); |
476 } | 476 } |
477 run_loop.Run(); | 477 run_loop.Run(); |
478 ASSERT_EQ(0, threads_active_counter); | 478 ASSERT_EQ(0, threads_active_counter); |
479 } | 479 } |
480 | 480 |
481 } // namespace test | 481 } // namespace test |
482 } // namespace common | 482 } // namespace common |
483 } // namespace mojo | 483 } // namespace mojo |
OLD | NEW |