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

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: 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 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 8b376e00c44f123579e50eadb34514eda4aaf12f..7d697c6e32849100e68d212b26a422a1d46e7f1a 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 {
@@ -281,8 +281,8 @@ TYPED_TEST(RequestQueueStoreTest, AddRequest) {
this->InitializeStore(store.get());
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,
@@ -325,8 +325,8 @@ TYPED_TEST(RequestQueueStoreTest, UpdateRequest) {
this->InitializeStore(store.get());
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)));
@@ -444,8 +444,8 @@ TYPED_TEST(RequestQueueStoreTest, ResetStore) {
this->InitializeStore(store.get());
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)));
@@ -477,8 +477,8 @@ TEST_F(RequestQueueStoreSQLTest, SaveCloseReopenRead) {
this->InitializeStore(store.get());
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