| 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 // TODO(vtl): Enable this on non-POSIX once we have a non-POSIX implementation. | 5 // TODO(vtl): Enable this on non-POSIX once we have a non-POSIX implementation. |
| 6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "mojo/common/test/multiprocess_test_helper.h" | 17 #include "mojo/common/test/multiprocess_test_helper.h" |
| 18 #include "mojo/embedder/scoped_platform_handle.h" |
| 18 #include "mojo/system/channel.h" | 19 #include "mojo/system/channel.h" |
| 19 #include "mojo/system/embedder/scoped_platform_handle.h" | |
| 20 #include "mojo/system/local_message_pipe_endpoint.h" | 20 #include "mojo/system/local_message_pipe_endpoint.h" |
| 21 #include "mojo/system/message_pipe.h" | 21 #include "mojo/system/message_pipe.h" |
| 22 #include "mojo/system/proxy_message_pipe_endpoint.h" | 22 #include "mojo/system/proxy_message_pipe_endpoint.h" |
| 23 #include "mojo/system/test_utils.h" | 23 #include "mojo/system/test_utils.h" |
| 24 #include "mojo/system/waiter.h" | 24 #include "mojo/system/waiter.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 namespace mojo { | 27 namespace mojo { |
| 28 namespace system { | 28 namespace system { |
| 29 namespace { | 29 namespace { |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 EXPECT_EQ(static_cast<int>(kNumMessages % 100), | 273 EXPECT_EQ(static_cast<int>(kNumMessages % 100), |
| 274 helper()->WaitForChildShutdown()); | 274 helper()->WaitForChildShutdown()); |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace | 277 } // namespace |
| 278 } // namespace system | 278 } // namespace system |
| 279 } // namespace mojo | 279 } // namespace mojo |
| 280 | 280 |
| 281 #endif // defined(OS_POSIX) | 281 #endif // defined(OS_POSIX) |
| OLD | NEW |