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

Side by Side Diff: base/android/fifo_utils.h

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: rebase Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/android/fifo_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef BASE_ANDROID_FIFO_UTILS_H_
6 #define BASE_ANDROID_FIFO_UTILS_H_
7
8 #include <stdio.h>
9
10 #include "base/base_export.h"
11
12 namespace base {
13
14 class FilePath;
15
16 namespace android {
17
18 // Creates a fifo at the given |path| with POSIX permissions set to |mode|,
19 // returning true if it was successfully created and permissions were set.
20 BASE_EXPORT bool CreateFIFO(const FilePath& path, int mode);
21
22 // Redirects the |stream| to the file provided by |path| with |mode|
23 // permissions, returning true if successful.
24 BASE_EXPORT bool RedirectStream(FILE* stream,
25 const FilePath& path,
26 const char* mode);
27
28 } // namespace android
29 } // namespace base
30
31 #endif // BASE_ANDROID_FIFO_UTILS_H_
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/android/fifo_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698