| 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 // This file contains tests that are shared between different implementations of | 5 // This file contains tests that are shared between different implementations of |
| 6 // |DataPipeImpl|. | 6 // |DataPipeImpl|. |
| 7 | 7 |
| 8 #include "mojo/edk/system/data_pipe_impl.h" | 8 #include "mojo/edk/system/data_pipe_impl.h" |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <utility> | 13 #include <utility> |
| 14 | 14 |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "mojo/edk/embedder/simple_platform_support.h" | 16 #include "mojo/edk/embedder/simple_platform_support.h" |
| 17 #include "mojo/edk/platform/platform_pipe.h" | 17 #include "mojo/edk/platform/platform_pipe.h" |
| 18 #include "mojo/edk/platform/thread_utils.h" | 18 #include "mojo/edk/platform/thread_utils.h" |
| 19 #include "mojo/edk/system/channel.h" | 19 #include "mojo/edk/system/channel.h" |
| 20 #include "mojo/edk/system/channel_endpoint.h" | 20 #include "mojo/edk/system/channel_endpoint.h" |
| 21 #include "mojo/edk/system/data_pipe.h" | 21 #include "mojo/edk/system/data_pipe.h" |
| 22 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 22 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
| 23 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 23 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
| 24 #include "mojo/edk/system/handle_transport.h" |
| 24 #include "mojo/edk/system/memory.h" | 25 #include "mojo/edk/system/memory.h" |
| 25 #include "mojo/edk/system/message_pipe.h" | 26 #include "mojo/edk/system/message_pipe.h" |
| 26 #include "mojo/edk/system/raw_channel.h" | 27 #include "mojo/edk/system/raw_channel.h" |
| 27 #include "mojo/edk/system/test/test_io_thread.h" | 28 #include "mojo/edk/system/test/test_io_thread.h" |
| 28 #include "mojo/edk/system/test/timeouts.h" | 29 #include "mojo/edk/system/test/timeouts.h" |
| 29 #include "mojo/edk/system/waiter.h" | 30 #include "mojo/edk/system/waiter.h" |
| 30 #include "mojo/edk/util/ref_ptr.h" | 31 #include "mojo/edk/util/ref_ptr.h" |
| 31 #include "mojo/public/cpp/system/macros.h" | 32 #include "mojo/public/cpp/system/macros.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
| 33 | 34 |
| (...skipping 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2928 &waiter, MOJO_HANDLE_SIGNAL_READ_THRESHOLD, 0, &hss)); | 2929 &waiter, MOJO_HANDLE_SIGNAL_READ_THRESHOLD, 0, &hss)); |
| 2929 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); | 2930 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfied_signals); |
| 2930 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); | 2931 EXPECT_EQ(MOJO_HANDLE_SIGNAL_PEER_CLOSED, hss.satisfiable_signals); |
| 2931 | 2932 |
| 2932 this->ConsumerClose(); | 2933 this->ConsumerClose(); |
| 2933 } | 2934 } |
| 2934 | 2935 |
| 2935 } // namespace | 2936 } // namespace |
| 2936 } // namespace system | 2937 } // namespace system |
| 2937 } // namespace mojo | 2938 } // namespace mojo |
| OLD | NEW |