Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |