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

Side by Side Diff: net/ftp/ftp_directory_listing_buffer_unittest.cc

Issue 6515009: FTP: Compatibility fix for "ls -l" style directory listing parser.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/data/ftp/dir-listing-ls-24.expected ('k') | net/ftp/ftp_directory_listing_parser_ls.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/ftp/ftp_directory_listing_buffer.h" 5 #include "net/ftp/ftp_directory_listing_buffer.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 25 matching lines...) Expand all
36 "dir-listing-ls-14", 36 "dir-listing-ls-14",
37 "dir-listing-ls-15", 37 "dir-listing-ls-15",
38 "dir-listing-ls-16", 38 "dir-listing-ls-16",
39 "dir-listing-ls-17", 39 "dir-listing-ls-17",
40 "dir-listing-ls-18", 40 "dir-listing-ls-18",
41 "dir-listing-ls-19", 41 "dir-listing-ls-19",
42 "dir-listing-ls-20", // TODO(phajdan.jr): should use windows-1251 encoding. 42 "dir-listing-ls-20", // TODO(phajdan.jr): should use windows-1251 encoding.
43 "dir-listing-ls-21", // TODO(phajdan.jr): should use windows-1251 encoding. 43 "dir-listing-ls-21", // TODO(phajdan.jr): should use windows-1251 encoding.
44 "dir-listing-ls-22", // TODO(phajdan.jr): should use windows-1251 encoding. 44 "dir-listing-ls-22", // TODO(phajdan.jr): should use windows-1251 encoding.
45 "dir-listing-ls-23", 45 "dir-listing-ls-23",
46 "dir-listing-ls-24",
46 "dir-listing-netware-1", 47 "dir-listing-netware-1",
47 "dir-listing-netware-2", 48 "dir-listing-netware-2",
48 "dir-listing-vms-1", 49 "dir-listing-vms-1",
49 "dir-listing-vms-2", 50 "dir-listing-vms-2",
50 "dir-listing-vms-3", 51 "dir-listing-vms-3",
51 "dir-listing-vms-4", 52 "dir-listing-vms-4",
52 "dir-listing-vms-5", 53 "dir-listing-vms-5",
53 "dir-listing-windows-1", 54 "dir-listing-windows-1",
54 "dir-listing-windows-2", 55 "dir-listing-windows-2",
55 }; 56 };
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 EXPECT_EQ(month, time_exploded.month); 131 EXPECT_EQ(month, time_exploded.month);
131 EXPECT_EQ(day_of_month, time_exploded.day_of_month); 132 EXPECT_EQ(day_of_month, time_exploded.day_of_month);
132 EXPECT_EQ(hour, time_exploded.hour); 133 EXPECT_EQ(hour, time_exploded.hour);
133 EXPECT_EQ(minute, time_exploded.minute); 134 EXPECT_EQ(minute, time_exploded.minute);
134 } 135 }
135 EXPECT_FALSE(buffer.EntryAvailable()); 136 EXPECT_FALSE(buffer.EntryAvailable());
136 } 137 }
137 } 138 }
138 139
139 } // namespace 140 } // namespace
OLDNEW
« no previous file with comments | « net/data/ftp/dir-listing-ls-24.expected ('k') | net/ftp/ftp_directory_listing_parser_ls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698