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

Issue 2831029: Add a method for normalizing path separators on Windows. (Closed)

Created:
10 years, 6 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, brettw
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add a method for normalizing path separators on Windows. TEST=new unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50822

Patch Set 1 #

Patch Set 2 : compile #

Total comments: 5

Patch Set 3 : more test cases #

Patch Set 4 : rename #

Total comments: 1

Patch Set 5 : tests with leading slashes and drive letters #

Patch Set 6 : double fwd slash cases #

Patch Set 7 : more tests! #

Patch Set 8 : a few more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -1 line) Patch
M base/file_path.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/file_path.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M base/file_path_unittest.cc View 1 2 3 4 5 6 7 2 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
tony
I considered making FilePath::operator== just do the right thing, but there's a test case that ...
10 years, 6 months ago (2010-06-24 08:19:43 UTC) #1
Mark Mentovai
LG http://codereview.chromium.org/2831029/diff/2001/3002 File base/file_path.h (right): http://codereview.chromium.org/2831029/diff/2001/3002#newcode307 base/file_path.h:307: #if defined(FILE_PATH_USES_WIN_SEPARATORS) I don’t know where you’re planning ...
10 years, 6 months ago (2010-06-24 14:51:31 UTC) #2
Mark Mentovai
I would leave operator== alone.
10 years, 6 months ago (2010-06-24 14:52:12 UTC) #3
brettw
Would "NormalizeWindowsPathSeparators" be a better name?
10 years, 6 months ago (2010-06-24 18:56:13 UTC) #4
tony
I renamed the method to NormalizeWindowsPathSeparators. I'll probably go ahead and land this. Let me ...
10 years, 6 months ago (2010-06-25 01:35:11 UTC) #5
Mark Mentovai
LGTM with a couple more test cases. http://codereview.chromium.org/2831029/diff/11001/12003 File base/file_path_unittest.cc (right): http://codereview.chromium.org/2831029/diff/11001/12003#newcode1022 base/file_path_unittest.cc:1022: { FPL("foo\\bar\\"), ...
10 years, 6 months ago (2010-06-25 01:50:09 UTC) #6
tony
I added a bunch of tests including: - leading slashes - double slashes - mixing ...
10 years, 6 months ago (2010-06-25 03:02:59 UTC) #7
Mark Mentovai
Hot tests. LGTM.
10 years, 6 months ago (2010-06-25 03:24:00 UTC) #8
brettw
10 years, 6 months ago (2010-06-25 03:52:49 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698