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

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

Issue 465059: Implement parser for Netware-style FTP LIST response listing. (Closed)
Patch Set: Created 11 years 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
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_buffer.h" 5 #include "net/ftp/ftp_directory_listing_buffer.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_tokenizer.h" 10 #include "base/string_tokenizer.h"
(...skipping 10 matching lines...) Expand all
21 "dir-listing-ls-1-utf8", 21 "dir-listing-ls-1-utf8",
22 "dir-listing-ls-2", 22 "dir-listing-ls-2",
23 "dir-listing-ls-3", 23 "dir-listing-ls-3",
24 "dir-listing-ls-4", 24 "dir-listing-ls-4",
25 "dir-listing-ls-5", 25 "dir-listing-ls-5",
26 "dir-listing-ls-6", 26 "dir-listing-ls-6",
27 "dir-listing-ls-7", 27 "dir-listing-ls-7",
28 "dir-listing-ls-8", 28 "dir-listing-ls-8",
29 "dir-listing-ls-9", 29 "dir-listing-ls-9",
30 "dir-listing-ls-10", 30 "dir-listing-ls-10",
31 "dir-listing-windows-1", 31 "dir-listing-netware-1",
32 "dir-listing-windows-2", 32 "dir-listing-netware-2",
33 "dir-listing-vms-1", 33 "dir-listing-vms-1",
34 "dir-listing-vms-2", 34 "dir-listing-vms-2",
35 "dir-listing-vms-3", 35 "dir-listing-vms-3",
36 "dir-listing-vms-4", 36 "dir-listing-vms-4",
37 "dir-listing-vms-5", 37 "dir-listing-vms-5",
38 "dir-listing-windows-1",
39 "dir-listing-windows-2",
38 }; 40 };
39 41
40 FilePath test_dir; 42 FilePath test_dir;
41 PathService::Get(base::DIR_SOURCE_ROOT, &test_dir); 43 PathService::Get(base::DIR_SOURCE_ROOT, &test_dir);
42 test_dir = test_dir.AppendASCII("net"); 44 test_dir = test_dir.AppendASCII("net");
43 test_dir = test_dir.AppendASCII("data"); 45 test_dir = test_dir.AppendASCII("data");
44 test_dir = test_dir.AppendASCII("ftp"); 46 test_dir = test_dir.AppendASCII("ftp");
45 47
46 for (size_t i = 0; i < arraysize(test_files); i++) { 48 for (size_t i = 0; i < arraysize(test_files); i++) {
47 SCOPED_TRACE(StringPrintf("Test[%" PRIuS "]: %s", i, test_files[i])); 49 SCOPED_TRACE(StringPrintf("Test[%" PRIuS "]: %s", i, test_files[i]));
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 EXPECT_EQ(hour, time_exploded.hour); 113 EXPECT_EQ(hour, time_exploded.hour);
112 EXPECT_EQ(minute, time_exploded.minute); 114 EXPECT_EQ(minute, time_exploded.minute);
113 EXPECT_EQ(0, time_exploded.second); 115 EXPECT_EQ(0, time_exploded.second);
114 EXPECT_EQ(0, time_exploded.millisecond); 116 EXPECT_EQ(0, time_exploded.millisecond);
115 } 117 }
116 EXPECT_FALSE(buffer.EntryAvailable()); 118 EXPECT_FALSE(buffer.EntryAvailable());
117 } 119 }
118 } 120 }
119 121
120 } // namespace 122 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698