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

Unified Diff: mojo/edk/test/test_utils.cc

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/test/test_utils.h ('k') | shell/child_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/test_utils.cc
diff --git a/mojo/edk/test/test_utils.cc b/mojo/edk/test/test_utils.cc
index 153fa1cd705ed85fe5a6ace41453517cbcd64186..a69079f9f1139e90cce127843dba0da62135720a 100644
--- a/mojo/edk/test/test_utils.cc
+++ b/mojo/edk/test/test_utils.cc
@@ -11,12 +11,13 @@
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
-using mojo::embedder::ScopedPlatformHandle;
+using mojo::platform::PlatformHandle;
+using mojo::platform::ScopedPlatformHandle;
namespace mojo {
namespace test {
-bool BlockingWrite(const embedder::PlatformHandle& handle,
+bool BlockingWrite(const PlatformHandle& handle,
const void* buffer,
size_t bytes_to_write,
size_t* bytes_written) {
@@ -37,7 +38,7 @@ bool BlockingWrite(const embedder::PlatformHandle& handle,
return true;
}
-bool BlockingRead(const embedder::PlatformHandle& handle,
+bool BlockingRead(const PlatformHandle& handle,
void* buffer,
size_t buffer_size,
size_t* bytes_read) {
@@ -58,7 +59,7 @@ bool BlockingRead(const embedder::PlatformHandle& handle,
return true;
}
-bool NonBlockingRead(const embedder::PlatformHandle& handle,
+bool NonBlockingRead(const PlatformHandle& handle,
void* buffer,
size_t buffer_size,
size_t* bytes_read) {
@@ -80,7 +81,7 @@ ScopedPlatformHandle PlatformHandleFromFILE(util::ScopedFILE fp) {
CHECK(fp);
int rv = dup(fileno(fp.get()));
PCHECK(rv != -1) << "dup";
- return ScopedPlatformHandle(embedder::PlatformHandle(rv));
+ return ScopedPlatformHandle(PlatformHandle(rv));
}
util::ScopedFILE FILEFromPlatformHandle(ScopedPlatformHandle h,
« no previous file with comments | « mojo/edk/test/test_utils.h ('k') | shell/child_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698