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

Side by Side Diff: content/shell/browser/layout_test/scoped_android_configuration.h

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: peter comments after layout_test_android -> scoped_android_configuration Created 4 years 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
Peter Beverloo 2016/12/13 12:15:34 micro nit: 2016
jbudorick 2016/12/14 02:21:59 Done.
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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_SCOPED_ANDROID_CONFIGURATION_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_SCOPED_ANDROID_CONFIGURATION_H_
7
8 #include <memory>
9 #include <string>
10 #include <vector>
11
12 namespace net {
13 class SocketPosix;
14 }
15
16 namespace content {
17
18 class ScopedAndroidConfiguration {
19 public:
20 ScopedAndroidConfiguration();
21 ~ScopedAndroidConfiguration();
22
23 // Redirects stdin, stdout, and stderr to the ports specified on the command
24 // line.
25 void RedirectStreams();
26
27 private:
28 // Adds |socket| to |sockets_|.
29 void AddSocket(std::unique_ptr<net::SocketPosix> socket);
30
31 // The sockets to which the IO streams are being redirected.
32 std::vector<std::unique_ptr<net::SocketPosix>> sockets_;
33 };
Peter Beverloo 2016/12/13 12:15:34 micro nit: DISALLOW_COPY_AND_ASSIGN(ScopedAndro
jbudorick 2016/12/14 02:21:59 Done.
34
35 } // namespace content
36
37 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_SCOPED_ANDROID_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698