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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 datatypes.push_back(syncer::PRIORITY_PREFERENCES); | 52 datatypes.push_back(syncer::PRIORITY_PREFERENCES); |
53 datatypes.push_back(syncer::SEARCH_ENGINES); | 53 datatypes.push_back(syncer::SEARCH_ENGINES); |
54 datatypes.push_back(syncer::SESSIONS); | 54 datatypes.push_back(syncer::SESSIONS); |
55 datatypes.push_back(syncer::PROXY_TABS); | 55 datatypes.push_back(syncer::PROXY_TABS); |
56 datatypes.push_back(syncer::THEMES); | 56 datatypes.push_back(syncer::THEMES); |
57 datatypes.push_back(syncer::TYPED_URLS); | 57 datatypes.push_back(syncer::TYPED_URLS); |
58 datatypes.push_back(syncer::FAVICON_TRACKING); | 58 datatypes.push_back(syncer::FAVICON_TRACKING); |
59 datatypes.push_back(syncer::FAVICON_IMAGES); | 59 datatypes.push_back(syncer::FAVICON_IMAGES); |
60 datatypes.push_back(syncer::SYNCED_NOTIFICATIONS); | 60 datatypes.push_back(syncer::SYNCED_NOTIFICATIONS); |
61 datatypes.push_back(syncer::MANAGED_USERS); | 61 datatypes.push_back(syncer::MANAGED_USERS); |
| 62 datatypes.push_back(syncer::MANAGED_USER_SHARED_SETTINGS); |
62 | 63 |
63 return datatypes; | 64 return datatypes; |
64 } | 65 } |
65 | 66 |
66 // Returns the number of default datatypes. | 67 // Returns the number of default datatypes. |
67 static size_t DefaultDatatypesCount() { | 68 static size_t DefaultDatatypesCount() { |
68 return DefaultDatatypes().size(); | 69 return DefaultDatatypes().size(); |
69 } | 70 } |
70 | 71 |
71 // Asserts that all the default datatypes are in |map|, except | 72 // Asserts that all the default datatypes are in |map|, except |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableAutofillProfile) { | 160 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableAutofillProfile) { |
160 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile, | 161 TestSwitchDisablesType(switches::kDisableSyncAutofillProfile, |
161 syncer::AUTOFILL_PROFILE); | 162 syncer::AUTOFILL_PROFILE); |
162 } | 163 } |
163 | 164 |
164 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisablePasswords) { | 165 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisablePasswords) { |
165 TestSwitchDisablesType(switches::kDisableSyncPasswords, | 166 TestSwitchDisablesType(switches::kDisableSyncPasswords, |
166 syncer::PASSWORDS); | 167 syncer::PASSWORDS); |
167 } | 168 } |
OLD | NEW |