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

Side by Side Diff: mojo/common/test/test_utils_win.cc

Issue 203373004: Mojo: Move mojo/system/embedder to mojo/embedder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « mojo/common/test/test_utils_posix.cc ('k') | mojo/embedder/DEPS » ('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 #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
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
OLDNEW
« no previous file with comments | « mojo/common/test/test_utils_posix.cc ('k') | mojo/embedder/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698