| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const AsyncMethodCallback& callback) { | 86 const AsyncMethodCallback& callback) { |
| 87 ReturnAsyncMethodResult(callback, false); | 87 ReturnAsyncMethodResult(callback, false); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void FakeCryptohomeClient::AsyncRemove( | 90 void FakeCryptohomeClient::AsyncRemove( |
| 91 const cryptohome::Identification& cryptohome_id, | 91 const cryptohome::Identification& cryptohome_id, |
| 92 const AsyncMethodCallback& callback) { | 92 const AsyncMethodCallback& callback) { |
| 93 ReturnAsyncMethodResult(callback, false); | 93 ReturnAsyncMethodResult(callback, false); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FakeCryptohomeClient::RenameCryptohome( |
| 97 const cryptohome::Identification& cryptohome_id_from, |
| 98 const cryptohome::Identification& cryptohome_id_to, |
| 99 const ProtobufMethodCallback& callback) { |
| 100 cryptohome::BaseReply reply; |
| 101 ReturnProtobufMethodCallback(reply, callback); |
| 102 } |
| 103 |
| 96 void FakeCryptohomeClient::GetSystemSalt( | 104 void FakeCryptohomeClient::GetSystemSalt( |
| 97 const GetSystemSaltCallback& callback) { | 105 const GetSystemSaltCallback& callback) { |
| 98 base::MessageLoop::current()->PostTask( | 106 base::MessageLoop::current()->PostTask( |
| 99 FROM_HERE, | 107 FROM_HERE, |
| 100 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, system_salt_)); | 108 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, system_salt_)); |
| 101 } | 109 } |
| 102 | 110 |
| 103 void FakeCryptohomeClient::GetSanitizedUsername( | 111 void FakeCryptohomeClient::GetSanitizedUsername( |
| 104 const cryptohome::Identification& cryptohome_id, | 112 const cryptohome::Identification& cryptohome_id, |
| 105 const StringDBusMethodCallback& callback) { | 113 const StringDBusMethodCallback& callback) { |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 FROM_HERE, | 608 FROM_HERE, |
| 601 base::Bind(async_call_status_data_handler_, | 609 base::Bind(async_call_status_data_handler_, |
| 602 async_call_id_, | 610 async_call_id_, |
| 603 true, | 611 true, |
| 604 std::string())); | 612 std::string())); |
| 605 } | 613 } |
| 606 ++async_call_id_; | 614 ++async_call_id_; |
| 607 } | 615 } |
| 608 | 616 |
| 609 } // namespace chromeos | 617 } // namespace chromeos |
| OLD | NEW |