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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more instance where files need to be tagged as async. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
index 55afb31f851c4720aac7847be73e2af8545a4514..7776d093645f6686a28237a06d895d0ebde6035f 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
@@ -205,11 +205,13 @@ TEST_F(NativeMessagingTest, SingleSendMessageWrite) {
CreateNamedPipeW(pipe_name.c_str(),
PIPE_ACCESS_OUTBOUND | FILE_FLAG_OVERLAPPED |
FILE_FLAG_FIRST_PIPE_INSTANCE,
- PIPE_TYPE_BYTE, 1, 0, 0, 5000, NULL));
+ PIPE_TYPE_BYTE, 1, 0, 0, 5000, NULL),
+ true);
ASSERT_TRUE(write_handle.IsValid());
base::File read_handle(
CreateFileW(pipe_name.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING,
- FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL));
+ FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL),
+ true);
ASSERT_TRUE(read_handle.IsValid());
read_file = read_handle.Pass();

Powered by Google App Engine
This is Rietveld 408576698