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

Unified Diff: components/offline_pages/core/background/request_queue_store_unittest.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/background/request_queue_store_unittest.cc
diff --git a/components/offline_pages/background/request_queue_store_unittest.cc b/components/offline_pages/core/background/request_queue_store_unittest.cc
similarity index 95%
rename from components/offline_pages/background/request_queue_store_unittest.cc
rename to components/offline_pages/core/background/request_queue_store_unittest.cc
index c4264c4aefd1a7038958fdadff710536ec9e961f..ff5042319c6f690549d232c4f20fd3be1326a055 100644
--- a/components/offline_pages/background/request_queue_store_unittest.cc
+++ b/components/offline_pages/core/background/request_queue_store_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/background/request_queue_store.h"
+#include "components/offline_pages/core/background/request_queue_store.h"
#include <memory>
@@ -11,10 +11,10 @@
#include "base/files/scoped_temp_dir.h"
#include "base/test/test_simple_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "components/offline_pages/background/request_queue.h"
-#include "components/offline_pages/background/request_queue_in_memory_store.h"
-#include "components/offline_pages/background/request_queue_store_sql.h"
-#include "components/offline_pages/background/save_page_request.h"
+#include "components/offline_pages/core/background/request_queue.h"
+#include "components/offline_pages/core/background/request_queue_in_memory_store.h"
+#include "components/offline_pages/core/background/request_queue_store_sql.h"
+#include "components/offline_pages/core/background/save_page_request.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_pages {
@@ -261,8 +261,8 @@ TYPED_TEST(RequestQueueStoreTest, GetRequestsByIds) {
TYPED_TEST(RequestQueueStoreTest, AddRequest) {
std::unique_ptr<RequestQueueStore> store(this->BuildStore());
base::Time creation_time = base::Time::Now();
- SavePageRequest request(
- kRequestId, kUrl, kClientId, creation_time, kUserRequested);
+ SavePageRequest request(kRequestId, kUrl, kClientId, creation_time,
+ kUserRequested);
store->AddRequest(request,
base::Bind(&RequestQueueStoreTestBase::AddRequestDone,
@@ -303,8 +303,8 @@ TYPED_TEST(RequestQueueStoreTest, AddRequest) {
TYPED_TEST(RequestQueueStoreTest, UpdateRequest) {
std::unique_ptr<RequestQueueStore> store(this->BuildStore());
base::Time creation_time = base::Time::Now();
- SavePageRequest original_request(
- kRequestId, kUrl, kClientId, creation_time, kUserRequested);
+ SavePageRequest original_request(kRequestId, kUrl, kClientId, creation_time,
+ kUserRequested);
store->AddRequest(original_request,
base::Bind(&RequestQueueStoreTestBase::AddRequestDone,
base::Unretained(this)));
@@ -418,8 +418,8 @@ TYPED_TEST(RequestQueueStoreTest, RemoveRequests) {
TYPED_TEST(RequestQueueStoreTest, ResetStore) {
std::unique_ptr<RequestQueueStore> store(this->BuildStore());
base::Time creation_time = base::Time::Now();
- SavePageRequest original_request(
- kRequestId, kUrl, kClientId, creation_time, kUserRequested);
+ SavePageRequest original_request(kRequestId, kUrl, kClientId, creation_time,
+ kUserRequested);
store->AddRequest(original_request,
base::Bind(&RequestQueueStoreTestBase::AddRequestDone,
base::Unretained(this)));
@@ -448,8 +448,8 @@ class RequestQueueStoreSQLTest
TEST_F(RequestQueueStoreSQLTest, SaveCloseReopenRead) {
std::unique_ptr<RequestQueueStore> store(BuildStore());
base::Time creation_time = base::Time::Now();
- SavePageRequest original_request(
- kRequestId, kUrl, kClientId, creation_time, kUserRequested);
+ SavePageRequest original_request(kRequestId, kUrl, kClientId, creation_time,
+ kUserRequested);
store->AddRequest(original_request,
base::Bind(&RequestQueueStoreTestBase::AddRequestDone,
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698