#include "base/functional/bind.h"
#include "base/metrics/statistics_recorder.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/sync/test/integration/bookmarks_helper.h"
#include "chrome/browser/sync/test/integration/encryption_helper.h"
#include "chrome/browser/sync/test/integration/fake_server_match_status_checker.h"
#include "chrome/browser/sync/test/integration/sessions_helper.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 "chrome/browser/sync/test/integration/user_events_helper.h"
#include "chrome/browser/sync/user_event_service_factory.h"
#include "components/sync/base/features.h"
#include "components/sync/protocol/user_event_specifics.pb.h"
#include "components/sync_user_events/user_event_service.h"
#include "content/public/test/browser_test.h"
CommitResponse;
SyncEntity;
UserEventSpecifics;
CreateTestEvent;
namespace {
CommitResponse::ResponseType BounceType(
CommitResponse::ResponseType type,
const syncer::LoopbackServerEntity& entity) { … }
class SingleClientUserEventsSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, Sanity) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, RetrySequential) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, RetryParallel) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, NoHistory) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, NoSessions) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, Encryption) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest,
ShouldNotUploadInSyncPausedState) { … }
IN_PROC_BROWSER_TEST_F(SingleClientUserEventsSyncTest, NoQuotaApplied) { … }
}