| OLD | NEW |
| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 if (it.Get() == syncer::PREFERENCES) { | 149 if (it.Get() == syncer::PREFERENCES) { |
| 150 expected_preferred_types.Put(syncer::DICTIONARY); | 150 expected_preferred_types.Put(syncer::DICTIONARY); |
| 151 expected_preferred_types.Put(syncer::PRIORITY_PREFERENCES); | 151 expected_preferred_types.Put(syncer::PRIORITY_PREFERENCES); |
| 152 expected_preferred_types.Put(syncer::SEARCH_ENGINES); | 152 expected_preferred_types.Put(syncer::SEARCH_ENGINES); |
| 153 } | 153 } |
| 154 if (it.Get() == syncer::APPS) { | 154 if (it.Get() == syncer::APPS) { |
| 155 expected_preferred_types.Put(syncer::APP_LIST); | 155 expected_preferred_types.Put(syncer::APP_LIST); |
| 156 expected_preferred_types.Put(syncer::APP_NOTIFICATIONS); | 156 expected_preferred_types.Put(syncer::APP_NOTIFICATIONS); |
| 157 expected_preferred_types.Put(syncer::APP_SETTINGS); | 157 expected_preferred_types.Put(syncer::APP_SETTINGS); |
| 158 expected_preferred_types.Put(syncer::ARC_PACKAGE); |
| 158 } | 159 } |
| 159 if (it.Get() == syncer::EXTENSIONS) { | 160 if (it.Get() == syncer::EXTENSIONS) { |
| 160 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS); | 161 expected_preferred_types.Put(syncer::EXTENSION_SETTINGS); |
| 161 } | 162 } |
| 162 if (it.Get() == syncer::TYPED_URLS) { | 163 if (it.Get() == syncer::TYPED_URLS) { |
| 163 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES); | 164 expected_preferred_types.Put(syncer::HISTORY_DELETE_DIRECTIVES); |
| 164 expected_preferred_types.Put(syncer::SESSIONS); | 165 expected_preferred_types.Put(syncer::SESSIONS); |
| 165 expected_preferred_types.Put(syncer::FAVICON_IMAGES); | 166 expected_preferred_types.Put(syncer::FAVICON_IMAGES); |
| 166 expected_preferred_types.Put(syncer::FAVICON_TRACKING); | 167 expected_preferred_types.Put(syncer::FAVICON_TRACKING); |
| 167 } | 168 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 256 |
| 256 EXPECT_EQ(versions.size(), versions2.size()); | 257 EXPECT_EQ(versions.size(), versions2.size()); |
| 257 for (auto map_iter : versions2) { | 258 for (auto map_iter : versions2) { |
| 258 EXPECT_EQ(versions[map_iter.first], map_iter.second); | 259 EXPECT_EQ(versions[map_iter.first], map_iter.second); |
| 259 } | 260 } |
| 260 } | 261 } |
| 261 | 262 |
| 262 } // namespace | 263 } // namespace |
| 263 | 264 |
| 264 } // namespace sync_driver | 265 } // namespace sync_driver |
| OLD | NEW |