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

Unified Diff: mojo/system/raw_channel_posix_unittest.cc

Issue 60103005: Mojo: First stab at making MessagePipes work across OS pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: mojo/system/raw_channel_posix_unittest.cc
diff --git a/mojo/system/raw_channel_posix_unittest.cc b/mojo/system/raw_channel_posix_unittest.cc
index 16ebcf05ba13a5941f647399e9ba013e4db7ba68..a05a3f23a3f42dbceb9ddc8bc7e27557bd1138a9 100644
--- a/mojo/system/raw_channel_posix_unittest.cc
+++ b/mojo/system/raw_channel_posix_unittest.cc
@@ -45,7 +45,10 @@ MessageInTransit* MakeTestMessage(uint32_t num_bytes) {
std::vector<unsigned char> bytes(num_bytes, 0);
for (size_t i = 0; i < num_bytes; i++)
bytes[i] = static_cast<unsigned char>(i + num_bytes);
- return MessageInTransit::Create(bytes.data(), num_bytes);
+ return MessageInTransit::Create(
+ MessageInTransit::TYPE_MESSAGE_PIPE_ENDPOINT,
+ MessageInTransit::SUBTYPE_MESSAGE_PIPE_ENDPOINT_DATA,
+ bytes.data(), num_bytes);
}
bool CheckMessageData(const void* bytes, uint32_t num_bytes) {

Powered by Google App Engine
This is Rietveld 408576698