Lines Matching defs:TestServer
48 std::string GetHostname(TestServer::Type type,
49 const TestServer::HTTPSOptions& options) {
50 if (type == TestServer::TYPE_HTTPS &&
52 TestServer::HTTPSOptions::CERT_MISMATCHED_NAME) {
62 TestServer::HTTPSOptions::HTTPSOptions()
67 TestServer::HTTPSOptions::HTTPSOptions(
68 TestServer::HTTPSOptions::ServerCertificate cert)
73 TestServer::HTTPSOptions::~HTTPSOptions() {}
75 FilePath TestServer::HTTPSOptions::GetCertificateFile() const {
88 TestServer::TestServer(Type type, const FilePath& document_root)
94 TestServer::TestServer(const HTTPSOptions& https_options,
102 TestServer::~TestServer() {
108 bool TestServer::Start() {
123 .Append(FILE_PATH_LITERAL("testserver"))
124 .Append(FILE_PATH_LITERAL("testserver.py"));
143 bool TestServer::Stop() {
166 const HostPortPair& TestServer::host_port_pair() const {
171 const DictionaryValue& TestServer::server_data() const {
176 std::string TestServer::GetScheme() const {
191 bool TestServer::GetAddressList(AddressList* address_list) const {
205 GURL TestServer::GetURL(const std::string& path) const {
210 GURL TestServer::GetURLWithUser(const std::string& path,
217 GURL TestServer::GetURLWithUserAndPassword(const std::string& path,
226 bool TestServer::GetFilePathWithReplacements(
260 void TestServer::Init(const FilePath& document_root) {
261 // At this point, the port that the testserver will listen on is unknown.
262 // The testserver will listen on an ephemeral port, and write the port
263 // number out over a pipe that this TestServer object will read from. Once
279 bool TestServer::SetPythonPath() {
299 << "Testserver features that rely on it will not work";
311 bool TestServer::ParseServerData(const std::string& server_data) {
335 FilePath TestServer::GetRootCertificatePath() const {
339 bool TestServer::LoadTestRootCert() {
344 bool TestServer::AddCommandLineArguments(CommandLine* command_line) const {