OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chromeos/cryptohome/mock_async_method_caller.h" | 5 #include "chromeos/cryptohome/mock_async_method_caller.h" |
6 | 6 |
| 7 #include "components/user_manager/user_id.h" |
| 8 |
7 using ::testing::Invoke; | 9 using ::testing::Invoke; |
8 using ::testing::WithArgs; | 10 using ::testing::WithArgs; |
9 using ::testing::_; | 11 using ::testing::_; |
10 | 12 |
11 namespace cryptohome { | 13 namespace cryptohome { |
12 | 14 |
13 const char MockAsyncMethodCaller::kFakeAttestationEnrollRequest[] = "enrollreq"; | 15 const char MockAsyncMethodCaller::kFakeAttestationEnrollRequest[] = "enrollreq"; |
14 const char MockAsyncMethodCaller::kFakeAttestationCertRequest[] = "certreq"; | 16 const char MockAsyncMethodCaller::kFakeAttestationCertRequest[] = "certreq"; |
15 const char MockAsyncMethodCaller::kFakeAttestationCert[] = "cert"; | 17 const char MockAsyncMethodCaller::kFakeAttestationCert[] = "cert"; |
16 const char MockAsyncMethodCaller::kFakeSanitizedUsername[] = "01234567890ABC"; | 18 const char MockAsyncMethodCaller::kFakeSanitizedUsername[] = "01234567890ABC"; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const DataCallback& callback) { | 98 const DataCallback& callback) { |
97 callback.Run(success_, kFakeSanitizedUsername); | 99 callback.Run(success_, kFakeSanitizedUsername); |
98 } | 100 } |
99 | 101 |
100 void MockAsyncMethodCaller::FakeEnterpriseChallenge( | 102 void MockAsyncMethodCaller::FakeEnterpriseChallenge( |
101 const DataCallback& callback) { | 103 const DataCallback& callback) { |
102 callback.Run(success_, kFakeChallengeResponse); | 104 callback.Run(success_, kFakeChallengeResponse); |
103 } | 105 } |
104 | 106 |
105 } // namespace cryptohome | 107 } // namespace cryptohome |
OLD | NEW |