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

Issue 343022: Also parse file size in new FTP LIST parsing code. (Closed)

Created:
11 years, 1 month ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Also parse file size in new FTP LIST parsing code. TEST=Covered by net_unittests. BUG=25520 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30445

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -15 lines) Patch
M net/data/ftp/dir-listing-ls-1.expected View 6 chunks +6 lines, -0 lines 0 comments Download
M net/data/ftp/dir-listing-ls-2.expected View 7 chunks +7 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer_unittest.cc View 2 chunks +12 lines, -10 lines 1 comment Download
M net/ftp/ftp_directory_listing_parsers.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parsers.cc View 1 chunk +5 lines, -1 line 2 comments Download
M net/ftp/ftp_directory_listing_parsers_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
I somehow forgot to do it in the original CL.
11 years, 1 month ago (2009-10-28 18:57:44 UTC) #1
eroman
lgtm
11 years, 1 month ago (2009-10-28 19:09:35 UTC) #2
wtc
http://codereview.chromium.org/343022/diff/1/4 File net/ftp/ftp_directory_listing_buffer_unittest.cc (right): http://codereview.chromium.org/343022/diff/1/4#newcode51 Line 51: ASSERT_EQ(0U, lines.size() % 8); The CL's description doesn't ...
11 years, 1 month ago (2009-10-28 19:12:08 UTC) #3
Paweł Hajdan Jr.
On 2009/10/28 19:12:08, wtc wrote: > http://codereview.chromium.org/343022/diff/1/4 > File net/ftp/ftp_directory_listing_buffer_unittest.cc (right): > > http://codereview.chromium.org/343022/diff/1/4#newcode51 > ...
11 years, 1 month ago (2009-10-28 20:51:13 UTC) #4
wtc
11 years, 1 month ago (2009-10-28 23:51:58 UTC) #5
LGTM.

http://codereview.chromium.org/343022/diff/1/5
File net/ftp/ftp_directory_listing_parsers.cc (right):

http://codereview.chromium.org/343022/diff/1/5#newcode135
Line 135: if (entry.type != FtpDirectoryListingEntry::FILE)
I see.  Your code will return false if the format is
wrong, whereas my suggested code will return true with
entry.size = -1.

Powered by Google App Engine
This is Rietveld 408576698