| 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 #ifndef MOJO_EDK_TEST_TEST_UTILS_H_ | 5 #ifndef MOJO_EDK_TEST_TEST_UTILS_H_ |
| 6 #define MOJO_EDK_TEST_TEST_UTILS_H_ | 6 #define MOJO_EDK_TEST_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdio.h> | |
| 10 | |
| 11 #include <string> | |
| 12 | 9 |
| 13 #include "mojo/edk/embedder/platform_handle.h" | 10 #include "mojo/edk/embedder/platform_handle.h" |
| 14 #include "mojo/edk/embedder/scoped_platform_handle.h" | 11 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 15 #include "mojo/edk/util/scoped_file.h" | 12 #include "mojo/edk/util/scoped_file.h" |
| 16 | 13 |
| 17 namespace mojo { | 14 namespace mojo { |
| 18 namespace test { | 15 namespace test { |
| 19 | 16 |
| 20 // On success, |bytes_written| is updated to the number of bytes written; | 17 // On success, |bytes_written| is updated to the number of bytes written; |
| 21 // otherwise it is untouched. | 18 // otherwise it is untouched. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 embedder::ScopedPlatformHandle PlatformHandleFromFILE(util::ScopedFILE fp); | 41 embedder::ScopedPlatformHandle PlatformHandleFromFILE(util::ScopedFILE fp); |
| 45 | 42 |
| 46 // Gets a (scoped) |FILE| from a (scoped) |PlatformHandle|. | 43 // Gets a (scoped) |FILE| from a (scoped) |PlatformHandle|. |
| 47 util::ScopedFILE FILEFromPlatformHandle(embedder::ScopedPlatformHandle h, | 44 util::ScopedFILE FILEFromPlatformHandle(embedder::ScopedPlatformHandle h, |
| 48 const char* mode); | 45 const char* mode); |
| 49 | 46 |
| 50 } // namespace test | 47 } // namespace test |
| 51 } // namespace mojo | 48 } // namespace mojo |
| 52 | 49 |
| 53 #endif // MOJO_EDK_TEST_TEST_UTILS_H_ | 50 #endif // MOJO_EDK_TEST_TEST_UTILS_H_ |
| OLD | NEW |