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

Unified Diff: components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc

Issue 2920083002: Prefetching: Introduce store commands abstractions to be used by tasks. (Closed)
Patch Set: Minor changes Created 3 years, 6 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/core/prefetch/suggested_articles_observer_unittest.cc
diff --git a/components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc b/components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc
index 0338550681cb0841ec0eedcaf2aaf1b9ecc0a3ad..0b2febbe3c4ad15cae190969e0f4433acab26eea 100644
--- a/components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc
+++ b/components/offline_pages/core/prefetch/suggested_articles_observer_unittest.cc
@@ -76,9 +76,8 @@ TEST_F(OfflinePageSuggestedArticlesObserverTest,
EXPECT_EQ(1U, test_prefetch_dispatcher()->latest_prefetch_urls.size());
EXPECT_EQ(test_url_1,
test_prefetch_dispatcher()->latest_prefetch_urls[0].url);
- EXPECT_EQ(
- kSuggestedArticlesNamespace,
- test_prefetch_dispatcher()->latest_prefetch_urls[0].client_id.name_space);
+ EXPECT_EQ(kSuggestedArticlesNamespace,
+ test_prefetch_dispatcher()->latest_name_space);
}
TEST_F(OfflinePageSuggestedArticlesObserverTest, RemovesAllOnBadStatus) {
@@ -119,9 +118,8 @@ TEST_F(OfflinePageSuggestedArticlesObserverTest, RemovesClientIdOnInvalidated) {
EXPECT_NE(nullptr, test_prefetch_dispatcher()->last_removed_client_id.get());
EXPECT_EQ(test_url_1.spec(),
test_prefetch_dispatcher()->last_removed_client_id->id);
- EXPECT_EQ(
- kSuggestedArticlesNamespace,
- test_prefetch_dispatcher()->latest_prefetch_urls[0].client_id.name_space);
+ EXPECT_EQ(kSuggestedArticlesNamespace,
+ test_prefetch_dispatcher()->latest_name_space);
}
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698