| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/offline_pages/offline_page_test_store.h" | 5 #include "components/offline_pages/offline_page_test_store.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 iter->second.last_access_time = last_access_time; | 77 iter->second.last_access_time = last_access_time; |
| 78 } | 78 } |
| 79 | 79 |
| 80 std::vector<OfflinePageItem> OfflinePageTestStore::GetAllPages() const { | 80 std::vector<OfflinePageItem> OfflinePageTestStore::GetAllPages() const { |
| 81 std::vector<OfflinePageItem> offline_pages; | 81 std::vector<OfflinePageItem> offline_pages; |
| 82 for (const auto& id_page_pair : offline_pages_) | 82 for (const auto& id_page_pair : offline_pages_) |
| 83 offline_pages.push_back(id_page_pair.second); | 83 offline_pages.push_back(id_page_pair.second); |
| 84 return offline_pages; | 84 return offline_pages; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void OfflinePageTestStore::ClearAllPages() { |
| 88 offline_pages_.clear(); |
| 89 } |
| 90 |
| 87 } // namespace offline_pages | 91 } // namespace offline_pages |
| OLD | NEW |