chromium/components/sync/engine/syncer_proto_util_unittest.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

}  // namespace

// Builds a ClientToServerResponse with some data type ids, including
// invalid ones.  GetTypesToMigrate() should return only the valid
// data types.
TEST(SyncerProtoUtil, GetTypesToMigrate) {}

// Builds a ClientToServerResponse_Error with some error data type
// ids, including invalid ones.  ConvertErrorPBToSyncProtocolError() should
// return a SyncProtocolError with only the valid data types.
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) {}

}  // namespace syncer