OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FAKE_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 const cryptohome::AuthorizationRequest& auth, | 188 const cryptohome::AuthorizationRequest& auth, |
189 const cryptohome::RemoveKeyRequest& request, | 189 const cryptohome::RemoveKeyRequest& request, |
190 const ProtobufMethodCallback& callback) override; | 190 const ProtobufMethodCallback& callback) override; |
191 void GetBootAttribute(const cryptohome::GetBootAttributeRequest& request, | 191 void GetBootAttribute(const cryptohome::GetBootAttributeRequest& request, |
192 const ProtobufMethodCallback& callback) override; | 192 const ProtobufMethodCallback& callback) override; |
193 void SetBootAttribute(const cryptohome::SetBootAttributeRequest& request, | 193 void SetBootAttribute(const cryptohome::SetBootAttributeRequest& request, |
194 const ProtobufMethodCallback& callback) override; | 194 const ProtobufMethodCallback& callback) override; |
195 void FlushAndSignBootAttributes( | 195 void FlushAndSignBootAttributes( |
196 const cryptohome::FlushAndSignBootAttributesRequest& request, | 196 const cryptohome::FlushAndSignBootAttributesRequest& request, |
197 const ProtobufMethodCallback& callback) override; | 197 const ProtobufMethodCallback& callback) override; |
198 | 198 |
Daniel Erat
2017/03/09 22:15:23
nit: delete the blank line here and below so all t
igorcov
2017/03/10 11:05:45
Done.
| |
199 void RemoveFirmwareManagementParametersInTpm( | |
200 const cryptohome::RemoveFirmwareManagementParametersRequest& request, | |
201 const ProtobufMethodCallback& callback) override; | |
202 | |
203 void SetFirmwareManagementParametersInTpm( | |
204 const cryptohome::SetFirmwareManagementParametersRequest& request, | |
205 const ProtobufMethodCallback& callback) override; | |
206 | |
199 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs | 207 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs |
200 // pending callbacks if is_available is true. | 208 // pending callbacks if is_available is true. |
201 void SetServiceIsAvailable(bool is_available); | 209 void SetServiceIsAvailable(bool is_available); |
202 | 210 |
203 // Sets the unmount result of Unmount() call. | 211 // Sets the unmount result of Unmount() call. |
204 void set_unmount_result(bool result) { | 212 void set_unmount_result(bool result) { |
205 unmount_result_ = result; | 213 unmount_result_ = result; |
206 } | 214 } |
207 | 215 |
208 // Sets the system salt which will be returned from GetSystemSalt(). By | 216 // Sets the system salt which will be returned from GetSystemSalt(). By |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 std::map<std::string, std::vector<uint8_t>> install_attrs_; | 258 std::map<std::string, std::vector<uint8_t>> install_attrs_; |
251 bool locked_; | 259 bool locked_; |
252 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; | 260 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; |
253 | 261 |
254 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); | 262 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); |
255 }; | 263 }; |
256 | 264 |
257 } // namespace chromeos | 265 } // namespace chromeos |
258 | 266 |
259 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 267 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |