#include "chrome/browser/enterprise/connectors/device_trust/attestation/browser/profile_attester.h"
#include "base/run_loop.h"
#include "chrome/browser/enterprise/identifiers/profile_id_service_factory.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/enterprise/browser/identifiers/profile_id_service.h"
#include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace enterprise_connectors {
namespace {
constexpr char kFakeProfileId[] = …;
constexpr char kFakeChallengeResponse[] = …;
constexpr char kFakeCustomerId[] = …;
constexpr char kFakeGaiaId[] = …;
std::unique_ptr<KeyedService> CreateProfileIDService(
content::BrowserContext* context) { … }
}
class ProfileAttesterTest
: public ::testing::TestWithParam<std::tuple<bool, bool>> { … };
TEST_P(ProfileAttesterTest, DecorateKeyInfo_Success) { … }
TEST_F(ProfileAttesterTest, DecorateKeyInfo_MissingUserCloudPolicyStore) { … }
TEST_P(ProfileAttesterTest, DecorateKeyInfo__MissingUserPolicyLevel) { … }
TEST_F(ProfileAttesterTest, SignResponse_NoSignature) { … }
INSTANTIATE_TEST_SUITE_P(…);
}