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 #ifndef CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chromeos/dbus/cryptohome_client.h" | 10 #include "chromeos/dbus/cryptohome_client.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const std::string& domain, | 113 const std::string& domain, |
114 const std::string& device_id, | 114 const std::string& device_id, |
115 AttestationChallengeOptions options, | 115 AttestationChallengeOptions options, |
116 const std::string& challenge, | 116 const std::string& challenge, |
117 const AsyncMethodCallback& callback)); | 117 const AsyncMethodCallback& callback)); |
118 MOCK_METHOD4(TpmAttestationSignSimpleChallenge, | 118 MOCK_METHOD4(TpmAttestationSignSimpleChallenge, |
119 void(AttestationKeyType key_type, | 119 void(AttestationKeyType key_type, |
120 const std::string& key_name, | 120 const std::string& key_name, |
121 const std::string& challenge, | 121 const std::string& challenge, |
122 const AsyncMethodCallback& callback)); | 122 const AsyncMethodCallback& callback)); |
| 123 MOCK_METHOD3(TpmAttestationGetKeyPayload, |
| 124 void(AttestationKeyType key_type, |
| 125 const std::string& key_name, |
| 126 const DataMethodCallback& callback)); |
| 127 MOCK_METHOD4(TpmAttestationSetKeyPayload, |
| 128 void(AttestationKeyType key_type, |
| 129 const std::string& key_name, |
| 130 const std::string& payload, |
| 131 const BoolDBusMethodCallback& callback)); |
123 }; | 132 }; |
124 | 133 |
125 } // namespace chromeos | 134 } // namespace chromeos |
126 | 135 |
127 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 136 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |