Chromium Code Reviews| 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 1ffb6f69b96888ff0261f43b92c92b2271203217..f27b7337ace21ab4fdd1d7af2863d97b3a73fa28 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 |
| @@ -95,8 +95,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListOnline) { |
| 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()); |
| + GURL distilled_url = reading_list::OfflineURLForPath( |
|
gambard
2017/01/20 14:49:35
maybe remove the distilled_url as you are not usin
Olivier
2017/01/20 16:09:14
That is true :)
Done
|
| + entry->DistilledPath(), entry->URL(), entry->DistilledURL()); |
| test_navigation_manager_->GetPendingItem()->SetURL(url); |
| test_web_state_.SetLoading(true); |
| @@ -118,8 +118,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListDistilledCommitted) { |
| 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()); |
| + GURL distilled_url = reading_list::OfflineURLForPath( |
| + entry->DistilledPath(), entry->URL(), entry->DistilledURL()); |
| // Test on commited entry, there must be no pending item. |
| test_navigation_manager_->SetPendingItem(nullptr); |
| @@ -143,8 +143,8 @@ TEST_F(ReadingListWebStateObserverTest, TestLoadReadingListDistilledPending) { |
| 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()); |
| + GURL distilled_url = reading_list::OfflineURLForPath( |
| + entry->DistilledPath(), entry->URL(), entry->DistilledURL()); |
| test_navigation_manager_->SetPendingItem(nil); |
| test_navigation_manager_->GetLastCommittedItem()->SetURL(url); |