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

Unified Diff: sync/internal_api/http_bridge_unittest.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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/http_bridge_unittest.cc
diff --git a/sync/internal_api/http_bridge_unittest.cc b/sync/internal_api/http_bridge_unittest.cc
index 2692480c7397edadb7ce376e2880249d652204b4..1f36ed271f77eabd6b06c1e2838fc120ea68b495 100644
--- a/sync/internal_api/http_bridge_unittest.cc
+++ b/sync/internal_api/http_bridge_unittest.cc
@@ -14,18 +14,12 @@
namespace syncer {
-namespace {
-// TODO(timsteele): Should use PathService here. See Chromium Issue 3113.
-const base::FilePath::CharType kDocRoot[] =
- FILE_PATH_LITERAL("chrome/test/data");
-}
-
class SyncHttpBridgeTest : public testing::Test {
public:
SyncHttpBridgeTest()
: test_server_(net::TestServer::TYPE_HTTP,
net::TestServer::kLocalhost,
- base::FilePath(kDocRoot)),
+ net::TestServer::GetTestDataPath()),
fake_default_request_context_getter_(NULL),
bridge_for_race_test_(NULL),
io_thread_("IO thread") {

Powered by Google App Engine
This is Rietveld 408576698