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/core/offline_page_test_store.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace offline_pages { | 13 namespace offline_pages { |
14 | 14 |
15 OfflinePageTestStore::OfflinePageTestStore( | 15 OfflinePageTestStore::OfflinePageTestStore( |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 for (const auto& id_page_pair : offline_pages_) | 151 for (const auto& id_page_pair : offline_pages_) |
152 offline_pages.push_back(id_page_pair.second); | 152 offline_pages.push_back(id_page_pair.second); |
153 return offline_pages; | 153 return offline_pages; |
154 } | 154 } |
155 | 155 |
156 void OfflinePageTestStore::ClearAllPages() { | 156 void OfflinePageTestStore::ClearAllPages() { |
157 offline_pages_.clear(); | 157 offline_pages_.clear(); |
158 } | 158 } |
159 | 159 |
160 } // namespace offline_pages | 160 } // namespace offline_pages |
OLD | NEW |