| Index: mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| diff --git a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc b/mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| similarity index 94%
|
| copy from third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| copy to mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| index 4fe170c360979e5d35f1c3fc9c0f3ad2bef51d14..b3ae11d84020b6c3faee7d63c74b05393bf76ac9 100644
|
| --- a/third_party/mojo/src/mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| +++ b/mojo/edk/test/multiprocess_test_helper_unittest.cc
|
| @@ -15,10 +15,11 @@
|
| #endif
|
|
|
| namespace mojo {
|
| +namespace edk {
|
| namespace test {
|
| namespace {
|
|
|
| -bool IsNonBlocking(const embedder::PlatformHandle& handle) {
|
| +bool IsNonBlocking(const PlatformHandle& handle) {
|
| #if defined(OS_WIN)
|
| // Haven't figured out a way to query whether a HANDLE was created with
|
| // FILE_FLAG_OVERLAPPED.
|
| @@ -28,13 +29,13 @@ bool IsNonBlocking(const embedder::PlatformHandle& handle) {
|
| #endif
|
| }
|
|
|
| -bool WriteByte(const embedder::PlatformHandle& handle, char c) {
|
| +bool WriteByte(const PlatformHandle& handle, char c) {
|
| size_t bytes_written = 0;
|
| BlockingWrite(handle, &c, 1, &bytes_written);
|
| return bytes_written == 1;
|
| }
|
|
|
| -bool ReadByte(const embedder::PlatformHandle& handle, char* c) {
|
| +bool ReadByte(const PlatformHandle& handle, char* c) {
|
| size_t bytes_read = 0;
|
| BlockingRead(handle, c, 1, &bytes_read);
|
| return bytes_read == 1;
|
| @@ -86,7 +87,7 @@ TEST_F(MultiprocessTestHelperTest, MAYBE_PassedChannel) {
|
| helper.StartChild("PassedChannel");
|
|
|
| // Take ownership of the handle.
|
| - embedder::ScopedPlatformHandle handle = helper.server_platform_handle.Pass();
|
| + ScopedPlatformHandle handle = helper.server_platform_handle.Pass();
|
|
|
| // The handle should be non-blocking.
|
| EXPECT_TRUE(IsNonBlocking(handle.get()));
|
| @@ -108,7 +109,7 @@ MOJO_MULTIPROCESS_TEST_CHILD_MAIN(PassedChannel) {
|
| CHECK(MultiprocessTestHelper::client_platform_handle.is_valid());
|
|
|
| // Take ownership of the handle.
|
| - embedder::ScopedPlatformHandle handle =
|
| + ScopedPlatformHandle handle =
|
| MultiprocessTestHelper::client_platform_handle.Pass();
|
|
|
| // The handle should be non-blocking.
|
| @@ -191,4 +192,5 @@ MOJO_MULTIPROCESS_TEST_CHILD_TEST(ChildTestFailsExpect) {
|
|
|
| } // namespace
|
| } // namespace test
|
| +} // namespace edk
|
| } // namespace mojo
|
|
|