| 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());
|
|
|