#include "components/consent_auditor/consent_auditor_impl.h"
#include <array>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/hash/sha1.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "components/sync/protocol/user_consent_specifics.pb.h"
#include "components/sync/test/fake_data_type_controller_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ArcPlayTermsOfServiceConsent;
AssistantActivityControlConsent;
SyncConsent;
UserConsentSpecifics;
UserConsentTypes;
ElementsAreArray;
namespace consent_auditor {
namespace {
constexpr char kCurrentAppLocale[] = …;
constexpr std::array<int, 3> kDescriptionMessageIds = …;
constexpr int kConfirmationMessageId = …;
class FakeConsentSyncBridge : public ConsentSyncBridge { … };
}
class ConsentAuditorImplTest : public testing::Test { … };
TEST_F(ConsentAuditorImplTest, RecordGaiaConsentAsUserConsent) { … }
TEST_F(ConsentAuditorImplTest, RecordArcPlayConsentRevocation) { … }
TEST_F(ConsentAuditorImplTest, RecordArcPlayConsent) { … }
TEST_F(ConsentAuditorImplTest, ShouldReturnSyncDelegateWhenBridgePresent) { … }
TEST_F(ConsentAuditorImplTest, RecordAssistantActivityControlConsent) { … }
}