#include <memory>
#include <string>
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/signin/public/identity_manager/access_token_info.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/trusted_vault/recovery_key_store_connection_impl.h"
#include "components/trusted_vault/test/fake_trusted_vault_access_token_fetcher.h"
#include "net/http/http_status_code.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace trusted_vault {
namespace {
Eq;
IsNull;
NotNull;
constexpr char kPasskeysApplicationKeyName[] = …;
class RecoveryKeyStoreConnectionImplTest : public testing::Test { … };
TEST_F(RecoveryKeyStoreConnectionImplTest,
ShouldUpdateRecoveryKeyStoreAndHandleSuccess) { … }
TEST_F(RecoveryKeyStoreConnectionImplTest,
ShouldHandleAccessTokenFetchFailureDuringUpdateRecoveryKeyStore) { … }
TEST_F(RecoveryKeyStoreConnectionImplTest,
ShouldHandleFailedUpdateRecoveryKeyStoreRequest) { … }
TEST_F(RecoveryKeyStoreConnectionImplTest,
ShouldHandleNetworkErrorDuringUpdateRecoveryKeyStore) { … }
}
}