| 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 #include "mojo/system/core_impl.h" | 5 #include "mojo/system/core_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 // Complete the two-phase read. | 867 // Complete the two-phase read. |
| 868 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]); | 868 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]); |
| 869 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 1)); | 869 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 1)); |
| 870 | 870 |
| 871 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0])); | 871 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0])); |
| 872 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1])); | 872 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1])); |
| 873 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph)); | 873 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph)); |
| 874 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch)); | 874 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch)); |
| 875 } | 875 } |
| 876 | 876 |
| 877 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|. |
| 878 |
| 877 } // namespace | 879 } // namespace |
| 878 } // namespace system | 880 } // namespace system |
| 879 } // namespace mojo | 881 } // namespace mojo |
| OLD | NEW |