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

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

Issue 18054010: Use a direct include of time headers in net/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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_util.cc ('k') | net/http/http_cache.h » ('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_util.h" 5 #include "net/ftp/ftp_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/time.h" 12 #include "base/time/time.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 TEST(FtpUtilTest, UnixFilePathToVMS) { 17 TEST(FtpUtilTest, UnixFilePathToVMS) {
18 const struct { 18 const struct {
19 const char* input; 19 const char* input;
20 const char* expected_output; 20 const char* expected_output;
21 } kTestCases[] = { 21 } kTestCases[] = {
22 { "", "" }, 22 { "", "" },
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 SCOPED_TRACE(base::StringPrintf("Test[%" PRIuS "]: %s %d", i, 244 SCOPED_TRACE(base::StringPrintf("Test[%" PRIuS "]: %s %d", i,
245 kTestCases[i].text, kTestCases[i].column)); 245 kTestCases[i].text, kTestCases[i].column));
246 246
247 EXPECT_EQ(ASCIIToUTF16(kTestCases[i].expected_result), 247 EXPECT_EQ(ASCIIToUTF16(kTestCases[i].expected_result),
248 net::FtpUtil::GetStringPartAfterColumns( 248 net::FtpUtil::GetStringPartAfterColumns(
249 ASCIIToUTF16(kTestCases[i].text), kTestCases[i].column)); 249 ASCIIToUTF16(kTestCases[i].text), kTestCases[i].column));
250 } 250 }
251 } 251 }
252 252
253 } // namespace 253 } // namespace
OLDNEW
« no previous file with comments | « net/ftp/ftp_util.cc ('k') | net/http/http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698