OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_TEST_APP_SIGNIN_TEST_UTIL_H_ |
| 6 #define IOS_CHROME_TEST_APP_SIGNIN_TEST_UTIL_H_ |
| 7 |
| 8 namespace chrome_test_util { |
| 9 |
| 10 // Sets up mock authentication that will bypass the real ChromeIdentityService |
| 11 // and install a fake one. |
| 12 void SetUpMockAuthentication(); |
| 13 |
| 14 // Tears down the fake ChromeIdentityService and restores the real one. |
| 15 void TearDownMockAuthentication(); |
| 16 |
| 17 // Sets up a mock AccountReconcilor that will always succeed and won't use the |
| 18 // network. |
| 19 void SetUpMockAccountReconcilor(); |
| 20 |
| 21 // Tears down the mock AccountReconcilor if it was previously set up. |
| 22 void TearDownMockAccountReconcilor(); |
| 23 |
| 24 // Signs the user out and clears the known accounts entirely. Returns whether |
| 25 // the accounts were correctly removed from the keychain. |
| 26 bool SignOutAndClearAccounts(); |
| 27 |
| 28 } // namespace chrome_test_util |
| 29 |
| 30 #endif // IOS_CHROME_TEST_APP_SIGNIN_TEST_UTIL_H_ |
OLD | NEW |