| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/public/test/browser_test_base.h" | 5 #include "content/public/test/browser_test_base.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void BrowserTestBase::ProxyRunTestOnMainThreadLoop() { | 105 void BrowserTestBase::ProxyRunTestOnMainThreadLoop() { |
| 106 #if defined(OS_POSIX) | 106 #if defined(OS_POSIX) |
| 107 if (handle_sigterm_) { | 107 if (handle_sigterm_) { |
| 108 g_browser_process_pid = base::GetCurrentProcId(); | 108 g_browser_process_pid = base::GetCurrentProcId(); |
| 109 signal(SIGTERM, DumpStackTraceSignalHandler); | 109 signal(SIGTERM, DumpStackTraceSignalHandler); |
| 110 } | 110 } |
| 111 #endif // defined(OS_POSIX) | 111 #endif // defined(OS_POSIX) |
| 112 RunTestOnMainThreadLoop(); | 112 RunTestOnMainThreadLoop(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void BrowserTestBase::CreateTestServer(const FilePath& test_server_base) { | 115 void BrowserTestBase::CreateTestServer(const base::FilePath& test_server_base) { |
| 116 CHECK(!test_server_.get()); | 116 CHECK(!test_server_.get()); |
| 117 test_server_.reset(new net::TestServer( | 117 test_server_.reset(new net::TestServer( |
| 118 net::TestServer::TYPE_HTTP, | 118 net::TestServer::TYPE_HTTP, |
| 119 net::TestServer::kLocalhost, | 119 net::TestServer::kLocalhost, |
| 120 test_server_base)); | 120 test_server_base)); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace content | 123 } // namespace content |
| OLD | NEW |