| 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 "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 5 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| 6 #include "chrome/browser/sync/test/integration/sync_test.h" | 6 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 7 #include "sync/internal_api/public/base/model_type.h" | 7 #include "sync/internal_api/public/base/model_type.h" |
| 8 #include "sync/internal_api/public/read_node.h" | 8 #include "sync/internal_api/public/read_node.h" |
| 9 #include "sync/internal_api/public/read_transaction.h" | 9 #include "sync/internal_api/public/read_transaction.h" |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 it.Good(); it.Inc()) { | 104 it.Good(); it.Inc()) { |
| 105 if (!syncer::ProxyTypes().Has(it.Get())) { | 105 if (!syncer::ProxyTypes().Has(it.Get())) { |
| 106 ASSERT_TRUE(DoesTopLevelNodeExist(user_share, it.Get())); | 106 ASSERT_TRUE(DoesTopLevelNodeExist(user_share, it.Get())); |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 for (syncer::ModelTypeSet::Iterator it = registered_types.First(); | 110 for (syncer::ModelTypeSet::Iterator it = registered_types.First(); |
| 111 it.Good(); it.Inc()) { | 111 it.Good(); it.Inc()) { |
| 112 // MANAGED_USERS is always synced. | 112 // MANAGED_USERS is always synced. |
| 113 if (it.Get() == syncer::MANAGED_USERS || | 113 if (it.Get() == syncer::MANAGED_USERS || |
| 114 it.Get() == syncer::SYNCED_NOTIFICATIONS) | 114 it.Get() == syncer::SYNCED_NOTIFICATIONS || |
| 115 it.Get() == syncer::SYNCED_NOTIFICATION_APP_INFO) |
| 115 continue; | 116 continue; |
| 116 | 117 |
| 117 ASSERT_TRUE(GetClient(0)->DisableSyncForDatatype(it.Get())); | 118 ASSERT_TRUE(GetClient(0)->DisableSyncForDatatype(it.Get())); |
| 118 | 119 |
| 119 // AUTOFILL_PROFILE is lumped together with AUTOFILL. | 120 // AUTOFILL_PROFILE is lumped together with AUTOFILL. |
| 120 // SESSIONS is lumped together with PROXY_TABS and TYPED_URLS. | 121 // SESSIONS is lumped together with PROXY_TABS and TYPED_URLS. |
| 121 // HISTORY_DELETE_DIRECTIVES is lumped together with TYPED_URLS. | 122 // HISTORY_DELETE_DIRECTIVES is lumped together with TYPED_URLS. |
| 122 // PRIORITY_PREFERENCES is lumped together with PREFERENCES. | 123 // PRIORITY_PREFERENCES is lumped together with PREFERENCES. |
| 123 // Favicons are lumped together with PROXY_TABS and | 124 // Favicons are lumped together with PROXY_TABS and |
| 124 // HISTORY_DELETE_DIRECTIVES. | 125 // HISTORY_DELETE_DIRECTIVES. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 153 } else if (it.Get() == syncer::PREFERENCES) { | 154 } else if (it.Get() == syncer::PREFERENCES) { |
| 154 ASSERT_FALSE(DoesTopLevelNodeExist(user_share, | 155 ASSERT_FALSE(DoesTopLevelNodeExist(user_share, |
| 155 syncer::PRIORITY_PREFERENCES)); | 156 syncer::PRIORITY_PREFERENCES)); |
| 156 } | 157 } |
| 157 } | 158 } |
| 158 | 159 |
| 159 EnableNotifications(); | 160 EnableNotifications(); |
| 160 } | 161 } |
| 161 | 162 |
| 162 } // namespace | 163 } // namespace |
| OLD | NEW |