1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/host/setup/test_util.h"
9 #elif defined(OS_POSIX)
15 bool MakePipe(base::File
* read_file
,
16 base::File
* write_file
) {
18 base::PlatformFile read_handle
;
19 base::PlatformFile write_handle
;
20 if (!CreatePipe(&read_handle
, &write_handle
, nullptr, 0))
22 *read_file
= base::File(read_handle
);
23 *write_file
= base::File(write_handle
);
25 #elif defined(OS_POSIX)
28 *read_file
= base::File(fds
[0]);
29 *write_file
= base::File(fds
[1]);
34 #error Not implemented
38 } // namepsace remoting