| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/test/test_utils.h" | 5 #include "mojo/common/test/test_utils.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "mojo/system/embedder/platform_handle.h" | 9 #include "mojo/embedder/platform_handle.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 bool BlockingWrite(const embedder::PlatformHandle& handle, | 14 bool BlockingWrite(const embedder::PlatformHandle& handle, |
| 15 const void* buffer, | 15 const void* buffer, |
| 16 size_t bytes_to_write, | 16 size_t bytes_to_write, |
| 17 size_t* bytes_written) { | 17 size_t* bytes_written) { |
| 18 OVERLAPPED overlapped = { 0 }; | 18 OVERLAPPED overlapped = { 0 }; |
| 19 DWORD bytes_written_dword = 0; | 19 DWORD bytes_written_dword = 0; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return true; | 71 return true; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 | 74 |
| 75 *bytes_read = bytes_read_dword; | 75 *bytes_read = bytes_read_dword; |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace test | 79 } // namespace test |
| 80 } // namespace mojo | 80 } // namespace mojo |
| OLD | NEW |