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 "base/macros.h" | 5 #include "base/macros.h" |
6 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 6 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
7 #include "chrome/browser/sync/test/integration/sync_test.h" | 7 #include "chrome/browser/sync/test/integration/sync_test.h" |
8 #include "components/browser_sync/browser/profile_sync_service.h" | 8 #include "components/browser_sync/browser/profile_sync_service.h" |
9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "components/sync/base/model_type.h" |
10 #include "sync/internal_api/public/read_node.h" | 10 #include "components/sync/core/read_node.h" |
11 #include "sync/internal_api/public/read_transaction.h" | 11 #include "components/sync/core/read_transaction.h" |
12 | 12 |
13 // This file contains tests that exercise enabling and disabling data | 13 // This file contains tests that exercise enabling and disabling data |
14 // types. | 14 // types. |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 class EnableDisableSingleClientTest : public SyncTest { | 18 class EnableDisableSingleClientTest : public SyncTest { |
19 public: | 19 public: |
20 EnableDisableSingleClientTest() : SyncTest(SINGLE_CLIENT) {} | 20 EnableDisableSingleClientTest() : SyncTest(SINGLE_CLIENT) {} |
21 ~EnableDisableSingleClientTest() override {} | 21 ~EnableDisableSingleClientTest() override {} |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 ASSERT_EQ(GetClient(0)->IsTypePreferred(syncer::TYPED_URLS), | 157 ASSERT_EQ(GetClient(0)->IsTypePreferred(syncer::TYPED_URLS), |
158 DoesTopLevelNodeExist(user_share, syncer::SESSIONS)); | 158 DoesTopLevelNodeExist(user_share, syncer::SESSIONS)); |
159 } else if (it.Get() == syncer::PREFERENCES) { | 159 } else if (it.Get() == syncer::PREFERENCES) { |
160 ASSERT_FALSE(DoesTopLevelNodeExist(user_share, | 160 ASSERT_FALSE(DoesTopLevelNodeExist(user_share, |
161 syncer::PRIORITY_PREFERENCES)); | 161 syncer::PRIORITY_PREFERENCES)); |
162 } | 162 } |
163 } | 163 } |
164 } | 164 } |
165 | 165 |
166 } // namespace | 166 } // namespace |
OLD | NEW |