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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 base::MessageLoop::current()->PostTask( | 66 base::MessageLoop::current()->PostTask( |
67 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, true)); | 67 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, true)); |
68 } | 68 } |
69 | 69 |
70 bool FakeCryptohomeClient::Unmount(bool* success) { | 70 bool FakeCryptohomeClient::Unmount(bool* success) { |
71 *success = unmount_result_; | 71 *success = unmount_result_; |
72 return true; | 72 return true; |
73 } | 73 } |
74 | 74 |
75 void FakeCryptohomeClient::AsyncCheckKey( | 75 void FakeCryptohomeClient::AsyncCheckKey( |
76 const std::string& username, | 76 const cryptohome::Identification& cryptohome_id, |
77 const std::string& key, | 77 const std::string& key, |
78 const AsyncMethodCallback& callback) { | 78 const AsyncMethodCallback& callback) { |
79 ReturnAsyncMethodResult(callback, false); | 79 ReturnAsyncMethodResult(callback, false); |
80 } | 80 } |
81 | 81 |
82 void FakeCryptohomeClient::AsyncMigrateKey( | 82 void FakeCryptohomeClient::AsyncMigrateKey( |
83 const std::string& username, | 83 const cryptohome::Identification& cryptohome_id, |
84 const std::string& from_key, | 84 const std::string& from_key, |
85 const std::string& to_key, | 85 const std::string& to_key, |
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 std::string& username, | 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 std::string& username, | 112 const cryptohome::Identification& cryptohome_id, |
105 const StringDBusMethodCallback& callback) { | 113 const StringDBusMethodCallback& callback) { |
106 // Even for stub implementation we have to return different values so that | 114 // Even for stub implementation we have to return different values so that |
107 // multi-profiles would work. | 115 // multi-profiles would work. |
108 std::string sanitized_username = GetStubSanitizedUsername(username); | 116 std::string sanitized_username = GetStubSanitizedUsername(cryptohome_id); |
109 base::MessageLoop::current()->PostTask( | 117 base::MessageLoop::current()->PostTask( |
110 FROM_HERE, | 118 FROM_HERE, |
111 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, sanitized_username)); | 119 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, sanitized_username)); |
112 } | 120 } |
113 | 121 |
114 std::string FakeCryptohomeClient::BlockingGetSanitizedUsername( | 122 std::string FakeCryptohomeClient::BlockingGetSanitizedUsername( |
115 const std::string& username) { | 123 const cryptohome::Identification& cryptohome_id) { |
116 return GetStubSanitizedUsername(username); | 124 return GetStubSanitizedUsername(cryptohome_id); |
117 } | 125 } |
118 | 126 |
119 void FakeCryptohomeClient::AsyncMount(const std::string& username, | 127 void FakeCryptohomeClient::AsyncMount( |
120 const std::string& key, | 128 const cryptohome::Identification& cryptohome_id, |
121 int flags, | 129 const std::string& key, |
122 const AsyncMethodCallback& callback) { | 130 int flags, |
| 131 const AsyncMethodCallback& callback) { |
123 ReturnAsyncMethodResult(callback, false); | 132 ReturnAsyncMethodResult(callback, false); |
124 } | 133 } |
125 | 134 |
126 void FakeCryptohomeClient::AsyncAddKey( | 135 void FakeCryptohomeClient::AsyncAddKey( |
127 const std::string& username, | 136 const cryptohome::Identification& cryptohome_id, |
128 const std::string& key, | 137 const std::string& key, |
129 const std::string& new_key, | 138 const std::string& new_key, |
130 const AsyncMethodCallback& callback) { | 139 const AsyncMethodCallback& callback) { |
131 ReturnAsyncMethodResult(callback, false); | 140 ReturnAsyncMethodResult(callback, false); |
132 } | 141 } |
133 | 142 |
134 void FakeCryptohomeClient::AsyncMountGuest( | 143 void FakeCryptohomeClient::AsyncMountGuest( |
135 const AsyncMethodCallback& callback) { | 144 const AsyncMethodCallback& callback) { |
136 ReturnAsyncMethodResult(callback, false); | 145 ReturnAsyncMethodResult(callback, false); |
137 } | 146 } |
138 | 147 |
139 void FakeCryptohomeClient::AsyncMountPublic( | 148 void FakeCryptohomeClient::AsyncMountPublic( |
140 const std::string& public_mount_id, | 149 const cryptohome::Identification& public_mount_id, |
141 int flags, | 150 int flags, |
142 const AsyncMethodCallback& callback) { | 151 const AsyncMethodCallback& callback) { |
143 ReturnAsyncMethodResult(callback, false); | 152 ReturnAsyncMethodResult(callback, false); |
144 } | 153 } |
145 | 154 |
146 void FakeCryptohomeClient::TpmIsReady( | 155 void FakeCryptohomeClient::TpmIsReady( |
147 const BoolDBusMethodCallback& callback) { | 156 const BoolDBusMethodCallback& callback) { |
148 base::MessageLoop::current()->PostTask( | 157 base::MessageLoop::current()->PostTask( |
149 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, true)); | 158 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, true)); |
150 } | 159 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 base::MessageLoop::current()->PostTask( | 230 base::MessageLoop::current()->PostTask( |
222 FROM_HERE, | 231 FROM_HERE, |
223 base::Bind(callback, | 232 base::Bind(callback, |
224 DBUS_METHOD_CALL_SUCCESS, | 233 DBUS_METHOD_CALL_SUCCESS, |
225 std::string(kStubTPMTokenName), | 234 std::string(kStubTPMTokenName), |
226 std::string(kStubUserPin), | 235 std::string(kStubUserPin), |
227 kStubSlot)); | 236 kStubSlot)); |
228 } | 237 } |
229 | 238 |
230 void FakeCryptohomeClient::Pkcs11GetTpmTokenInfoForUser( | 239 void FakeCryptohomeClient::Pkcs11GetTpmTokenInfoForUser( |
231 const std::string& username, | 240 const cryptohome::Identification& cryptohome_id, |
232 const Pkcs11GetTpmTokenInfoCallback& callback) { | 241 const Pkcs11GetTpmTokenInfoCallback& callback) { |
233 Pkcs11GetTpmTokenInfo(callback); | 242 Pkcs11GetTpmTokenInfo(callback); |
234 } | 243 } |
235 | 244 |
236 bool FakeCryptohomeClient::InstallAttributesGet(const std::string& name, | 245 bool FakeCryptohomeClient::InstallAttributesGet(const std::string& name, |
237 std::vector<uint8_t>* value, | 246 std::vector<uint8_t>* value, |
238 bool* successful) { | 247 bool* successful) { |
239 if (install_attrs_.find(name) != install_attrs_.end()) { | 248 if (install_attrs_.find(name) != install_attrs_.end()) { |
240 *value = install_attrs_[name]; | 249 *value = install_attrs_[name]; |
241 *successful = true; | 250 *successful = true; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 void FakeCryptohomeClient::AsyncTpmAttestationEnroll( | 362 void FakeCryptohomeClient::AsyncTpmAttestationEnroll( |
354 chromeos::attestation::PrivacyCAType pca_type, | 363 chromeos::attestation::PrivacyCAType pca_type, |
355 const std::string& pca_response, | 364 const std::string& pca_response, |
356 const AsyncMethodCallback& callback) { | 365 const AsyncMethodCallback& callback) { |
357 ReturnAsyncMethodResult(callback, false); | 366 ReturnAsyncMethodResult(callback, false); |
358 } | 367 } |
359 | 368 |
360 void FakeCryptohomeClient::AsyncTpmAttestationCreateCertRequest( | 369 void FakeCryptohomeClient::AsyncTpmAttestationCreateCertRequest( |
361 chromeos::attestation::PrivacyCAType pca_type, | 370 chromeos::attestation::PrivacyCAType pca_type, |
362 attestation::AttestationCertificateProfile certificate_profile, | 371 attestation::AttestationCertificateProfile certificate_profile, |
363 const std::string& user_id, | 372 const cryptohome::Identification& cryptohome_id, |
364 const std::string& request_origin, | 373 const std::string& request_origin, |
365 const AsyncMethodCallback& callback) { | 374 const AsyncMethodCallback& callback) { |
366 ReturnAsyncMethodResult(callback, true); | 375 ReturnAsyncMethodResult(callback, true); |
367 } | 376 } |
368 | 377 |
369 void FakeCryptohomeClient::AsyncTpmAttestationFinishCertRequest( | 378 void FakeCryptohomeClient::AsyncTpmAttestationFinishCertRequest( |
370 const std::string& pca_response, | 379 const std::string& pca_response, |
371 attestation::AttestationKeyType key_type, | 380 attestation::AttestationKeyType key_type, |
372 const std::string& user_id, | 381 const cryptohome::Identification& cryptohome_id, |
373 const std::string& key_name, | 382 const std::string& key_name, |
374 const AsyncMethodCallback& callback) { | 383 const AsyncMethodCallback& callback) { |
375 ReturnAsyncMethodResult(callback, true); | 384 ReturnAsyncMethodResult(callback, true); |
376 } | 385 } |
377 | 386 |
378 void FakeCryptohomeClient::TpmAttestationDoesKeyExist( | 387 void FakeCryptohomeClient::TpmAttestationDoesKeyExist( |
379 attestation::AttestationKeyType key_type, | 388 attestation::AttestationKeyType key_type, |
380 const std::string& user_id, | 389 const cryptohome::Identification& cryptohome_id, |
381 const std::string& key_name, | 390 const std::string& key_name, |
382 const BoolDBusMethodCallback& callback) { | 391 const BoolDBusMethodCallback& callback) { |
383 base::MessageLoop::current()->PostTask( | 392 base::MessageLoop::current()->PostTask( |
384 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); | 393 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); |
385 } | 394 } |
386 | 395 |
387 void FakeCryptohomeClient::TpmAttestationGetCertificate( | 396 void FakeCryptohomeClient::TpmAttestationGetCertificate( |
388 attestation::AttestationKeyType key_type, | 397 attestation::AttestationKeyType key_type, |
389 const std::string& user_id, | 398 const cryptohome::Identification& cryptohome_id, |
390 const std::string& key_name, | 399 const std::string& key_name, |
391 const DataMethodCallback& callback) { | 400 const DataMethodCallback& callback) { |
392 base::MessageLoop::current()->PostTask( | 401 base::MessageLoop::current()->PostTask( |
393 FROM_HERE, | 402 FROM_HERE, |
394 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); | 403 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); |
395 } | 404 } |
396 | 405 |
397 void FakeCryptohomeClient::TpmAttestationGetPublicKey( | 406 void FakeCryptohomeClient::TpmAttestationGetPublicKey( |
398 attestation::AttestationKeyType key_type, | 407 attestation::AttestationKeyType key_type, |
399 const std::string& user_id, | 408 const cryptohome::Identification& cryptohome_id, |
400 const std::string& key_name, | 409 const std::string& key_name, |
401 const DataMethodCallback& callback) { | 410 const DataMethodCallback& callback) { |
402 base::MessageLoop::current()->PostTask( | 411 base::MessageLoop::current()->PostTask( |
403 FROM_HERE, | 412 FROM_HERE, |
404 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); | 413 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); |
405 } | 414 } |
406 | 415 |
407 void FakeCryptohomeClient::TpmAttestationRegisterKey( | 416 void FakeCryptohomeClient::TpmAttestationRegisterKey( |
408 attestation::AttestationKeyType key_type, | 417 attestation::AttestationKeyType key_type, |
409 const std::string& user_id, | 418 const cryptohome::Identification& cryptohome_id, |
410 const std::string& key_name, | 419 const std::string& key_name, |
411 const AsyncMethodCallback& callback) { | 420 const AsyncMethodCallback& callback) { |
412 ReturnAsyncMethodResult(callback, true); | 421 ReturnAsyncMethodResult(callback, true); |
413 } | 422 } |
414 | 423 |
415 void FakeCryptohomeClient::TpmAttestationSignEnterpriseChallenge( | 424 void FakeCryptohomeClient::TpmAttestationSignEnterpriseChallenge( |
416 attestation::AttestationKeyType key_type, | 425 attestation::AttestationKeyType key_type, |
417 const std::string& user_id, | 426 const cryptohome::Identification& cryptohome_id, |
418 const std::string& key_name, | 427 const std::string& key_name, |
419 const std::string& domain, | 428 const std::string& domain, |
420 const std::string& device_id, | 429 const std::string& device_id, |
421 attestation::AttestationChallengeOptions options, | 430 attestation::AttestationChallengeOptions options, |
422 const std::string& challenge, | 431 const std::string& challenge, |
423 const AsyncMethodCallback& callback) { | 432 const AsyncMethodCallback& callback) { |
424 ReturnAsyncMethodResult(callback, true); | 433 ReturnAsyncMethodResult(callback, true); |
425 } | 434 } |
426 | 435 |
427 void FakeCryptohomeClient::TpmAttestationSignSimpleChallenge( | 436 void FakeCryptohomeClient::TpmAttestationSignSimpleChallenge( |
428 attestation::AttestationKeyType key_type, | 437 attestation::AttestationKeyType key_type, |
429 const std::string& user_id, | 438 const cryptohome::Identification& cryptohome_id, |
430 const std::string& key_name, | 439 const std::string& key_name, |
431 const std::string& challenge, | 440 const std::string& challenge, |
432 const AsyncMethodCallback& callback) { | 441 const AsyncMethodCallback& callback) { |
433 ReturnAsyncMethodResult(callback, true); | 442 ReturnAsyncMethodResult(callback, true); |
434 } | 443 } |
435 | 444 |
436 void FakeCryptohomeClient::TpmAttestationGetKeyPayload( | 445 void FakeCryptohomeClient::TpmAttestationGetKeyPayload( |
437 attestation::AttestationKeyType key_type, | 446 attestation::AttestationKeyType key_type, |
438 const std::string& user_id, | 447 const cryptohome::Identification& cryptohome_id, |
439 const std::string& key_name, | 448 const std::string& key_name, |
440 const DataMethodCallback& callback) { | 449 const DataMethodCallback& callback) { |
441 base::MessageLoop::current()->PostTask( | 450 base::MessageLoop::current()->PostTask( |
442 FROM_HERE, | 451 FROM_HERE, |
443 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); | 452 base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false, std::string())); |
444 } | 453 } |
445 | 454 |
446 void FakeCryptohomeClient::TpmAttestationSetKeyPayload( | 455 void FakeCryptohomeClient::TpmAttestationSetKeyPayload( |
447 attestation::AttestationKeyType key_type, | 456 attestation::AttestationKeyType key_type, |
448 const std::string& user_id, | 457 const cryptohome::Identification& cryptohome_id, |
449 const std::string& key_name, | 458 const std::string& key_name, |
450 const std::string& payload, | 459 const std::string& payload, |
451 const BoolDBusMethodCallback& callback) { | 460 const BoolDBusMethodCallback& callback) { |
452 base::MessageLoop::current()->PostTask( | 461 base::MessageLoop::current()->PostTask( |
453 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); | 462 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); |
454 } | 463 } |
455 | 464 |
456 void FakeCryptohomeClient::TpmAttestationDeleteKeys( | 465 void FakeCryptohomeClient::TpmAttestationDeleteKeys( |
457 attestation::AttestationKeyType key_type, | 466 attestation::AttestationKeyType key_type, |
458 const std::string& user_id, | 467 const cryptohome::Identification& cryptohome_id, |
459 const std::string& key_prefix, | 468 const std::string& key_prefix, |
460 const BoolDBusMethodCallback& callback) { | 469 const BoolDBusMethodCallback& callback) { |
461 base::MessageLoop::current()->PostTask( | 470 base::MessageLoop::current()->PostTask( |
462 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); | 471 FROM_HERE, base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, false)); |
463 } | 472 } |
464 | 473 |
465 void FakeCryptohomeClient::GetKeyDataEx( | 474 void FakeCryptohomeClient::GetKeyDataEx( |
466 const cryptohome::AccountIdentifier& id, | 475 const cryptohome::Identification& cryptohome_id, |
467 const cryptohome::AuthorizationRequest& auth, | 476 const cryptohome::AuthorizationRequest& auth, |
468 const cryptohome::GetKeyDataRequest& request, | 477 const cryptohome::GetKeyDataRequest& request, |
469 const ProtobufMethodCallback& callback) { | 478 const ProtobufMethodCallback& callback) { |
470 cryptohome::BaseReply reply; | 479 cryptohome::BaseReply reply; |
471 reply.MutableExtension(cryptohome::GetKeyDataReply::reply); | 480 reply.MutableExtension(cryptohome::GetKeyDataReply::reply); |
472 ReturnProtobufMethodCallback(reply, callback); | 481 ReturnProtobufMethodCallback(reply, callback); |
473 } | 482 } |
474 | 483 |
475 void FakeCryptohomeClient::CheckKeyEx( | 484 void FakeCryptohomeClient::CheckKeyEx( |
476 const cryptohome::AccountIdentifier& id, | 485 const cryptohome::Identification& cryptohome_id, |
477 const cryptohome::AuthorizationRequest& auth, | 486 const cryptohome::AuthorizationRequest& auth, |
478 const cryptohome::CheckKeyRequest& request, | 487 const cryptohome::CheckKeyRequest& request, |
479 const ProtobufMethodCallback& callback) { | 488 const ProtobufMethodCallback& callback) { |
480 cryptohome::BaseReply reply; | 489 cryptohome::BaseReply reply; |
481 ReturnProtobufMethodCallback(reply, callback); | 490 ReturnProtobufMethodCallback(reply, callback); |
482 } | 491 } |
483 | 492 |
484 void FakeCryptohomeClient::MountEx( | 493 void FakeCryptohomeClient::MountEx( |
485 const cryptohome::AccountIdentifier& id, | 494 const cryptohome::Identification& cryptohome_id, |
486 const cryptohome::AuthorizationRequest& auth, | 495 const cryptohome::AuthorizationRequest& auth, |
487 const cryptohome::MountRequest& request, | 496 const cryptohome::MountRequest& request, |
488 const ProtobufMethodCallback& callback) { | 497 const ProtobufMethodCallback& callback) { |
489 cryptohome::BaseReply reply; | 498 cryptohome::BaseReply reply; |
490 cryptohome::MountReply* mount = | 499 cryptohome::MountReply* mount = |
491 reply.MutableExtension(cryptohome::MountReply::reply); | 500 reply.MutableExtension(cryptohome::MountReply::reply); |
492 mount->set_sanitized_username(GetStubSanitizedUsername(id.email())); | 501 mount->set_sanitized_username(GetStubSanitizedUsername(cryptohome_id)); |
493 ReturnProtobufMethodCallback(reply, callback); | 502 ReturnProtobufMethodCallback(reply, callback); |
494 } | 503 } |
495 | 504 |
496 void FakeCryptohomeClient::AddKeyEx( | 505 void FakeCryptohomeClient::AddKeyEx( |
497 const cryptohome::AccountIdentifier& id, | 506 const cryptohome::Identification& cryptohome_id, |
498 const cryptohome::AuthorizationRequest& auth, | 507 const cryptohome::AuthorizationRequest& auth, |
499 const cryptohome::AddKeyRequest& request, | 508 const cryptohome::AddKeyRequest& request, |
500 const ProtobufMethodCallback& callback) { | 509 const ProtobufMethodCallback& callback) { |
501 cryptohome::BaseReply reply; | 510 cryptohome::BaseReply reply; |
502 ReturnProtobufMethodCallback(reply, callback); | 511 ReturnProtobufMethodCallback(reply, callback); |
503 } | 512 } |
504 | 513 |
505 void FakeCryptohomeClient::RemoveKeyEx( | 514 void FakeCryptohomeClient::RemoveKeyEx( |
506 const cryptohome::AccountIdentifier& id, | 515 const cryptohome::Identification& cryptohome_id, |
507 const cryptohome::AuthorizationRequest& auth, | 516 const cryptohome::AuthorizationRequest& auth, |
508 const cryptohome::RemoveKeyRequest& request, | 517 const cryptohome::RemoveKeyRequest& request, |
509 const ProtobufMethodCallback& callback) { | 518 const ProtobufMethodCallback& callback) { |
510 cryptohome::BaseReply reply; | 519 cryptohome::BaseReply reply; |
511 ReturnProtobufMethodCallback(reply, callback); | 520 ReturnProtobufMethodCallback(reply, callback); |
512 } | 521 } |
513 | 522 |
514 void FakeCryptohomeClient::UpdateKeyEx( | 523 void FakeCryptohomeClient::UpdateKeyEx( |
515 const cryptohome::AccountIdentifier& id, | 524 const cryptohome::Identification& cryptohome_id, |
516 const cryptohome::AuthorizationRequest& auth, | 525 const cryptohome::AuthorizationRequest& auth, |
517 const cryptohome::UpdateKeyRequest& request, | 526 const cryptohome::UpdateKeyRequest& request, |
518 const ProtobufMethodCallback& callback) { | 527 const ProtobufMethodCallback& callback) { |
519 cryptohome::BaseReply reply; | 528 cryptohome::BaseReply reply; |
520 ReturnProtobufMethodCallback(reply, callback); | 529 ReturnProtobufMethodCallback(reply, callback); |
521 } | 530 } |
522 | 531 |
523 void FakeCryptohomeClient::GetBootAttribute( | 532 void FakeCryptohomeClient::GetBootAttribute( |
524 const cryptohome::GetBootAttributeRequest& request, | 533 const cryptohome::GetBootAttributeRequest& request, |
525 const ProtobufMethodCallback& callback) { | 534 const ProtobufMethodCallback& callback) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 FROM_HERE, | 608 FROM_HERE, |
600 base::Bind(async_call_status_data_handler_, | 609 base::Bind(async_call_status_data_handler_, |
601 async_call_id_, | 610 async_call_id_, |
602 true, | 611 true, |
603 std::string())); | 612 std::string())); |
604 } | 613 } |
605 ++async_call_id_; | 614 ++async_call_id_; |
606 } | 615 } |
607 | 616 |
608 } // namespace chromeos | 617 } // namespace chromeos |
OLD | NEW |