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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm

Issue 2491383002: Use Distilled path instead of DistilledURL. (Closed)
Patch Set: fix compilation Created 4 years, 1 month 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: ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
diff --git a/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm b/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
index da7bbf37be07de8e46672de0beea02e331408cb6..793ec4aed6e6a22ec8e710d188b5212dd30816ed 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
+++ b/ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm
@@ -76,7 +76,7 @@ TEST(ReadingListStorage, SaveOneModified) {
ReadingListEntry(GURL("http://unread.example.com"), "unread title"));
{
ReadingListModelStorageDefaults storage(defaults);
- entries[0].SetDistilledURL(GURL("http://distilled.example.com"));
+ entries[0].SetDistilledPath(base::FilePath("distilled/page.html"));
storage.SavePersistentUnreadList(entries);
}
@@ -85,7 +85,9 @@ TEST(ReadingListStorage, SaveOneModified) {
storage.LoadPersistentUnreadList());
EXPECT_EQ(1ul, restored_entries.size());
EXPECT_EQ(GURL("http://unread.example.com"), restored_entries[0].URL());
- EXPECT_EQ(GURL("http://distilled.example.com"),
+ EXPECT_EQ(base::FilePath("distilled/page.html"),
+ restored_entries[0].DistilledPath());
+ EXPECT_EQ(GURL("chrome://offline/distilled/page.html"),
restored_entries[0].DistilledURL());
EXPECT_EQ("unread title", restored_entries[0].Title());
}

Powered by Google App Engine
This is Rietveld 408576698