#include "components/webauthn/core/browser/passkey_model_utils.h"
#include "components/sync/protocol/webauthn_credential_specifics.pb.h"
#include "components/webauthn/core/browser/passkey_model.h"
#include "crypto/ec_private_key.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace webauthn::passkey_model_utils {
namespace {
constexpr std::array<uint8_t, 32> kTestKey = …;
constexpr int32_t kTestKeyVersion = …;
constexpr std::string_view kRpId = …;
static const PasskeyModel::UserEntity kTestUser(std::vector<uint8_t>{ … },
"[email protected]",
"Example User");
TEST(PasskeyModelUtilsTest, DecryptWebauthnCredentialSpecificsData_Encrypted) { … }
TEST(PasskeyModelUtilsTest, DecryptWebauthnCredentialSpecificsData_PrivateKey) { … }
TEST(PasskeyModelUtilsTest, DecryptWebauthnCredentialSpecificsData_NotSet) { … }
TEST(PasskeyModelUtilsTest, EncryptWebauthnCredentialSpecificsData) { … }
TEST(PasskeyModelUtilsTest, GeneratePasskeyAndEncryptSecrets) { … }
}
}