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_web_state_observer_unittest.mm

Issue 2647763005: Store the distilled_url in Reading List entry in Reading List on iOS. (Closed)
Patch Set: Created 3 years, 11 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: ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm
diff --git a/ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm b/ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm
index 43d8f04f1535ce892aedc72980db593dc83a06e3..1ffb6f69b96888ff0261f43b92c92b2271203217 100644
--- a/ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm
+++ b/ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm
@@ -19,6 +19,7 @@ namespace {
const char kTestURL[] = "http://foo.bar";
const char kTestTitle[] = "title";
const char kTestDistilledPath[] = "distilled/page.html";
+const char kTestDistilledURL[] = "http://foo.bar/distilled";
}
// A Test navigation manager that checks if Reload was called.
@@ -91,8 +92,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListFailure) {
TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListOnline) {
GURL url(kTestURL);
std::string distilled_path = kTestDistilledPath;
- reading_list_model_->SetEntryDistilledPath(url,
- base::FilePath(distilled_path));
+ reading_list_model_->SetEntryDistilledInfo(
+ url, base::FilePath(distilled_path), GURL(kTestDistilledURL));
const ReadingListEntry* entry = reading_list_model_->GetEntryByURL(url);
GURL distilled_url =
reading_list::DistilledURLForPath(entry->DistilledPath(), entry->URL());
@@ -114,8 +115,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListOnline) {
TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListDistilledCommitted) {
GURL url(kTestURL);
std::string distilled_path = kTestDistilledPath;
- reading_list_model_->SetEntryDistilledPath(url,
- base::FilePath(distilled_path));
+ reading_list_model_->SetEntryDistilledInfo(
+ url, base::FilePath(distilled_path), GURL(kTestDistilledURL));
const ReadingListEntry* entry = reading_list_model_->GetEntryByURL(url);
GURL distilled_url =
reading_list::DistilledURLForPath(entry->DistilledPath(), entry->URL());
@@ -139,8 +140,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListDistilledCommitted) {
TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListDistilledPending) {
GURL url(kTestURL);
std::string distilled_path = kTestDistilledPath;
- reading_list_model_->SetEntryDistilledPath(url,
- base::FilePath(distilled_path));
+ reading_list_model_->SetEntryDistilledInfo(
+ url, base::FilePath(distilled_path), GURL(kTestDistilledURL));
const ReadingListEntry* entry = reading_list_model_->GetEntryByURL(url);
GURL distilled_url =
reading_list::DistilledURLForPath(entry->DistilledPath(), entry->URL());

Powered by Google App Engine
This is Rietveld 408576698