Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chromeos/dbus/fake_cryptohome_client.cc

Issue 506943002: Wire up GetKeyDataEx() in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_1_367847_move_to_mount_ex
Patch Set: Added missing OVERRIDE. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.h ('k') | chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698