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

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

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 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
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
OLDNEW
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_vms.cc ('k') | net/ftp/ftp_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698