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

Unified Diff: components/offline_pages/offline_page_model_impl_unittest.cc

Issue 2345133002: Offline Pages: Removes the metadata consistency check from the model API. (Closed)
Patch Set: Rebase Created 4 years, 3 months 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/offline_page_model_impl_unittest.cc
diff --git a/components/offline_pages/offline_page_model_impl_unittest.cc b/components/offline_pages/offline_page_model_impl_unittest.cc
index 3c988f6de248eef72cecd7eb3f9dfc8704f69cee..3f56878e9219f146e453452470a546ca7cc412ce 100644
--- a/components/offline_pages/offline_page_model_impl_unittest.cc
+++ b/components/offline_pages/offline_page_model_impl_unittest.cc
@@ -770,9 +770,12 @@ TEST_F(OfflinePageModelImplTest, DetectThatOfflineCopyIsMissing) {
const OfflinePageItem* page = GetPageByOfflineId(offline_id);
- // Delete the offline copy of the page and check the metadata.
+ // Delete the offline copy of the page.
base::DeleteFile(page->file_path, false);
- model()->CheckMetadataConsistency();
+
+ // Resetting the model will cause a consistency check.
+ ResetModel();
+
PumpLoop();
// Check if the page has been expired.
« no previous file with comments | « components/offline_pages/offline_page_model_impl.cc ('k') | components/offline_pages/stub_offline_page_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698