#include "components/saved_tab_groups/tab_group_sync_metrics_logger.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "components/saved_tab_groups/saved_tab_group_test_utils.h"
#include "components/sync_device_info/device_info.h"
#include "components/sync_device_info/device_info_tracker.h"
#include "components/sync_device_info/fake_device_info_tracker.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Eq;
Invoke;
Return;
namespace tab_groups {
namespace {
const char kDeviceGuid1[] = …;
const char kDeviceGuid2[] = …;
const char kDeviceGuid3[] = …;
}
class TabGroupSyncMetricsLoggerTest : public testing::Test { … };
TEST_F(TabGroupSyncMetricsLoggerTest, HistogramsAreEmittedForLogEvents) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, SomeEventsForLocalDeviceOrigin) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, TabGroupOpenedFromRevisitUi) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, TabGroupOpenedFromSync) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, TabGroupClosedByUser) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, SyncGroupDeletionIsIgnoredByMetrics) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, DeviceTypeConversion) { … }
TEST_F(TabGroupSyncMetricsLoggerTest, RecordMetricsOnStartup) { … }
}