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

Issue 9167004: Match whole path components in DevicePathToDriveLetterPath(). Add tests. (Closed)

Created:
8 years, 11 months ago by Sam Kerner (Chrome)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Match whole path components in DevicePathToDriveLetterPath(). Add tests. +rvargas, who understands the code +brettw, who is in OWNERS BUG=109577 TEST=FileUtilTest.DevicePathToDriveLetter Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117986

Patch Set 1 : rev #

Total comments: 6

Patch Set 2 : Avoid mocking QueryDosDevice #

Total comments: 6

Patch Set 3 : Rev comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -49 lines) Patch
M base/file_util.h View 1 2 chunks +12 lines, -5 lines 0 comments Download
M base/file_util_unittest.cc View 1 2 2 chunks +71 lines, -1 line 0 comments Download
M base/file_util_win.cc View 1 3 chunks +45 lines, -43 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Sam Kerner (Chrome)
8 years, 11 months ago (2012-01-11 21:21:26 UTC) #1
rvargas (doing something else)
Thanks for the effort of writing unit tests!. I'm not so sure about this way ...
8 years, 11 months ago (2012-01-11 22:26:26 UTC) #2
Sam Kerner (Chrome)
http://codereview.chromium.org/9167004/diff/10001/base/file_util_win.cc File base/file_util_win.cc (right): http://codereview.chromium.org/9167004/diff/10001/base/file_util_win.cc#newcode42 base/file_util_win.cc:42: bool DevicePathToDriveLetterPath(base::win::WinApiInterface& win_api, On 2012/01/11 22:26:26, rvargas wrote: > ...
8 years, 11 months ago (2012-01-11 23:26:27 UTC) #3
Sam Kerner (Chrome)
On 2012/01/11 22:26:26, rvargas wrote: > Thanks for the effort of writing unit tests!. > ...
8 years, 11 months ago (2012-01-11 23:27:27 UTC) #4
rvargas (doing something else)
In general, I would say that making our interfaces be aware all the time about ...
8 years, 11 months ago (2012-01-11 23:53:33 UTC) #5
skerner
On Wed, Jan 11, 2012 at 6:53 PM, <rvargas@chromium.org> wrote: > In general, I would ...
8 years, 11 months ago (2012-01-12 01:13:23 UTC) #6
Sam Kerner (Chrome)
I found a way to write tests without mocking QueryDosDevice() and friends. PTAL. I do ...
8 years, 11 months ago (2012-01-12 18:12:28 UTC) #7
rvargas (doing something else)
The new tests seem OK for the code that is being added to the API ...
8 years, 11 months ago (2012-01-12 21:01:04 UTC) #8
Sam Kerner (Chrome)
http://codereview.chromium.org/9167004/diff/15001/base/file_util_unittest.cc File base/file_util_unittest.cc (right): http://codereview.chromium.org/9167004/diff/15001/base/file_util_unittest.cc#newcode601 base/file_util_unittest.cc:601: actual_device_path, On 2012/01/12 21:01:04, rvargas wrote: > nit: it ...
8 years, 11 months ago (2012-01-12 21:19:12 UTC) #9
Sam Kerner (Chrome)
On 2012/01/12 21:01:04, rvargas wrote: > The new tests seem OK for the code that ...
8 years, 11 months ago (2012-01-12 21:26:36 UTC) #10
rvargas (doing something else)
You're right, I missed that we would find the substring in that last test. LGTM
8 years, 11 months ago (2012-01-12 21:39:22 UTC) #11
brettw
LGTM rubberstamp
8 years, 11 months ago (2012-01-17 20:41:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skerner@chromium.org/9167004/10004
8 years, 11 months ago (2012-01-17 20:45:30 UTC) #13
commit-bot: I haz the power
8 years, 11 months ago (2012-01-17 22:44:33 UTC) #14
Change committed as 117986

Powered by Google App Engine
This is Rietveld 408576698