| 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 // A base test fixture for mocking sync and signin infrastructure. Used for | 5 // A base test fixture for mocking sync and signin infrastructure. Used for |
| 6 // testing sync-related code. | 6 // testing sync-related code. |
| 7 | 7 |
| 8 #ifndef COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ | 8 #ifndef COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ |
| 9 #define COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ | 9 #define COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ |
| 10 | 10 |
| 11 #include "components/autofill/core/common/password_form.h" | 11 #include "components/autofill/core/common/password_form.h" |
| 12 #include "components/pref_registry/testing_pref_service_syncable.h" | 12 #include "components/pref_registry/testing_pref_service_syncable.h" |
| 13 #include "components/signin/core/browser/account_tracker_service.h" | 13 #include "components/signin/core/browser/account_tracker_service.h" |
| 14 #include "components/signin/core/browser/signin_manager_base.h" | 14 #include "components/signin/core/browser/signin_manager_base.h" |
| 15 #include "components/signin/core/browser/test_signin_client.h" | 15 #include "components/signin/core/browser/test_signin_client.h" |
| 16 #include "components/sync/base/model_type.h" | 16 #include "components/sync/base/model_type.h" |
| 17 #include "components/sync_driver/fake_sync_service.h" | 17 #include "components/sync/driver/fake_sync_service.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 19 |
| 20 namespace password_manager { | 20 namespace password_manager { |
| 21 | 21 |
| 22 class SyncUsernameTestBase : public testing::Test { | 22 class SyncUsernameTestBase : public testing::Test { |
| 23 public: | 23 public: |
| 24 SyncUsernameTestBase(); | 24 SyncUsernameTestBase(); |
| 25 ~SyncUsernameTestBase() override; | 25 ~SyncUsernameTestBase() override; |
| 26 | 26 |
| 27 // Instruct the signin manager to sign in with |email| or out. | 27 // Instruct the signin manager to sign in with |email| or out. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 user_prefs::TestingPrefServiceSyncable prefs_; | 71 user_prefs::TestingPrefServiceSyncable prefs_; |
| 72 TestSigninClient signin_client_; | 72 TestSigninClient signin_client_; |
| 73 AccountTrackerService account_tracker_; | 73 AccountTrackerService account_tracker_; |
| 74 FakeSigninManagerBase signin_manager_; | 74 FakeSigninManagerBase signin_manager_; |
| 75 LocalFakeSyncService sync_service_; | 75 LocalFakeSyncService sync_service_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace password_manager | 78 } // namespace password_manager |
| 79 | 79 |
| 80 #endif // COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ | 80 #endif // COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_SYNC_USERNAME_TEST_BASE_H_ |
| OLD | NEW |