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

Side by Side Diff: components/sync/driver/sync_prefs_unittest.cc

Issue 2241583003: Creating protobuf for reading list sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sync/driver/sync_prefs.h" 5 #include "components/sync/driver/sync_prefs.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 if (it.Get() == syncer::PREFERENCES) { 147 if (it.Get() == syncer::PREFERENCES) {
148 expected_preferred_types.Put(syncer::DICTIONARY); 148 expected_preferred_types.Put(syncer::DICTIONARY);
149 expected_preferred_types.Put(syncer::PRIORITY_PREFERENCES); 149 expected_preferred_types.Put(syncer::PRIORITY_PREFERENCES);
150 expected_preferred_types.Put(syncer::SEARCH_ENGINES); 150 expected_preferred_types.Put(syncer::SEARCH_ENGINES);
151 } 151 }
152 if (it.Get() == syncer::APPS) { 152 if (it.Get() == syncer::APPS) {
153 expected_preferred_types.Put(syncer::APP_LIST); 153 expected_preferred_types.Put(syncer::APP_LIST);
154 expected_preferred_types.Put(syncer::APP_NOTIFICATIONS); 154 expected_preferred_types.Put(syncer::APP_NOTIFICATIONS);
155 expected_preferred_types.Put(syncer::APP_SETTINGS); 155 expected_preferred_types.Put(syncer::APP_SETTINGS);
156 expected_preferred_types.Put(syncer::ARC_PACKAGE); 156 expected_preferred_types.Put(syncer::ARC_PACKAGE);
157 expected_preferred_types.Put(syncer::READING_LIST);
157 } 158 }
158 if (it.Get() == syncer::EXTENSIONS) { 159 if (it.Get() == syncer::EXTENSIONS) {
159 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS); 160 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS);
160 } 161 }
161 if (it.Get() == syncer::TYPED_URLS) { 162 if (it.Get() == syncer::TYPED_URLS) {
162 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES); 163 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES);
163 expected_preferred_types.Put(syncer::SESSIONS); 164 expected_preferred_types.Put(syncer::SESSIONS);
164 expected_preferred_types.Put(syncer::FAVICON_IMAGES); 165 expected_preferred_types.Put(syncer::FAVICON_IMAGES);
165 expected_preferred_types.Put(syncer::FAVICON_TRACKING); 166 expected_preferred_types.Put(syncer::FAVICON_TRACKING);
166 } 167 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 255
255 EXPECT_EQ(versions.size(), versions2.size()); 256 EXPECT_EQ(versions.size(), versions2.size());
256 for (auto map_iter : versions2) { 257 for (auto map_iter : versions2) {
257 EXPECT_EQ(versions[map_iter.first], map_iter.second); 258 EXPECT_EQ(versions[map_iter.first], map_iter.second);
258 } 259 }
259 } 260 }
260 261
261 } // namespace 262 } // namespace
262 263
263 } // namespace sync_driver 264 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/sync_prefs.cc ('k') | components/sync/driver/user_selectable_sync_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698