| Index: chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
|
| diff --git a/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc b/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
|
| index 4eea23c5472a6cb57ba332e3e1479f6617f43eda..6313149b8faeed24908518c372ca808b32e7d68a 100644
|
| --- a/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
|
| +++ b/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc
|
| @@ -41,7 +41,6 @@ const GURL kTestPage4Url("http://test.org/page4");
|
| const int64_t kTestFileSize = 876543LL;
|
| const char* kTestPage1ClientId = "1234";
|
| const char* kTestPage2ClientId = "5678";
|
| -const char* kTestPage4ClientId = "9876";
|
|
|
| void BoolCallback(bool* actual_result, bool call_result) {
|
| DCHECK(actual_result);
|
| @@ -150,9 +149,6 @@ void OfflinePageUtilsTest::SetLastPathCreatedByArchiver(
|
| const base::FilePath& file_path) {}
|
|
|
| void OfflinePageUtilsTest::CreateOfflinePages() {
|
| - OfflinePageModel* model =
|
| - OfflinePageModelFactory::GetForBrowserContext(profile());
|
| -
|
| // Create page 1.
|
| std::unique_ptr<OfflinePageTestArchiver> archiver(BuildArchiver(
|
| kTestPage1Url, base::FilePath(FILE_PATH_LITERAL("page1.mhtml"))));
|
| @@ -166,17 +162,6 @@ void OfflinePageUtilsTest::CreateOfflinePages() {
|
| base::FilePath(FILE_PATH_LITERAL("page2.mhtml")));
|
| client_id.id = kTestPage2ClientId;
|
| SavePage(kTestPage2Url, client_id, std::move(archiver));
|
| -
|
| - // Create page 4 - expired page.
|
| - archiver = BuildArchiver(kTestPage4Url,
|
| - base::FilePath(FILE_PATH_LITERAL("page4.mhtml")));
|
| - client_id.id = kTestPage4ClientId;
|
| - SavePage(kTestPage4Url, client_id, std::move(archiver));
|
| - RunUntilIdle();
|
| - model->ExpirePages(
|
| - std::vector<int64_t>({offline_id()}), base::Time::Now(),
|
| - base::Bind(&OfflinePageUtilsTest::OnExpirePageDone, AsWeakPtr()));
|
| - RunUntilIdle();
|
| }
|
|
|
| std::unique_ptr<OfflinePageTestArchiver> OfflinePageUtilsTest::BuildArchiver(
|
|
|