#include "components/sync/engine/cycle/nudge_tracker.h"
#include <stdint.h>
#include <memory>
#include <string>
#include "base/test/scoped_feature_list.h"
#include "components/sync/base/features.h"
#include "components/sync/protocol/data_type_progress_marker.pb.h"
#include "components/sync/protocol/sync_enums.pb.h"
#include "components/sync/test/mock_invalidation.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
testing::AssertionResult DataTypeSetEquals(DataTypeSet a, DataTypeSet b) { … }
}
class NudgeTrackerTest : public ::testing::Test { … };
TEST_F(NudgeTrackerTest, EmptyNudgeTracker) { … }
TEST_F(NudgeTrackerTest, OriginPriorities) { … }
TEST_F(NudgeTrackerTest, EnableDisableInvalidations) { … }
TEST_F(NudgeTrackerTest, WriteLocallyModifiedTypesToProto) { … }
TEST_F(NudgeTrackerTest, WriteRefreshRequestedTypesToProto) { … }
TEST_F(NudgeTrackerTest, IsSyncRequired) { … }
TEST_F(NudgeTrackerTest, IsGetUpdatesRequired) { … }
TEST_F(NudgeTrackerTest, IsSyncRequired_Throttling_Backoff) { … }
TEST_F(NudgeTrackerTest, IsGetUpdatesRequired_Throttling_Backoff) { … }
TEST_F(NudgeTrackerTest, NoTypesBlocked) { … }
TEST_F(NudgeTrackerTest, ThrottleAndUnthrottle) { … }
TEST_F(NudgeTrackerTest, BackoffAndUnbackoff) { … }
TEST_F(NudgeTrackerTest, OverlappingThrottleIntervals) { … }
TEST_F(NudgeTrackerTest, OverlappingBackoffIntervals) { … }
TEST_F(NudgeTrackerTest, Retry) { … }
TEST_F(NudgeTrackerTest, IsRetryRequired_MidCycleUpdate1) { … }
TEST_F(NudgeTrackerTest, IsRetryRequired_MidCycleUpdate2) { … }
TEST_F(NudgeTrackerTest, IsRetryRequired_FailedCycle) { … }
TEST_F(NudgeTrackerTest, IsRetryRequired_FailedCycleIncludesUpdate) { … }
TEST_F(NudgeTrackerTest, NudgeDelayTest) { … }
TEST_F(NudgeTrackerTest, CustomDelayTest) { … }
TEST_F(NudgeTrackerTest, DoNotUpdateDelayIfTooSmall) { … }
TEST_F(NudgeTrackerTest, NudgeDelaysForSingleClientUser_FeatureDisabled) { … }
TEST_F(NudgeTrackerTest, NudgeDelaysForSingleClientUser_FeatureEnabled) { … }
}