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

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

Issue 2727713003: Update FWMP in TPM (Closed)
Patch Set: Test fixed Created 3 years, 9 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
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 <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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 ReturnProtobufMethodCallback(reply, callback); 567 ReturnProtobufMethodCallback(reply, callback);
568 } 568 }
569 569
570 void FakeCryptohomeClient::FlushAndSignBootAttributes( 570 void FakeCryptohomeClient::FlushAndSignBootAttributes(
571 const cryptohome::FlushAndSignBootAttributesRequest& request, 571 const cryptohome::FlushAndSignBootAttributesRequest& request,
572 const ProtobufMethodCallback& callback) { 572 const ProtobufMethodCallback& callback) {
573 cryptohome::BaseReply reply; 573 cryptohome::BaseReply reply;
574 ReturnProtobufMethodCallback(reply, callback); 574 ReturnProtobufMethodCallback(reply, callback);
575 } 575 }
576 576
577 void FakeCryptohomeClient::AsyncTpmUpdateFirmwareManagementParameters(
578 const std::string& method_name,
579 const google::protobuf::MessageLite& request,
580 const ProtobufMethodCallback& callback) {
581 cryptohome::BaseReply reply;
582 ReturnProtobufMethodCallback(reply, callback);
583 }
584
577 void FakeCryptohomeClient::SetServiceIsAvailable(bool is_available) { 585 void FakeCryptohomeClient::SetServiceIsAvailable(bool is_available) {
578 service_is_available_ = is_available; 586 service_is_available_ = is_available;
579 if (is_available) { 587 if (is_available) {
580 std::vector<WaitForServiceToBeAvailableCallback> callbacks; 588 std::vector<WaitForServiceToBeAvailableCallback> callbacks;
581 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_); 589 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_);
582 for (size_t i = 0; i < callbacks.size(); ++i) 590 for (size_t i = 0; i < callbacks.size(); ++i)
583 callbacks[i].Run(is_available); 591 callbacks[i].Run(is_available);
584 } 592 }
585 } 593 }
586 594
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 callback.Run(async_call_id_); 640 callback.Run(async_call_id_);
633 if (!async_call_status_data_handler_.is_null()) { 641 if (!async_call_status_data_handler_.is_null()) {
634 base::ThreadTaskRunnerHandle::Get()->PostTask( 642 base::ThreadTaskRunnerHandle::Get()->PostTask(
635 FROM_HERE, base::Bind(async_call_status_data_handler_, async_call_id_, 643 FROM_HERE, base::Bind(async_call_status_data_handler_, async_call_id_,
636 true, data)); 644 true, data));
637 } 645 }
638 ++async_call_id_; 646 ++async_call_id_;
639 } 647 }
640 648
641 } // namespace chromeos 649 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698