OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/prefs/pref_registry_simple.h" | |
6 #include "base/prefs/testing_pref_service.h" | |
7 #include "components/autofill/core/browser/autofill_test_utils.h" | 5 #include "components/autofill/core/browser/autofill_test_utils.h" |
8 #include "components/autofill/core/browser/options_util.h" | 6 #include "components/autofill/core/browser/options_util.h" |
9 #include "components/autofill/core/browser/test_personal_data_manager.h" | 7 #include "components/autofill/core/browser/test_personal_data_manager.h" |
10 #include "components/autofill/core/common/autofill_pref_names.h" | 8 #include "components/autofill/core/common/autofill_pref_names.h" |
| 9 #include "components/prefs/pref_registry_simple.h" |
| 10 #include "components/prefs/testing_pref_service.h" |
11 #include "components/sync_driver/data_type_manager.h" | 11 #include "components/sync_driver/data_type_manager.h" |
12 #include "components/sync_driver/fake_sync_service.h" | 12 #include "components/sync_driver/fake_sync_service.h" |
13 #include "components/sync_driver/sync_service.h" | 13 #include "components/sync_driver/sync_service.h" |
14 #include "google_apis/gaia/google_service_auth_error.h" | 14 #include "google_apis/gaia/google_service_auth_error.h" |
15 #include "sync/internal_api/public/engine/sync_status.h" | 15 #include "sync/internal_api/public/engine/sync_status.h" |
16 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 16 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 | 18 |
19 using testing::Return; | 19 using testing::Return; |
20 | 20 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 scoped_ptr<TestSyncService> sync = CreateSyncService(true, true); | 129 scoped_ptr<TestSyncService> sync = CreateSyncService(true, true); |
130 // Set kAutofillWalletSyncExperimentEnabled to false. | 130 // Set kAutofillWalletSyncExperimentEnabled to false. |
131 scoped_ptr<TestingPrefServiceSimple> prefs = CreatePrefService(true, false); | 131 scoped_ptr<TestingPrefServiceSimple> prefs = CreatePrefService(true, false); |
132 scoped_ptr<TestPersonalDataManager> pdm = | 132 scoped_ptr<TestPersonalDataManager> pdm = |
133 CreatePersonalDataManager(prefs.get()); | 133 CreatePersonalDataManager(prefs.get()); |
134 | 134 |
135 EXPECT_FALSE(WalletIntegrationAvailable(sync.get(), *pdm)); | 135 EXPECT_FALSE(WalletIntegrationAvailable(sync.get(), *pdm)); |
136 } | 136 } |
137 | 137 |
138 } // namespace autofill | 138 } // namespace autofill |
OLD | NEW |