#include <string>
#include <vector>
#include "base/command_line.h"
#include "base/metrics/user_metrics.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h"
#include "chrome/browser/profiles/profile_activity_metrics_recorder.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/scoped_testing_local_state.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr base::TimeDelta kInactivityTimeout = …;
constexpr base::TimeDelta kLongTimeOfInactivity = …;
}
class ProfileActivityMetricsRecorderTest : public testing::Test { … };
TEST_F(ProfileActivityMetricsRecorderTest, GuestProfile) { … }
TEST_F(ProfileActivityMetricsRecorderTest, IncognitoProfile) { … }
TEST_F(ProfileActivityMetricsRecorderTest, MultipleProfiles) { … }
TEST_F(ProfileActivityMetricsRecorderTest, SessionInactivityNotRecorded) { … }
TEST_F(ProfileActivityMetricsRecorderTest, ProfileState) { … }
TEST_F(ProfileActivityMetricsRecorderTest, AccountMetrics) { … }