| Index: mojo/edk/test/test_utils.h
|
| diff --git a/third_party/mojo/src/mojo/edk/test/test_utils.h b/mojo/edk/test/test_utils.h
|
| similarity index 82%
|
| copy from third_party/mojo/src/mojo/edk/test/test_utils.h
|
| copy to mojo/edk/test/test_utils.h
|
| index 9c21a1a29ed109be9ecb90b4e5aa62bb7d277ac6..939171b26f88e7f5f088db76fbad2795f94d6d16 100644
|
| --- a/third_party/mojo/src/mojo/edk/test/test_utils.h
|
| +++ b/mojo/edk/test/test_utils.h
|
| @@ -15,18 +15,19 @@
|
| #include "mojo/edk/embedder/scoped_platform_handle.h"
|
|
|
| namespace mojo {
|
| +namespace edk {
|
| namespace test {
|
|
|
| // On success, |bytes_written| is updated to the number of bytes written;
|
| // otherwise it is untouched.
|
| -bool BlockingWrite(const embedder::PlatformHandle& handle,
|
| +bool BlockingWrite(const PlatformHandle& handle,
|
| const void* buffer,
|
| size_t bytes_to_write,
|
| size_t* bytes_written);
|
|
|
| // On success, |bytes_read| is updated to the number of bytes read; otherwise it
|
| // is untouched.
|
| -bool BlockingRead(const embedder::PlatformHandle& handle,
|
| +bool BlockingRead(const PlatformHandle& handle,
|
| void* buffer,
|
| size_t buffer_size,
|
| size_t* bytes_read);
|
| @@ -35,19 +36,20 @@ bool BlockingRead(const embedder::PlatformHandle& handle,
|
| // and updates |bytes_read| to the number of bytes read (0 if the read would
|
| // block); otherwise it returns false and leaves |bytes_read| untouched.
|
| // |handle| must already be in non-blocking mode.
|
| -bool NonBlockingRead(const embedder::PlatformHandle& handle,
|
| +bool NonBlockingRead(const PlatformHandle& handle,
|
| void* buffer,
|
| size_t buffer_size,
|
| size_t* bytes_read);
|
|
|
| // Gets a (scoped) |PlatformHandle| from the given (scoped) |FILE|.
|
| -embedder::ScopedPlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp);
|
| +ScopedPlatformHandle PlatformHandleFromFILE(base::ScopedFILE fp);
|
|
|
| // Gets a (scoped) |FILE| from a (scoped) |PlatformHandle|.
|
| -base::ScopedFILE FILEFromPlatformHandle(embedder::ScopedPlatformHandle h,
|
| +base::ScopedFILE FILEFromPlatformHandle(ScopedPlatformHandle h,
|
| const char* mode);
|
|
|
| } // namespace test
|
| +} // namespace edk
|
| } // namespace mojo
|
|
|
| #endif // MOJO_EDK_TEST_TEST_UTILS_H_
|
|
|