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

Unified Diff: components/offline_pages/core/downloads/download_ui_adapter_unittest.cc

Issue 2469933002: Offline Pages: Replace Observer::OfflinePageModelChanged with OfflinePageAdded. (Closed)
Patch Set: nits 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/downloads/download_ui_adapter_unittest.cc
diff --git a/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc b/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
index 60f1402ba3a187598afd6fef7f12618dc4d8c0b7..8ad39c5b0e34365e9edec0199d4664813498eef0 100644
--- a/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
+++ b/components/offline_pages/core/downloads/download_ui_adapter_unittest.cc
@@ -104,7 +104,7 @@ class MockOfflinePageModel : public StubOfflinePageModel {
void AddPageAndNotifyAdapter(const OfflinePageItem& page) {
EXPECT_EQ(pages.end(), pages.find(page.offline_id));
pages[page.offline_id] = page;
- observer_->OfflinePageModelChanged(this);
+ observer_->OfflinePageAdded(this, page);
}
ClientPolicyController* GetPolicyController() override {
« no previous file with comments | « components/offline_pages/core/downloads/download_ui_adapter.cc ('k') | components/offline_pages/core/offline_page_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698