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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/file_util.h" 10 #include "base/file_util.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual bool GetTestServerPath(base::FilePath* testserver_path) const 74 virtual bool GetTestServerPath(base::FilePath* testserver_path) const
75 WARN_UNUSED_RESULT; 75 WARN_UNUSED_RESULT;
76 76
77 // Adds the command line arguments for the Python test server to 77 // Adds the command line arguments for the Python test server to
78 // |command_line|. Returns true on success. 78 // |command_line|. Returns true on success.
79 virtual bool AddCommandLineArguments(base::CommandLine* command_line) const 79 virtual bool AddCommandLineArguments(base::CommandLine* command_line) const
80 WARN_UNUSED_RESULT; 80 WARN_UNUSED_RESULT;
81 81
82 // Returns the actual path of document root for test cases. This function 82 // Returns the actual path of document root for test cases. This function
83 // should be called by test cases to retrieve the actual document root path. 83 // should be called by test cases to retrieve the actual document root path.
84 base::FilePath GetDocumentRoot() const { return document_root(); }; 84 base::FilePath GetDocumentRoot() const {
85 return document_root();
86 };
85 87
86 private: 88 private:
87 bool Init(const base::FilePath& document_root); 89 bool Init(const base::FilePath& document_root);
88 90
89 // Launches the Python test server. Returns true on success. 91 // Launches the Python test server. Returns true on success.
90 bool LaunchPython(const base::FilePath& testserver_path) WARN_UNUSED_RESULT; 92 bool LaunchPython(const base::FilePath& testserver_path) WARN_UNUSED_RESULT;
91 93
92 // Waits for the server to start. Returns true on success. 94 // Waits for the server to start. Returns true on success.
93 bool WaitToStart() WARN_UNUSED_RESULT; 95 bool WaitToStart() WARN_UNUSED_RESULT;
94 96
(...skipping 15 matching lines...) Expand all
110 // The file descriptor the child writes to when it starts. 112 // The file descriptor the child writes to when it starts.
111 base::ScopedFD child_fd_; 113 base::ScopedFD child_fd_;
112 #endif 114 #endif
113 115
114 DISALLOW_COPY_AND_ASSIGN(LocalTestServer); 116 DISALLOW_COPY_AND_ASSIGN(LocalTestServer);
115 }; 117 };
116 118
117 } // namespace net 119 } // namespace net
118 120
119 #endif // NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_ 121 #endif // NET_TEST_SPAWNED_TEST_SERVER_LOCAL_TEST_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698