#include "components/sync/engine/syncer_proto_util.h"
#include <memory>
#include <vector>
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "components/sync/base/features.h"
#include "components/sync/engine/cycle/sync_cycle_context.h"
#include "components/sync/protocol/sync.pb.h"
#include "components/sync/protocol/sync_enums.pb.h"
#include "components/sync/test/data_type_test_util.h"
#include "components/sync/test/fake_sync_scheduler.h"
#include "components/sync/test/mock_connection_manager.h"
#include "net/base/net_errors.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
ClientToServerMessage;
ClientToServerResponse;
CommitResponse_EntryResponse;
namespace syncer {
namespace {
class MockSyncScheduler : public FakeSyncScheduler { … };
ClientToServerResponse DefaultGetUpdatesResponse() { … }
ClientToServerMessage DefaultGetUpdatesRequest() { … }
}
TEST(SyncerProtoUtil, GetTypesToMigrate) { … }
TEST(SyncerProtoUtil, ConvertErrorPBToSyncProtocolError) { … }
class SyncerProtoUtilTest : public testing::Test { … };
TEST_F(SyncerProtoUtilTest, VerifyResponseBirthday) { … }
TEST_F(SyncerProtoUtilTest, VerifyDisabledByAdmin) { … }
TEST_F(SyncerProtoUtilTest, VerifyUpgradeClient) { … }
TEST_F(SyncerProtoUtilTest, VerifyEncryptionObsolete) { … }
class FakeConnectionManager : public ServerConnectionManager { … };
TEST_F(SyncerProtoUtilTest, PostAndProcessHeaders) { … }
TEST_F(SyncerProtoUtilTest, ShouldHandleGetUpdatesRetryDelay) { … }
TEST_F(SyncerProtoUtilTest, ShouldIgnoreGetUpdatesRetryDelay) { … }
}