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

Side by Side Diff: components/reading_list/core/reading_list_model_unittest.cc

Issue 2923363004: [Sync] Migrate bridge implementations to change list based MergeSyncData (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/history/core/browser/typed_url_sync_bridge.cc ('k') | components/reading_list/core/reading_list_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698