Index: components/offline_pages/core/offline_page_metadata_store_impl_unittest.cc |
diff --git a/components/offline_pages/offline_page_metadata_store_impl_unittest.cc b/components/offline_pages/core/offline_page_metadata_store_impl_unittest.cc |
similarity index 99% |
rename from components/offline_pages/offline_page_metadata_store_impl_unittest.cc |
rename to components/offline_pages/core/offline_page_metadata_store_impl_unittest.cc |
index b62809eefcb1407015821158181f52ece6a69d35..a98b81874e6353d1c3d66beaed42f21e146e399c 100644 |
--- a/components/offline_pages/offline_page_metadata_store_impl_unittest.cc |
+++ b/components/offline_pages/core/offline_page_metadata_store_impl_unittest.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "components/offline_pages/offline_page_metadata_store.h" |
+#include "components/offline_pages/core/offline_page_metadata_store.h" |
#include <stdint.h> |
@@ -15,9 +15,9 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/test/test_simple_task_runner.h" |
#include "base/threading/thread_task_runner_handle.h" |
-#include "components/offline_pages/offline_page_item.h" |
-#include "components/offline_pages/offline_page_metadata_store_sql.h" |
-#include "components/offline_pages/offline_page_model.h" |
+#include "components/offline_pages/core/offline_page_item.h" |
+#include "components/offline_pages/core/offline_page_metadata_store_sql.h" |
+#include "components/offline_pages/core/offline_page_model.h" |
#include "sql/connection.h" |
#include "sql/statement.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -329,8 +329,9 @@ void OfflinePageMetadataStoreTest::GetOfflinePagesCallback( |
OfflinePageMetadataStore::LoadStatus load_status, |
const std::vector<OfflinePageItem>& offline_pages) { |
last_called_callback_ = LOAD; |
- last_status_ = load_status == OfflinePageMetadataStore::LOAD_SUCCEEDED ? |
- STATUS_TRUE : STATUS_FALSE; |
+ last_status_ = load_status == OfflinePageMetadataStore::LOAD_SUCCEEDED |
+ ? STATUS_TRUE |
+ : STATUS_FALSE; |
offline_pages_.swap(const_cast<std::vector<OfflinePageItem>&>(offline_pages)); |
} |
@@ -539,7 +540,6 @@ TEST_F(OfflinePageMetadataStoreTest, GetOfflinePagesFromInvalidStore) { |
EXPECT_EQ(LOAD, last_called_callback_); |
EXPECT_EQ(0UL, offline_pages_.size()); |
EXPECT_EQ(STATUS_FALSE, last_status_); |
- |
} |
// Loads a store which has an outdated schema. |