OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/edk/system/wait_set_dispatcher.h" | 5 #include "mojo/edk/system/wait_set_dispatcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 | 11 |
| 12 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
10 #include "mojo/edk/system/message_pipe_dispatcher.h" | 14 #include "mojo/edk/system/message_pipe_dispatcher.h" |
11 #include "mojo/edk/system/test_utils.h" | 15 #include "mojo/edk/system/test_utils.h" |
12 #include "mojo/edk/system/waiter.h" | 16 #include "mojo/edk/system/waiter.h" |
13 #include "mojo/public/cpp/system/macros.h" | 17 #include "mojo/public/cpp/system/macros.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
15 | 19 |
16 namespace mojo { | 20 namespace mojo { |
17 namespace edk { | 21 namespace edk { |
18 namespace { | 22 namespace { |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 EXPECT_EQ(MOJO_RESULT_OK, | 454 EXPECT_EQ(MOJO_RESULT_OK, |
451 GetOneReadyDispatcher(wait_set, &woken_dispatcher, nullptr)); | 455 GetOneReadyDispatcher(wait_set, &woken_dispatcher, nullptr)); |
452 EXPECT_EQ(nested_wait_set, woken_dispatcher); | 456 EXPECT_EQ(nested_wait_set, woken_dispatcher); |
453 | 457 |
454 wait_set->RemoveAwakable(&w, nullptr); | 458 wait_set->RemoveAwakable(&w, nullptr); |
455 } | 459 } |
456 | 460 |
457 } // namespace | 461 } // namespace |
458 } // namespace edk | 462 } // namespace edk |
459 } // namespace mojo | 463 } // namespace mojo |
OLD | NEW |