OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_split.h" |
8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
10 #include "net/ftp/ftp_directory_listing_parser_vms.h" | 11 #include "net/ftp/ftp_directory_listing_parser_vms.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 typedef net::FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; | 15 typedef net::FtpDirectoryListingParserTest FtpDirectoryListingParserVmsTest; |
15 | 16 |
16 TEST_F(FtpDirectoryListingParserVmsTest, Good) { | 17 TEST_F(FtpDirectoryListingParserVmsTest, Good) { |
17 const struct SingleLineTestData good_cases[] = { | 18 const struct SingleLineTestData good_cases[] = { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 if (!parser.ConsumeLine(UTF8ToUTF16(*i))) { | 112 if (!parser.ConsumeLine(UTF8ToUTF16(*i))) { |
112 failed = true; | 113 failed = true; |
113 break; | 114 break; |
114 } | 115 } |
115 } | 116 } |
116 EXPECT_TRUE(failed); | 117 EXPECT_TRUE(failed); |
117 } | 118 } |
118 } | 119 } |
119 | 120 |
120 } // namespace | 121 } // namespace |
OLD | NEW |