#include <stdint.h>
#include "base/memory/raw_ptr.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/consent_auditor/consent_auditor_factory.h"
#include "chrome/browser/sync/test/integration/single_client_status_change_checker.h"
#include "chrome/browser/sync/test/integration/status_change_checker.h"
#include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
#include "chrome/browser/sync/test/integration/sync_service_impl_harness.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/consent_auditor/consent_auditor.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "components/sync/protocol/user_consent_specifics.pb.h"
#include "content/public/test/browser_test.h"
FakeServer;
SyncEntity;
UserConsentSpecifics;
UserConsentTypes;
SyncConsent;
namespace {
CoreAccountId GetAccountId() { … }
class UserConsentEqualityChecker : public SingleClientStatusChangeChecker { … };
class SingleClientUserConsentsSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(SingleClientUserConsentsSyncTest, ShouldSubmit) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
IN_PROC_BROWSER_TEST_F(
SingleClientUserConsentsSyncTest,
ShouldPreserveConsentsOnSignoutAndResubmitWhenReenabled) { … }
#endif
IN_PROC_BROWSER_TEST_F(SingleClientUserConsentsSyncTest,
ShouldPreserveConsentsLoggedBeforeSyncSetup) { … }
#if !BUILDFLAG(IS_CHROMEOS_ASH)
IN_PROC_BROWSER_TEST_F(SingleClientUserConsentsSyncTest,
ShouldSubmitIfSignedInAlthoughFullSyncNotEnabled) { … }
#endif
}