OLD | NEW |
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_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/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
9 #include "net/ftp/ftp_directory_listing_parser_vms.h" | 10 #include "net/ftp/ftp_directory_listing_parser_vms.h" |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 typedef net::FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; | 14 typedef net::FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; |
14 | 15 |
15 TEST_F(FtpDirectoryListingParserVmsTest, Good) { | 16 TEST_F(FtpDirectoryListingParserVmsTest, Good) { |
16 const struct SingleLineTestData good_cases[] = { | 17 const struct SingleLineTestData good_cases[] = { |
17 { "README.TXT;4 2 18-APR-2000 10:40:39.90", | 18 { "README.TXT;4 2 18-APR-2000 10:40:39.90", |
18 net::FtpDirectoryListingEntry::FILE, "readme.txt", 1024, | 19 net::FtpDirectoryListingEntry::FILE, "readme.txt", 1024, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 if (!parser.ConsumeLine(UTF8ToUTF16(*i))) { | 111 if (!parser.ConsumeLine(UTF8ToUTF16(*i))) { |
111 failed = true; | 112 failed = true; |
112 break; | 113 break; |
113 } | 114 } |
114 } | 115 } |
115 EXPECT_TRUE(failed); | 116 EXPECT_TRUE(failed); |
116 } | 117 } |
117 } | 118 } |
118 | 119 |
119 } // namespace | 120 } // namespace |
OLD | NEW |