| OLD | NEW |
| 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 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ | 5 #ifndef NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ |
| 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ | 6 #define NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 EXPECT_EQ(test_case.year, time_exploded.year); | 53 EXPECT_EQ(test_case.year, time_exploded.year); |
| 54 EXPECT_EQ(test_case.month, time_exploded.month); | 54 EXPECT_EQ(test_case.month, time_exploded.month); |
| 55 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month); | 55 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month); |
| 56 EXPECT_EQ(test_case.hour, time_exploded.hour); | 56 EXPECT_EQ(test_case.hour, time_exploded.hour); |
| 57 EXPECT_EQ(test_case.minute, time_exploded.minute); | 57 EXPECT_EQ(test_case.minute, time_exploded.minute); |
| 58 | 58 |
| 59 EXPECT_EQ(1U, entries.size()); | 59 EXPECT_EQ(1U, entries.size()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 base::Time GetMockCurrentTime() { | 62 base::Time GetMockCurrentTime() { |
| 63 base::Time::Exploded mock_current_time_exploded = { 0 }; | 63 base::Time::Exploded mock_current_time_exploded = {0}; |
| 64 mock_current_time_exploded.year = 1994; | 64 mock_current_time_exploded.year = 1994; |
| 65 mock_current_time_exploded.month = 11; | 65 mock_current_time_exploded.month = 11; |
| 66 mock_current_time_exploded.day_of_month = 15; | 66 mock_current_time_exploded.day_of_month = 15; |
| 67 mock_current_time_exploded.hour = 12; | 67 mock_current_time_exploded.hour = 12; |
| 68 mock_current_time_exploded.minute = 45; | 68 mock_current_time_exploded.minute = 45; |
| 69 return base::Time::FromLocalExploded(mock_current_time_exploded); | 69 return base::Time::FromLocalExploded(mock_current_time_exploded); |
| 70 } | 70 } |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace net | 73 } // namespace net |
| 74 | 74 |
| 75 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ | 75 #endif // NET_FTP_FTP_DIRECTORY_LISTING_PARSER_UNITTEST_H_ |
| 76 | |
| OLD | NEW |