| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/reading_list/core/reading_list_model.h" | 5 #include "components/reading_list/core/reading_list_model.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/test/simple_test_clock.h" | 9 #include "base/test/simple_test_clock.h" |
| 10 #include "components/reading_list/core/reading_list_model_impl.h" | 10 #include "components/reading_list/core/reading_list_model_impl.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Syncing is not used in this test class. | 109 // Syncing is not used in this test class. |
| 110 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList() | 110 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList() |
| 111 override { | 111 override { |
| 112 NOTREACHED(); | 112 NOTREACHED(); |
| 113 return std::unique_ptr<syncer::MetadataChangeList>(); | 113 return std::unique_ptr<syncer::MetadataChangeList>(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 base::Optional<syncer::ModelError> MergeSyncData( | 116 base::Optional<syncer::ModelError> MergeSyncData( |
| 117 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, | 117 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, |
| 118 syncer::EntityDataMap entity_data_map) override { | 118 syncer::EntityChangeList entity_data) override { |
| 119 NOTREACHED(); | 119 NOTREACHED(); |
| 120 return {}; | 120 return {}; |
| 121 } | 121 } |
| 122 | 122 |
| 123 base::Optional<syncer::ModelError> ApplySyncChanges( | 123 base::Optional<syncer::ModelError> ApplySyncChanges( |
| 124 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, | 124 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, |
| 125 syncer::EntityChangeList entity_changes) override { | 125 syncer::EntityChangeList entity_changes) override { |
| 126 NOTREACHED(); | 126 NOTREACHED(); |
| 127 return {}; | 127 return {}; |
| 128 } | 128 } |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 model_->SetReadStatus(gurl, true); | 741 model_->SetReadStatus(gurl, true); |
| 742 const ReadingListEntry* entry = model_->GetEntryByURL(gurl); | 742 const ReadingListEntry* entry = model_->GetEntryByURL(gurl); |
| 743 EXPECT_EQ(entry->Title(), "This title contains new line characters"); | 743 EXPECT_EQ(entry->Title(), "This title contains new line characters"); |
| 744 model_->SetEntryTitle(gurl, "test"); | 744 model_->SetEntryTitle(gurl, "test"); |
| 745 EXPECT_EQ(entry->Title(), "test"); | 745 EXPECT_EQ(entry->Title(), "test"); |
| 746 model_->SetEntryTitle(gurl, title); | 746 model_->SetEntryTitle(gurl, title); |
| 747 EXPECT_EQ(entry->Title(), "This title contains new line characters"); | 747 EXPECT_EQ(entry->Title(), "This title contains new line characters"); |
| 748 } | 748 } |
| 749 | 749 |
| 750 } // namespace | 750 } // namespace |
| OLD | NEW |