#include "components/supervised_user/core/browser/supervised_user_metrics_service.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include "components/supervised_user/core/browser/supervised_user_service.h"
#include "components/supervised_user/core/browser/supervised_user_settings_service.h"
#include "components/supervised_user/core/browser/supervised_user_url_filter.h"
#include "components/supervised_user/core/browser/supervised_user_utils.h"
#include "components/supervised_user/core/common/pref_names.h"
#include "components/supervised_user/test_support/supervised_user_url_filter_test_utils.h"
#include "components/sync/test/mock_sync_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace supervised_user {
class MockSupervisedUserMetricsServiceExtensionDelegateImpl
: public SupervisedUserMetricsService::
SupervisedUserMetricsServiceExtensionDelegate { … };
class SupervisedUserMetricsServiceTest : public testing::Test { … };
TEST_F(SupervisedUserMetricsServiceTest, NewDayAfterMultipleDays) { … }
TEST_F(SupervisedUserMetricsServiceTest, NewDayAfterServiceCreation) { … }
TEST_F(SupervisedUserMetricsServiceTest, NewDayAfterSupervisedUserDetected) { … }
TEST_F(SupervisedUserMetricsServiceTest,
MetricsNotRecordedForSignedOutSupervisedUser) { … }
TEST_F(SupervisedUserMetricsServiceTest, RecordDefaultMetrics) { … }
}