| 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_metadata_store.h" | 5 #include "components/offline_pages/core/offline_page_metadata_store.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "base/test/test_simple_task_runner.h" | 16 #include "base/test/test_simple_task_runner.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "components/offline_pages/offline_page_item.h" | 18 #include "components/offline_pages/core/offline_page_item.h" |
| 19 #include "components/offline_pages/offline_page_metadata_store_sql.h" | 19 #include "components/offline_pages/core/offline_page_metadata_store_sql.h" |
| 20 #include "components/offline_pages/offline_page_model.h" | 20 #include "components/offline_pages/core/offline_page_model.h" |
| 21 #include "sql/connection.h" | 21 #include "sql/connection.h" |
| 22 #include "sql/statement.h" | 22 #include "sql/statement.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace offline_pages { | 25 namespace offline_pages { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 #define OFFLINE_PAGES_TABLE_V1 "offlinepages_v1" | 29 #define OFFLINE_PAGES_TABLE_V1 "offlinepages_v1" |
| 30 | 30 |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 std::unique_ptr<OfflinePageMetadataStore> store(BuildStore()); | 908 std::unique_ptr<OfflinePageMetadataStore> store(BuildStore()); |
| 909 | 909 |
| 910 store->Reset(base::Bind(&OfflinePageMetadataStoreTest::ResetCallback, | 910 store->Reset(base::Bind(&OfflinePageMetadataStoreTest::ResetCallback, |
| 911 base::Unretained(this))); | 911 base::Unretained(this))); |
| 912 PumpLoop(); | 912 PumpLoop(); |
| 913 EXPECT_EQ(STATUS_TRUE, last_status_); | 913 EXPECT_EQ(STATUS_TRUE, last_status_); |
| 914 } | 914 } |
| 915 | 915 |
| 916 } // namespace | 916 } // namespace |
| 917 } // namespace offline_pages | 917 } // namespace offline_pages |
| OLD | NEW |