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

Side by Side Diff: net/test/spawned_test_server/local_test_server.h

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_ 5 #ifndef NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_
6 #define NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_ 6 #define NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_file.h" 11 #include "base/files/scoped_file.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process.h"
13 #include "net/test/spawned_test_server/base_test_server.h" 13 #include "net/test/spawned_test_server/base_test_server.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 #include "base/win/scoped_handle.h" 16 #include "base/win/scoped_handle.h"
17 #endif 17 #endif
18 18
19 namespace base { 19 namespace base {
20 class CommandLine; 20 class CommandLine;
21 } 21 }
22 22
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 private: 86 private:
87 bool Init(const base::FilePath& document_root); 87 bool Init(const base::FilePath& document_root);
88 88
89 // Launches the Python test server. Returns true on success. 89 // Launches the Python test server. Returns true on success.
90 bool LaunchPython(const base::FilePath& testserver_path) WARN_UNUSED_RESULT; 90 bool LaunchPython(const base::FilePath& testserver_path) WARN_UNUSED_RESULT;
91 91
92 // Waits for the server to start. Returns true on success. 92 // Waits for the server to start. Returns true on success.
93 bool WaitToStart() WARN_UNUSED_RESULT; 93 bool WaitToStart() WARN_UNUSED_RESULT;
94 94
95 // Handle of the Python process running the test server. 95 // The Python process running the test server.
96 base::ProcessHandle process_handle_; 96 base::Process process_;
97 97
98 #if defined(OS_WIN) 98 #if defined(OS_WIN)
99 // The pipe file handle we read from. 99 // The pipe file handle we read from.
100 base::win::ScopedHandle child_read_fd_; 100 base::win::ScopedHandle child_read_fd_;
101 101
102 // The pipe file handle the child and we write to. 102 // The pipe file handle the child and we write to.
103 base::win::ScopedHandle child_write_fd_; 103 base::win::ScopedHandle child_write_fd_;
104 #endif 104 #endif
105 105
106 #if defined(OS_POSIX) 106 #if defined(OS_POSIX)
107 // The file descriptor the child writes to when it starts. 107 // The file descriptor the child writes to when it starts.
108 base::ScopedFD child_fd_; 108 base::ScopedFD child_fd_;
109 #endif 109 #endif
110 110
111 DISALLOW_COPY_AND_ASSIGN(LocalTestServer); 111 DISALLOW_COPY_AND_ASSIGN(LocalTestServer);
112 }; 112 };
113 113
114 } // namespace net 114 } // namespace net
115 115
116 #endif // NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_ 116 #endif // NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server.cc ('k') | net/test/spawned_test_server/local_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698