| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ | 5 #ifndef CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ |
| 6 #define CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ | 6 #define CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> |
| 10 |
| 9 namespace policy { | 11 namespace policy { |
| 10 | 12 |
| 11 void SimulateSuccessfulLogin(); | 13 class DeviceTokenFetcher; |
| 14 |
| 15 extern const char* kTestDasherDomainUsername; |
| 16 |
| 17 void SimulateTokenAvailable(); |
| 18 |
| 19 void SimulateUserNameAvailable(DeviceTokenFetcher* fetcher, |
| 20 const std::string& username); |
| 21 |
| 22 void SimulateSuccessfulLogin(DeviceTokenFetcher* fetcher, |
| 23 const std::string& username); |
| 12 | 24 |
| 13 } // namespace | 25 } // namespace |
| 14 | 26 |
| 15 #endif // CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ | 27 #endif // CHROME_TEST_DEVICE_MANAGEMENT_TEST_UTIL_H_ |
| OLD | NEW |