chromium/chrome/browser/privacy/privacy_metrics_service_unittest.cc

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

#include "chrome/browser/privacy/privacy_metrics_service.h"

#include "base/notreached.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

const char kClearOnExitSyncEventHistogram[] =;

}

class PrivacyMetricsServiceTest : public testing::Test {};

TEST_F(PrivacyMetricsServiceTest, BasicShutdownMetrics) {}

TEST_F(PrivacyMetricsServiceTest, FixSyncPausedThroughReLogin) {}

#if !BUILDFLAG(IS_CHROMEOS_ASH)
// Confirm that when the user fixes the sync paused state by logging out of
// the affected account, the appropriate events are recorded.
// Logging out of the Sync account is not possible on Ash.
TEST_F(PrivacyMetricsServiceTest, FixSyncPausedThroughLogout) {}
#endif  // !BUILDFLAG(IS_CHROMEOS_ASH)

TEST_F(PrivacyMetricsServiceTest, NoSyncIssues) {}

TEST_F(PrivacyMetricsServiceTest, AccountChangeNoSyncIssues) {}

TEST_F(PrivacyMetricsServiceTest, StartupNoSync) {}