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

Issue 465059: Implement parser for Netware-style FTP LIST response listing. (Closed)

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

Description

Implement parser for Netware-style FTP LIST response listing. TEST=Covered by net_unittests. BUG=25520 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33978

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -57 lines) Patch
A net/data/ftp/dir-listing-netware-1 View 1 chunk +3 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-netware-1.expected View 1 chunk +17 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-netware-2 View 1 chunk +4 lines, -0 lines 0 comments Download
A net/data/ftp/dir-listing-netware-2.expected View 1 chunk +26 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer.cc View 4 chunks +14 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_buffer_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.cc View 3 chunks +22 lines, -53 lines 0 comments Download
A net/ftp/ftp_directory_listing_parser_netware.h View 1 chunk +37 lines, -0 lines 0 comments Download
A net/ftp/ftp_directory_listing_parser_netware.cc View 1 chunk +102 lines, -0 lines 2 comments Download
A net/ftp/ftp_directory_listing_parser_netware_unittest.cc View 1 chunk +53 lines, -0 lines 3 comments Download
M net/ftp/ftp_server_type_histograms.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/ftp/ftp_util.h View 2 chunks +13 lines, -0 lines 0 comments Download
M net/ftp/ftp_util.cc View 2 chunks +33 lines, -0 lines 0 comments Download
M net/ftp/ftp_util_unittest.cc View 2 chunks +52 lines, -0 lines 0 comments Download
M net/net.gyp View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paweł Hajdan Jr.
I encountered at least two such servers in the field. The Mozilla parser handles them ...
11 years ago (2009-12-04 16:40:01 UTC) #1
Paweł Hajdan Jr.
ping!
11 years ago (2009-12-07 15:10:51 UTC) #2
eroman
oops, forgot to hit Publish button! LGTM http://codereview.chromium.org/465059/diff/1/10 File net/ftp/ftp_directory_listing_parser_netware.cc (right): http://codereview.chromium.org/465059/diff/1/10#newcode65 net/ftp/ftp_directory_listing_parser_netware.cc:65: // support ...
11 years ago (2009-12-07 19:15:54 UTC) #3
wtc
http://codereview.chromium.org/465059/diff/1/12 File net/ftp/ftp_directory_listing_parser_netware_unittest.cc (right): http://codereview.chromium.org/465059/diff/1/12#newcode26 net/ftp/ftp_directory_listing_parser_netware_unittest.cc:26: for (size_t i = 0; i < arraysize(good_cases); i++) ...
11 years ago (2009-12-08 01:50:35 UTC) #4
Peter Kasting
11 years ago (2009-12-08 01:57:13 UTC) #5
http://codereview.chromium.org/465059/diff/1/12
File net/ftp/ftp_directory_listing_parser_netware_unittest.cc (right):

http://codereview.chromium.org/465059/diff/1/12#newcode26
net/ftp/ftp_directory_listing_parser_netware_unittest.cc:26: for (size_t i = 0;
i < arraysize(good_cases); i++) {
On 2009/12/08 01:50:35, wtc wrote:
> You can declare i as unsigned int instead of size_t so
> that you can print i with the %u format.

Google style guide forbids this.  size_t is the correct type to use here.

Powered by Google App Engine
This is Rietveld 408576698