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 #include "chromeos/dbus/fake_cryptohome_client.h" | 5 #include "chromeos/dbus/fake_cryptohome_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 void FakeCryptohomeClient::TpmAttestationDeleteKeys( | 454 void FakeCryptohomeClient::TpmAttestationDeleteKeys( |
455 attestation::AttestationKeyType key_type, | 455 attestation::AttestationKeyType key_type, |
456 const std::string& user_id, | 456 const std::string& user_id, |
457 const std::string& key_prefix, | 457 const std::string& key_prefix, |
458 const BoolDBusMethodCallback& callback) { | 458 const BoolDBusMethodCallback& callback) { |
459 base::MessageLoop::current()->PostTask( | 459 base::MessageLoop::current()->PostTask( |
460 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); | 460 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); |
461 } | 461 } |
462 | 462 |
| 463 void FakeCryptohomeClient::GetKeyDataEx( |
| 464 const cryptohome::AccountIdentifier& id, |
| 465 const cryptohome::AuthorizationRequest& auth, |
| 466 const cryptohome::GetKeyDataRequest& request, |
| 467 const ProtobufMethodCallback& callback) { |
| 468 cryptohome::BaseReply reply; |
| 469 reply.MutableExtension(cryptohome::GetKeyDataReply::reply); |
| 470 ReturnProtobufMethodCallback(reply, callback); |
| 471 } |
| 472 |
463 void FakeCryptohomeClient::CheckKeyEx( | 473 void FakeCryptohomeClient::CheckKeyEx( |
464 const cryptohome::AccountIdentifier& id, | 474 const cryptohome::AccountIdentifier& id, |
465 const cryptohome::AuthorizationRequest& auth, | 475 const cryptohome::AuthorizationRequest& auth, |
466 const cryptohome::CheckKeyRequest& request, | 476 const cryptohome::CheckKeyRequest& request, |
467 const ProtobufMethodCallback& callback) { | 477 const ProtobufMethodCallback& callback) { |
468 cryptohome::BaseReply reply; | 478 cryptohome::BaseReply reply; |
469 ReturnProtobufMethodCallback(reply, callback); | 479 ReturnProtobufMethodCallback(reply, callback); |
470 } | 480 } |
471 | 481 |
472 void FakeCryptohomeClient::MountEx( | 482 void FakeCryptohomeClient::MountEx( |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 FROM_HERE, | 597 FROM_HERE, |
588 base::Bind(async_call_status_data_handler_, | 598 base::Bind(async_call_status_data_handler_, |
589 async_call_id_, | 599 async_call_id_, |
590 true, | 600 true, |
591 std::string())); | 601 std::string())); |
592 } | 602 } |
593 ++async_call_id_; | 603 ++async_call_id_; |
594 } | 604 } |
595 | 605 |
596 } // namespace chromeos | 606 } // namespace chromeos |
OLD | NEW |