| Index: components/offline_pages/offline_page_test_store.h
|
| diff --git a/components/offline_pages/offline_page_test_store.h b/components/offline_pages/offline_page_test_store.h
|
| index 7464bdd15e07d1e3077381cd13d131bf018c29cd..3497544cfa73cfc5327b171f778ef26be9acacee 100644
|
| --- a/components/offline_pages/offline_page_test_store.h
|
| +++ b/components/offline_pages/offline_page_test_store.h
|
| @@ -26,7 +26,8 @@ class OfflinePageTestStore : public OfflinePageMetadataStore {
|
| enum class TestScenario {
|
| SUCCESSFUL,
|
| WRITE_FAILED,
|
| - LOAD_FAILED,
|
| + LOAD_FAILED_RESET_SUCCESS,
|
| + LOAD_FAILED_RESET_FAILED,
|
| REMOVE_FAILED,
|
| };
|
|
|
| @@ -36,6 +37,7 @@ class OfflinePageTestStore : public OfflinePageMetadataStore {
|
| ~OfflinePageTestStore() override;
|
|
|
| // OfflinePageMetadataStore overrides:
|
| + void Initialize(const InitializeCallback& callback) override;
|
| void GetOfflinePages(const LoadCallback& callback) override;
|
| void AddOfflinePage(const OfflinePageItem& offline_page,
|
| const AddCallback& callback) override;
|
| @@ -43,7 +45,7 @@ class OfflinePageTestStore : public OfflinePageMetadataStore {
|
| const UpdateCallback& callback) override;
|
| void RemoveOfflinePages(const std::vector<int64_t>& offline_ids,
|
| const UpdateCallback& callback) override;
|
| - void Reset(const ResetCallback& callback) override;
|
| + void Reset(const InitializeCallback& callback) override;
|
| StoreState state() const override;
|
|
|
| void UpdateLastAccessTime(int64_t offline_id,
|
| @@ -63,6 +65,7 @@ class OfflinePageTestStore : public OfflinePageMetadataStore {
|
| OfflinePageItem last_saved_page_;
|
| scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
|
| TestScenario scenario_;
|
| + StoreState store_state_;
|
|
|
| std::map<int64_t, OfflinePageItem> offline_pages_;
|
|
|
|
|