| 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 tests both |RemoteProducerDataPipeImpl| and | 5 // This file tests both |RemoteProducerDataPipeImpl| and |
| 6 // |RemoteConsumerDataPipeImpl|. | 6 // |RemoteConsumerDataPipeImpl|. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "mojo/edk/embedder/simple_platform_support.h" | 14 #include "mojo/edk/embedder/simple_platform_support.h" |
| 15 #include "mojo/edk/platform/platform_pipe.h" | 15 #include "mojo/edk/platform/platform_pipe.h" |
| 16 #include "mojo/edk/system/channel.h" | 16 #include "mojo/edk/system/channel.h" |
| 17 #include "mojo/edk/system/channel_endpoint.h" | 17 #include "mojo/edk/system/channel_endpoint.h" |
| 18 #include "mojo/edk/system/data_pipe.h" | 18 #include "mojo/edk/system/data_pipe.h" |
| 19 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" | 19 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" |
| 20 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" | 20 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" |
| 21 #include "mojo/edk/system/handle_transport.h" |
| 21 #include "mojo/edk/system/memory.h" | 22 #include "mojo/edk/system/memory.h" |
| 22 #include "mojo/edk/system/message_pipe.h" | 23 #include "mojo/edk/system/message_pipe.h" |
| 23 #include "mojo/edk/system/raw_channel.h" | 24 #include "mojo/edk/system/raw_channel.h" |
| 24 #include "mojo/edk/system/test/test_io_thread.h" | 25 #include "mojo/edk/system/test/test_io_thread.h" |
| 25 #include "mojo/edk/system/test/timeouts.h" | 26 #include "mojo/edk/system/test/timeouts.h" |
| 26 #include "mojo/edk/system/waiter.h" | 27 #include "mojo/edk/system/waiter.h" |
| 27 #include "mojo/edk/util/ref_ptr.h" | 28 #include "mojo/edk/util/ref_ptr.h" |
| 28 #include "mojo/public/cpp/system/macros.h" | 29 #include "mojo/public/cpp/system/macros.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 31 |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 EXPECT_EQ(123456, elements[0]); | 515 EXPECT_EQ(123456, elements[0]); |
| 515 EXPECT_EQ(789012, elements[1]); | 516 EXPECT_EQ(789012, elements[1]); |
| 516 EXPECT_EQ(0, elements[2]); | 517 EXPECT_EQ(0, elements[2]); |
| 517 | 518 |
| 518 consumer->Close(); | 519 consumer->Close(); |
| 519 } | 520 } |
| 520 | 521 |
| 521 } // namespace | 522 } // namespace |
| 522 } // namespace system | 523 } // namespace system |
| 523 } // namespace mojo | 524 } // namespace mojo |
| OLD | NEW |