Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: mojo/edk/test/test_utils.h

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_TEST_TEST_UTILS_H_ 5 #ifndef MOJO_EDK_TEST_TEST_UTILS_H_
6 #define MOJO_COMMON_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> 9 #include <stdio.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/scoped_file.h" 14 #include "base/files/scoped_file.h"
15 #include "mojo/embedder/platform_handle.h" 15 #include "mojo/edk/embedder/platform_handle.h"
16 #include "mojo/embedder/scoped_platform_handle.h" 16 #include "mojo/edk/embedder/scoped_platform_handle.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace test { 19 namespace test {
20 20
21 // On success, |bytes_written| is updated to the number of bytes written; 21 // On success, |bytes_written| is updated to the number of bytes written;
22 // otherwise it is untouched. 22 // otherwise it is untouched.
23 bool BlockingWrite(const embedder::PlatformHandle& handle, 23 bool BlockingWrite(const embedder::PlatformHandle& handle,
24 const void* buffer, 24 const void* buffer,
25 size_t bytes_to_write, 25 size_t bytes_to_write,
26 size_t* bytes_written); 26 size_t* bytes_written);
(...skipping 20 matching lines...) Expand all
47 // Gets a (scoped) |FILE| from a (scoped) |PlatformHandle|. 47 // Gets a (scoped) |FILE| from a (scoped) |PlatformHandle|.
48 base::ScopedFILE FILEFromPlatformHandle(embedder::ScopedPlatformHandle h, 48 base::ScopedFILE FILEFromPlatformHandle(embedder::ScopedPlatformHandle h,
49 const char* mode); 49 const char* mode);
50 50
51 // Returns the path to the mojom js bindings file. 51 // Returns the path to the mojom js bindings file.
52 base::FilePath GetFilePathForJSResource(const std::string& path); 52 base::FilePath GetFilePathForJSResource(const std::string& path);
53 53
54 } // namespace test 54 } // namespace test
55 } // namespace mojo 55 } // namespace mojo
56 56
57 #endif // MOJO_COMMON_TEST_TEST_UTILS_H_ 57 #endif // MOJO_EDK_TEST_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698