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 db03d507316fcf30a0ea7177f2e1e39697a16883..e8fa3f317d61a7bdfe34a08f7b09230304809799 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 |
@@ -201,13 +201,13 @@ TEST_F(NativeMessagingTest, SingleSendMessageWrite) { |
#if defined(OS_WIN) |
base::string16 pipe_name = base::StringPrintf( |
L"\\\\.\\pipe\\chrome.nativeMessaging.out.%llx", base::RandUint64()); |
- base::File write_handle( |
+ base::File write_handle = base::File::CreateForAsyncHandle( |
CreateNamedPipeW(pipe_name.c_str(), |
PIPE_ACCESS_OUTBOUND | FILE_FLAG_OVERLAPPED | |
FILE_FLAG_FIRST_PIPE_INSTANCE, |
PIPE_TYPE_BYTE, 1, 0, 0, 5000, NULL)); |
ASSERT_TRUE(write_handle.IsValid()); |
- base::File read_handle( |
+ base::File read_handle = base::File::CreateForAsyncHandle( |
CreateFileW(pipe_name.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, |
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL)); |
ASSERT_TRUE(read_handle.IsValid()); |