OLD | NEW |
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_unittest.h" | 5 #include "net/ftp/ftp_directory_listing_parser_unittest.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "net/ftp/ftp_directory_listing_parser_vms.h" | 12 #include "net/ftp/ftp_directory_listing_parser_vms.h" |
13 | 13 |
| 14 using base::ASCIIToUTF16; |
| 15 |
14 namespace net { | 16 namespace net { |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 typedef FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; | 20 typedef FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; |
19 | 21 |
20 TEST_F(FtpDirectoryListingParserVmsTest, Good) { | 22 TEST_F(FtpDirectoryListingParserVmsTest, Good) { |
21 const struct SingleLineTestData good_cases[] = { | 23 const struct SingleLineTestData good_cases[] = { |
22 { "README.TXT;4 2 18-APR-2000 10:40:39.90", | 24 { "README.TXT;4 2 18-APR-2000 10:40:39.90", |
23 FtpDirectoryListingEntry::FILE, "readme.txt", 1024, | 25 FtpDirectoryListingEntry::FILE, "readme.txt", 1024, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 std::vector<FtpDirectoryListingEntry> entries; | 161 std::vector<FtpDirectoryListingEntry> entries; |
160 EXPECT_FALSE(ParseFtpDirectoryListingVms(lines, | 162 EXPECT_FALSE(ParseFtpDirectoryListingVms(lines, |
161 &entries)); | 163 &entries)); |
162 } | 164 } |
163 } | 165 } |
164 } | 166 } |
165 | 167 |
166 } // namespace | 168 } // namespace |
167 | 169 |
168 } // namespace net | 170 } // namespace net |
OLD | NEW |