chromium/components/sync_user_events/user_event_sync_bridge_unittest.cc

// Copyright 2017 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_user_events/user_event_sync_bridge.h"

#include <map>
#include <set>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/sync/model/data_batch.h"
#include "components/sync/protocol/entity_specifics.pb.h"
#include "components/sync/protocol/user_event_specifics.pb.h"
#include "components/sync/test/data_type_store_test_util.h"
#include "components/sync/test/mock_data_type_local_change_processor.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace syncer {
namespace {

UserEventSpecifics;
_;
ElementsAre;
InvokeWithoutArgs;
IsEmpty;
IsNull;
NotNull;
Pair;
Pointee;
Return;
SaveArg;
SizeIs;
UnorderedElementsAre;
WithArg;
WriteBatch;

MATCHER_P(MatchesUserEvent, expected, "") {}

UserEventSpecifics CreateSpecifics(int64_t event_time_usec,
                                   int64_t navigation_id,
                                   uint64_t session_id) {}

std::unique_ptr<UserEventSpecifics> SpecificsUniquePtr(int64_t event_time_usec,
                                                       int64_t navigation_id,
                                                       uint64_t session_id) {}

class TestGlobalIdMapper : public GlobalIdMapper {};

class UserEventSyncBridgeTest : public testing::Test {};

TEST_F(UserEventSyncBridgeTest, MetadataIsInitialized) {}

TEST_F(UserEventSyncBridgeTest, GetDataForCommit) {}

TEST_F(UserEventSyncBridgeTest, SingleRecord) {}

TEST_F(UserEventSyncBridgeTest, ApplyDisableSyncChanges) {}

TEST_F(UserEventSyncBridgeTest, MultipleRecords) {}

TEST_F(UserEventSyncBridgeTest, ApplyIncrementalSyncChanges) {}

TEST_F(UserEventSyncBridgeTest, HandleGlobalIdChange) {}

TEST_F(UserEventSyncBridgeTest, MulipleEventsChanging) {}

TEST_F(UserEventSyncBridgeTest, RecordBeforeMetadataLoads) {}

}  // namespace

}  // namespace syncer