Chromium Code Reviews| Index: remoting/host/setup/test_util.cc |
| diff --git a/remoting/host/setup/test_util.cc b/remoting/host/setup/test_util.cc |
| index ad80af6399ecd65c831bea8f19f2abb695b7023c..efdb58362e0289725651a23113aa3a64a5d8d8ab 100644 |
| --- a/remoting/host/setup/test_util.cc |
| +++ b/remoting/host/setup/test_util.cc |
| @@ -15,10 +15,16 @@ namespace remoting { |
| bool MakePipe(base::File* read_file, |
| base::File* write_file) { |
| + return MakePipe(read_file, write_file, 0); |
| +} |
| + |
| +bool MakePipe(base::File* read_file, |
| + base::File* write_file, |
| + unsigned int buffer_size_bytes) { |
|
Sergey Ulanov
2016/03/28 18:26:43
This parameter is windows-specific. I suggest wrap
joedow
2016/03/29 22:14:14
Acknowledged.
|
| #if defined(OS_WIN) |
| base::PlatformFile read_handle; |
| base::PlatformFile write_handle; |
| - if (!CreatePipe(&read_handle, &write_handle, nullptr, 0)) |
| + if (!CreatePipe(&read_handle, &write_handle, nullptr, buffer_size_bytes)) |
| return false; |
| *read_file = base::File(read_handle); |
| *write_file = base::File(write_handle); |