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

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

Issue 6718043: FTP: Multiple fixes for localized directory listings: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trying to make things more clear Created 9 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_parser.h" 5 #include "net/ftp/ftp_directory_listing_parser.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-12", 36 "dir-listing-ls-12",
37 "dir-listing-ls-13", 37 "dir-listing-ls-13",
38 "dir-listing-ls-14", 38 "dir-listing-ls-14",
39 "dir-listing-ls-15", 39 "dir-listing-ls-15",
40 "dir-listing-ls-16", 40 "dir-listing-ls-16",
41 "dir-listing-ls-17", 41 "dir-listing-ls-17",
42 "dir-listing-ls-18", 42 "dir-listing-ls-18",
43 "dir-listing-ls-19", 43 "dir-listing-ls-19",
44 "dir-listing-ls-20", // TODO(phajdan.jr): should use windows-1251 encoding. 44 "dir-listing-ls-20", // TODO(phajdan.jr): should use windows-1251 encoding.
45 "dir-listing-ls-21", // TODO(phajdan.jr): should use windows-1251 encoding. 45 "dir-listing-ls-21", // TODO(phajdan.jr): should use windows-1251 encoding.
46 "dir-listing-ls-22", // TODO(phajdan.jr): should use windows-1251 encoding. 46 "dir-listing-ls-22", // TODO(phajdan.jr): should use windows-1251 encoding.
jungshik at Google 2011/04/01 18:28:41 Are these TODO still valid given that you're addin
47 "dir-listing-ls-23", 47 "dir-listing-ls-23",
48 "dir-listing-ls-24", 48 "dir-listing-ls-24",
49
50 // Tests for Russian listings. The only difference between those
51 // files is character encoding:
52 "dir-listing-ls-25", // UTF-8
53 "dir-listing-ls-26", // KOI8-R
54 "dir-listing-ls-27", // windows-1251
55
49 "dir-listing-netware-1", 56 "dir-listing-netware-1",
50 "dir-listing-netware-2", 57 "dir-listing-netware-2",
51 "dir-listing-vms-1", 58 "dir-listing-vms-1",
52 "dir-listing-vms-2", 59 "dir-listing-vms-2",
53 "dir-listing-vms-3", 60 "dir-listing-vms-3",
54 "dir-listing-vms-4", 61 "dir-listing-vms-4",
55 "dir-listing-vms-5", 62 "dir-listing-vms-5",
56 "dir-listing-windows-1", 63 "dir-listing-windows-1",
57 "dir-listing-windows-2", 64 "dir-listing-windows-2",
58 }; 65 };
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 EXPECT_EQ(day_of_month, time_exploded.day_of_month); 140 EXPECT_EQ(day_of_month, time_exploded.day_of_month);
134 EXPECT_EQ(hour, time_exploded.hour); 141 EXPECT_EQ(hour, time_exploded.hour);
135 EXPECT_EQ(minute, time_exploded.minute); 142 EXPECT_EQ(minute, time_exploded.minute);
136 } 143 }
137 } 144 }
138 } 145 }
139 146
140 } // namespace 147 } // namespace
141 148
142 } // namespace net 149 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698