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

Side by Side Diff: components/download/internal/test/entry_utils.h

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: More unittests Created 3 years, 7 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
OLDNEW
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 SuperficialEntryCompare(const Entry* const& expected,
17 const Entry* const& actual); 17 const Entry* const& actual);
18 18
19 bool SuperficialEntryListCompare(const std::vector<Entry*>& a, 19 bool CompareEntryList(const std::vector<Entry*>& a,
20 const std::vector<Entry*>& b); 20 const std::vector<Entry*>& b);
21
22 bool CompareEntryList(const std::vector<Entry>& list1,
23 const std::vector<Entry>& list2);
21 24
22 Entry BuildEntry(DownloadClient client, const std::string& guid); 25 Entry BuildEntry(DownloadClient client, const std::string& guid);
23 26
27 Entry BuildEntry(DownloadClient client,
28 const std::string& guid,
29 base::Time cancel_time,
30 SchedulingParams::NetworkRequirements network_requirements,
31 SchedulingParams::BatteryRequirements battery_requirements,
32 SchedulingParams::Priority priority,
33 const GURL& url,
34 const std::string& request_method,
35 Entry::State state);
36
24 } // namespace test 37 } // namespace test
25 } // namespace download 38 } // namespace download
26 39
27 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_ 40 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_ENTRY_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698