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

Unified Diff: components/offline_pages/offline_page_test_store.h

Issue 1521193002: [Offline pages] Refactor URL conversions from TabAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With proper test implementation Created 5 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/offline_page_test_store.h
diff --git a/components/offline_pages/offline_page_test_store.h b/components/offline_pages/offline_page_test_store.h
index 84a0eea45c3f9c9ae1e1d5be35338f1cdccb4eef..55553ee8dba14c5018b4398489ed7dcca5d0303f 100644
--- a/components/offline_pages/offline_page_test_store.h
+++ b/components/offline_pages/offline_page_test_store.h
@@ -47,6 +47,9 @@ class OfflinePageTestStore : public OfflinePageMetadataStore {
// Returns all pages, regardless their states.
std::vector<OfflinePageItem> GetAllPages() const;
+ // Utility method to inject items in store.
+ void SetStoreState(const std::vector<OfflinePageItem>& offline_pages);
+
const OfflinePageItem& last_saved_page() const { return last_saved_page_; }
void set_test_scenario(TestScenario scenario) { scenario_ = scenario; };

Powered by Google App Engine
This is Rietveld 408576698