0

fix typo.

BUG=b:172748724
TEST=build ok.

Change-Id: I5a882b830c0920d4f721515aacb34464499fba50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569327
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Leo Lai <cylai@google.com>
Cr-Commit-Position: refs/heads/master@{#834178}
This commit is contained in:
Leo Lai
2020-12-07 13:28:02 +00:00
committed by Chromium LUCI CQ
parent f0ebcd6c25
commit b60d1e915b
5 changed files with 7 additions and 7 deletions

@ -90,7 +90,7 @@ FakeTpmManagerClient::mutable_nonsensitive_status_reply() {
return &nonsensitive_status_reply_;
}
void FakeTpmManagerClient::set_non_nonsensitive_status_dbus_erorr_count(
void FakeTpmManagerClient::set_non_nonsensitive_status_dbus_error_count(
int count) {
nonsensitive_status_dbus_error_count_ = count;
}

@ -48,7 +48,7 @@ class COMPONENT_EXPORT(CHROMEOS_DBUS_TPM_MANAGER) FakeTpmManagerClient
// TpmManagerClient::TestInterface:
::tpm_manager::GetTpmNonsensitiveStatusReply*
mutable_nonsensitive_status_reply() override;
void set_non_nonsensitive_status_dbus_erorr_count(int count) override;
void set_non_nonsensitive_status_dbus_error_count(int count) override;
::tpm_manager::GetVersionInfoReply* mutable_version_info_reply() override;
int clear_stored_owner_password_count() const override;
void EmitOwnershipTakenSignal() override;

@ -52,7 +52,7 @@ class COMPONENT_EXPORT(CHROMEOS_DBUS_TPM_MANAGER) TpmManagerClient {
mutable_nonsensitive_status_reply() = 0;
// Sets how many times the `GetTpmNonsensitiveStatus()` returns D-Bus error
// before it works normally.
virtual void set_non_nonsensitive_status_dbus_erorr_count(int count) = 0;
virtual void set_non_nonsensitive_status_dbus_error_count(int count) = 0;
// Gets a mutable reply that is returned when `GetVersionInfo()` is called.
virtual ::tpm_manager::GetVersionInfoReply*
mutable_version_info_reply() = 0;

@ -71,7 +71,7 @@ constexpr char kAccuracyString[] = "accuracy";
// Error object and its contents.
constexpr char kErrorString[] = "error";
// "errors" array in "erorr" object is ignored.
// "errors" array in "error" object is ignored.
constexpr char kCodeString[] = "code";
constexpr char kMessageString[] = "message";

@ -321,7 +321,7 @@ TEST_F(SystemTPMTokenInfoGetterTest, TPMNotEnabledSystemSlotFallbackEnabled) {
TEST_F(SystemTPMTokenInfoGetterTest, TpmEnabledCallFails) {
chromeos::TpmManagerClient::Get()
->GetTestInterface()
->set_non_nonsensitive_status_dbus_erorr_count(1);
->set_non_nonsensitive_status_dbus_error_count(1);
bool completed = false;
base::Optional<TpmTokenInfo> result;
@ -398,7 +398,7 @@ TEST_F(SystemTPMTokenInfoGetterTest, GetTpmTokenInfoInitiallyFails) {
TEST_F(SystemTPMTokenInfoGetterTest, RetryDelaysIncreaseExponentially) {
chromeos::TpmManagerClient::Get()
->GetTestInterface()
->set_non_nonsensitive_status_dbus_erorr_count(2);
->set_non_nonsensitive_status_dbus_error_count(2);
cryptohome_client_->set_get_tpm_token_info_failure_count(1);
cryptohome_client_->set_get_tpm_token_info_not_set_count(3);
@ -427,7 +427,7 @@ TEST_F(SystemTPMTokenInfoGetterTest, RetryDelaysIncreaseExponentially) {
TEST_F(SystemTPMTokenInfoGetterTest, RetryDelayBounded) {
chromeos::TpmManagerClient::Get()
->GetTestInterface()
->set_non_nonsensitive_status_dbus_erorr_count(4);
->set_non_nonsensitive_status_dbus_error_count(4);
cryptohome_client_->set_get_tpm_token_info_failure_count(5);
cryptohome_client_->set_get_tpm_token_info_not_set_count(6);