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

Unified Diff: net/url_request/url_request_unittest.h

Issue 12489: Remove file_util::kPathSeparator from posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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: net/url_request/url_request_unittest.h
===================================================================
--- net/url_request/url_request_unittest.h (revision 6039)
+++ net/url_request/url_request_unittest.h (working copy)
@@ -279,9 +279,11 @@
std::wstring test_data_directory;
PathService::Get(base::DIR_SOURCE_ROOT, &test_data_directory);
std::wstring normalized_document_root = document_root;
+#if defined(OS_WIN)
std::replace(normalized_document_root.begin(),
normalized_document_root.end(),
- L'/', file_util::kPathSeparator);
+ L'/', FilePath::kSeparators[0]);
+#endif
file_util::AppendToPath(&test_data_directory, normalized_document_root);
#if defined(OS_WIN)
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698