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

Side by Side Diff: components/offline_pages/core/offline_page_test_store.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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 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 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_TEST_STORE_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_STORE_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_TEST_STORE_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "components/offline_pages/offline_page_item.h" 16 #include "components/offline_pages/core/offline_page_item.h"
17 #include "components/offline_pages/offline_page_metadata_store.h" 17 #include "components/offline_pages/core/offline_page_metadata_store.h"
18 18
19 namespace offline_pages { 19 namespace offline_pages {
20 20
21 // Offline page store to be used for testing purposes. It stores offline pages 21 // Offline page store to be used for testing purposes. It stores offline pages
22 // in memory. All callbacks are posted immediately through a provided 22 // in memory. All callbacks are posted immediately through a provided
23 // |task_runner|. 23 // |task_runner|.
24 class OfflinePageTestStore : public OfflinePageMetadataStore { 24 class OfflinePageTestStore : public OfflinePageMetadataStore {
25 public: 25 public:
26 enum class TestScenario { 26 enum class TestScenario {
27 SUCCESSFUL, 27 SUCCESSFUL,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 TestScenario scenario_; 67 TestScenario scenario_;
68 StoreState store_state_; 68 StoreState store_state_;
69 69
70 std::map<int64_t, OfflinePageItem> offline_pages_; 70 std::map<int64_t, OfflinePageItem> offline_pages_;
71 71
72 DISALLOW_ASSIGN(OfflinePageTestStore); 72 DISALLOW_ASSIGN(OfflinePageTestStore);
73 }; 73 };
74 74
75 } // namespace offline_pages 75 } // namespace offline_pages
76 76
77 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_TEST_STORE_H_ 77 #endif // COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_TEST_STORE_H_
OLDNEW
« no previous file with comments | « components/offline_pages/core/offline_page_test_archiver.cc ('k') | components/offline_pages/core/offline_page_test_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698