Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/autofill/core/browser/options_util_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
5 #include "components/autofill/core/browser/autofill_test_utils.h" 7 #include "components/autofill/core/browser/autofill_test_utils.h"
6 #include "components/autofill/core/browser/options_util.h" 8 #include "components/autofill/core/browser/options_util.h"
7 #include "components/autofill/core/browser/test_personal_data_manager.h" 9 #include "components/autofill/core/browser/test_personal_data_manager.h"
8 #include "components/autofill/core/common/autofill_pref_names.h" 10 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698