Chromium Code Reviews

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

Issue 2846037: Fix a renderer crash while processing FTP directory listing. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 17 matching lines...)
28 "dir-listing-ls-7", 28 "dir-listing-ls-7",
29 "dir-listing-ls-8", 29 "dir-listing-ls-8",
30 "dir-listing-ls-9", 30 "dir-listing-ls-9",
31 "dir-listing-ls-10", 31 "dir-listing-ls-10",
32 "dir-listing-ls-11", 32 "dir-listing-ls-11",
33 "dir-listing-ls-12", 33 "dir-listing-ls-12",
34 "dir-listing-ls-13", 34 "dir-listing-ls-13",
35 "dir-listing-ls-14", 35 "dir-listing-ls-14",
36 "dir-listing-ls-15", 36 "dir-listing-ls-15",
37 "dir-listing-ls-16", 37 "dir-listing-ls-16",
38 "dir-listing-ls-17",
38 "dir-listing-mlsd-1", 39 "dir-listing-mlsd-1",
39 "dir-listing-mlsd-2", 40 "dir-listing-mlsd-2",
40 "dir-listing-netware-1", 41 "dir-listing-netware-1",
41 "dir-listing-netware-2", 42 "dir-listing-netware-2",
42 "dir-listing-vms-1", 43 "dir-listing-vms-1",
43 "dir-listing-vms-2", 44 "dir-listing-vms-2",
44 "dir-listing-vms-3", 45 "dir-listing-vms-3",
45 "dir-listing-vms-4", 46 "dir-listing-vms-4",
46 "dir-listing-vms-5", 47 "dir-listing-vms-5",
47 "dir-listing-windows-1", 48 "dir-listing-windows-1",
(...skipping 71 matching lines...)
119 EXPECT_EQ(hour, time_exploded.hour); 120 EXPECT_EQ(hour, time_exploded.hour);
120 EXPECT_EQ(minute, time_exploded.minute); 121 EXPECT_EQ(minute, time_exploded.minute);
121 EXPECT_EQ(0, time_exploded.second); 122 EXPECT_EQ(0, time_exploded.second);
122 EXPECT_EQ(0, time_exploded.millisecond); 123 EXPECT_EQ(0, time_exploded.millisecond);
123 } 124 }
124 EXPECT_FALSE(buffer.EntryAvailable()); 125 EXPECT_FALSE(buffer.EntryAvailable());
125 } 126 }
126 } 127 }
127 128
128 } // namespace 129 } // namespace
OLDNEW
« net/ftp/ftp_directory_listing_buffer.cc ('K') | « net/ftp/ftp_directory_listing_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine