chromium/components/sync_user_events/user_event_service_impl_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_service_impl.h"

#include <utility>
#include <vector>

#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/sync/base/data_type.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 "components/sync/test/test_sync_service.h"
#include "components/sync_user_events/user_event_sync_bridge.h"
#include "testing/gtest/include/gtest/gtest.h"

UserEventSpecifics;

namespace syncer {

namespace {

std::unique_ptr<UserEventSpecifics> Event() {}

std::unique_ptr<UserEventSpecifics> AsTest(
    std::unique_ptr<UserEventSpecifics> specifics) {}

std::unique_ptr<UserEventSpecifics> AsGaiaPasswordReuseEvent(
    std::unique_ptr<UserEventSpecifics> specifics) {}

std::unique_ptr<UserEventSpecifics> AsGaiaPasswordCaptured(
    std::unique_ptr<UserEventSpecifics> specifics) {}

std::unique_ptr<UserEventSpecifics> WithNav(
    std::unique_ptr<UserEventSpecifics> specifics,
    int64_t navigation_id = 1) {}

class TestGlobalIdMapper : public GlobalIdMapper {};

class UserEventServiceImplTest : public testing::Test {};

TEST_F(UserEventServiceImplTest, ShouldRecord) {}

TEST_F(UserEventServiceImplTest, ShouldNotRecordWhenSyncIsNotStarted) {}

TEST_F(UserEventServiceImplTest, ShouldNotRecordEmptyEvents) {}

TEST_F(UserEventServiceImplTest, ShouldRecordHasNavigationId) {}

TEST_F(UserEventServiceImplTest, SessionIdIsDifferent) {}

}  // namespace

}  // namespace syncer