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

Unified Diff: components/offline_pages/core/background/save_page_request_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/save_page_request_unittest.cc
diff --git a/components/offline_pages/background/save_page_request_unittest.cc b/components/offline_pages/core/background/save_page_request_unittest.cc
similarity index 91%
rename from components/offline_pages/background/save_page_request_unittest.cc
rename to components/offline_pages/core/background/save_page_request_unittest.cc
index 74da9b638aa83c57aa3744c9fd7341a32e799858..7fc2dcd6f2ae6cba95f35fbc9229f05014186c54 100644
--- a/components/offline_pages/background/save_page_request_unittest.cc
+++ b/components/offline_pages/core/background/save_page_request_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/save_page_request.h"
+#include "components/offline_pages/core/background/save_page_request.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -24,8 +24,8 @@ SavePageRequestTest::~SavePageRequestTest() {}
TEST_F(SavePageRequestTest, CreatePendingReqeust) {
base::Time creation_time = base::Time::Now();
- SavePageRequest request(
- kRequestId, kUrl, kClientId, creation_time, kUserRequested);
+ SavePageRequest request(kRequestId, kUrl, kClientId, creation_time,
+ kUserRequested);
ASSERT_EQ(kRequestId, request.request_id());
ASSERT_EQ(kUrl, request.url());
ASSERT_EQ(kClientId, request.client_id());
@@ -57,8 +57,7 @@ TEST_F(SavePageRequestTest, StartAndCompleteRequest) {
// Attempt time, attempt count and status will though.
ASSERT_EQ(start_time, request.last_attempt_time());
ASSERT_EQ(1, request.started_attempt_count());
- ASSERT_EQ(SavePageRequest::RequestState::OFFLINING,
- request.request_state());
+ ASSERT_EQ(SavePageRequest::RequestState::OFFLINING, request.request_state());
request.MarkAttemptCompleted();
@@ -91,8 +90,7 @@ TEST_F(SavePageRequestTest, StartAndAbortRequest) {
// Attempt time and attempt count will though.
ASSERT_EQ(start_time, request.last_attempt_time());
ASSERT_EQ(1, request.started_attempt_count());
- ASSERT_EQ(SavePageRequest::RequestState::OFFLINING,
- request.request_state());
+ ASSERT_EQ(SavePageRequest::RequestState::OFFLINING, request.request_state());
request.MarkAttemptAborted();
« no previous file with comments | « components/offline_pages/core/background/save_page_request.cc ('k') | components/offline_pages/core/background/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698