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

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

Issue 2277593002: arc: Enable user control for Arc package sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix componets unit_tests 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
« no previous file with comments | « components/sync/driver/sync_prefs.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
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 } 157 }
157 if (it.Get() == syncer::EXTENSIONS) { 158 if (it.Get() == syncer::EXTENSIONS) {
158 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS); 159 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS);
159 } 160 }
160 if (it.Get() == syncer::TYPED_URLS) { 161 if (it.Get() == syncer::TYPED_URLS) {
161 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES); 162 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES);
162 expected_preferred_types.Put(syncer::SESSIONS); 163 expected_preferred_types.Put(syncer::SESSIONS);
163 expected_preferred_types.Put(syncer::FAVICON_IMAGES); 164 expected_preferred_types.Put(syncer::FAVICON_IMAGES);
164 expected_preferred_types.Put(syncer::FAVICON_TRACKING); 165 expected_preferred_types.Put(syncer::FAVICON_TRACKING);
165 } 166 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 EXPECT_EQ(versions.size(), versions2.size()); 255 EXPECT_EQ(versions.size(), versions2.size());
255 for (auto map_iter : versions2) { 256 for (auto map_iter : versions2) {
256 EXPECT_EQ(versions[map_iter.first], map_iter.second); 257 EXPECT_EQ(versions[map_iter.first], map_iter.second);
257 } 258 }
258 } 259 }
259 260
260 } // namespace 261 } // namespace
261 262
262 } // namespace sync_driver 263 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/sync_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698