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

Side by Side Diff: content/public/test/browser_test_base.cc

Issue 12210088: Make the TestServer use an absolute document root path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testserver uses absolute docroot path Created 7 years, 10 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 (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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 net::TestServer::GetSourceRelativePath(test_server_base)));
121 } 121 }
122 122
123 } // namespace content 123 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698