Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
|
ahemery
2016/12/19 14:53:42
Everything in this file was used during my debuggi
| |
| 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 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ | 4 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ |
| 5 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ | 5 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ |
| 6 | 6 |
| 7 #include <map> | |
| 8 #include <memory> | |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 12 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
| 11 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" | 13 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" |
| 12 | 14 |
| 13 namespace predictors { | 15 namespace predictors { |
| 14 | 16 |
| 15 void InitializeResourceData(ResourceData* resource, | 17 void InitializeResourceData(ResourceData* resource, |
| 16 const std::string& resource_url, | 18 const std::string& resource_url, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 std::ostream& operator<<(std::ostream& stream, const ResourceData& resource); | 64 std::ostream& operator<<(std::ostream& stream, const ResourceData& resource); |
| 63 std::ostream& operator<<(std::ostream& stream, const RedirectData& data); | 65 std::ostream& operator<<(std::ostream& stream, const RedirectData& data); |
| 64 std::ostream& operator<<(std::ostream& stream, const RedirectStat& redirect); | 66 std::ostream& operator<<(std::ostream& stream, const RedirectStat& redirect); |
| 65 std::ostream& operator<<( | 67 std::ostream& operator<<( |
| 66 std::ostream& stream, | 68 std::ostream& stream, |
| 67 const ResourcePrefetchPredictor::PageRequestSummary& summary); | 69 const ResourcePrefetchPredictor::PageRequestSummary& summary); |
| 68 std::ostream& operator<<( | 70 std::ostream& operator<<( |
| 69 std::ostream& stream, | 71 std::ostream& stream, |
| 70 const ResourcePrefetchPredictor::URLRequestSummary& summary); | 72 const ResourcePrefetchPredictor::URLRequestSummary& summary); |
| 71 std::ostream& operator<<(std::ostream& stream, const NavigationID& id); | 73 std::ostream& operator<<(std::ostream& stream, const NavigationID& id); |
| 74 std::ostream& operator<<( | |
| 75 std::ostream& stream, | |
| 76 const std::map< | |
| 77 NavigationID, | |
| 78 std::unique_ptr<ResourcePrefetchPredictor::PageRequestSummary>>& map); | |
| 72 | 79 |
| 73 bool operator==(const PrefetchData& lhs, const PrefetchData& rhs); | 80 bool operator==(const PrefetchData& lhs, const PrefetchData& rhs); |
| 74 bool operator==(const ResourceData& lhs, const ResourceData& rhs); | 81 bool operator==(const ResourceData& lhs, const ResourceData& rhs); |
| 75 bool operator==(const RedirectData& lhs, const RedirectData& rhs); | 82 bool operator==(const RedirectData& lhs, const RedirectData& rhs); |
| 76 bool operator==(const RedirectStat& lhs, const RedirectStat& rhs); | 83 bool operator==(const RedirectStat& lhs, const RedirectStat& rhs); |
| 77 bool operator==(const ResourcePrefetchPredictor::PageRequestSummary& lhs, | 84 bool operator==(const ResourcePrefetchPredictor::PageRequestSummary& lhs, |
| 78 const ResourcePrefetchPredictor::PageRequestSummary& rhs); | 85 const ResourcePrefetchPredictor::PageRequestSummary& rhs); |
| 79 bool operator==(const ResourcePrefetchPredictor::URLRequestSummary& lhs, | 86 bool operator==(const ResourcePrefetchPredictor::URLRequestSummary& lhs, |
| 80 const ResourcePrefetchPredictor::URLRequestSummary& rhs); | 87 const ResourcePrefetchPredictor::URLRequestSummary& rhs); |
| 81 | 88 |
| 82 } // namespace predictors | 89 } // namespace predictors |
| 83 | 90 |
| 84 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ | 91 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_ |
| OLD | NEW |