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

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

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_vms.cc ('k') | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
OLDNEW
« no previous file with comments | « net/ftp/ftp_directory_listing_parser_vms.cc ('k') | net/ftp/ftp_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698