| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ | 5 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ |
| 6 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ | 6 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "components/download/internal/entry.h" | 11 #include "components/download/internal/entry.h" |
| 12 | 12 |
| 13 namespace download { | 13 namespace download { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 bool SuperficialEntryCompare(const Entry* const& expected, | 16 bool CompareEntry(const Entry* const& expected, const Entry* const& actual); |
| 17 const Entry* const& actual); | |
| 18 | 17 |
| 19 bool SuperficialEntryListCompare(const std::vector<Entry*>& a, | 18 bool CompareEntryList(const std::vector<Entry*>& a, |
| 20 const std::vector<Entry*>& b); | 19 const std::vector<Entry*>& b); |
| 20 |
| 21 bool CompareEntryList(const std::vector<Entry>& list1, |
| 22 const std::vector<Entry>& list2); |
| 21 | 23 |
| 22 Entry BuildEntry(DownloadClient client, const std::string& guid); | 24 Entry BuildEntry(DownloadClient client, const std::string& guid); |
| 23 | 25 |
| 26 Entry BuildEntry(DownloadClient client, |
| 27 const std::string& guid, |
| 28 base::Time cancel_time, |
| 29 SchedulingParams::NetworkRequirements network_requirements, |
| 30 SchedulingParams::BatteryRequirements battery_requirements, |
| 31 SchedulingParams::Priority priority, |
| 32 const GURL& url, |
| 33 const std::string& request_method, |
| 34 Entry::State state); |
| 35 |
| 24 } // namespace test | 36 } // namespace test |
| 25 } // namespace download | 37 } // namespace download |
| 26 | 38 |
| 27 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ | 39 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ |
| OLD | NEW |