#include "content/browser/media/session/media_session_uma_helper.h"
#include "base/metrics/histogram_samples.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/simple_test_tick_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
MediaSessionSuspendedSource;
namespace {
class MediaSessionUmaHelperTest : public testing::Test { … };
}
TEST_F(MediaSessionUmaHelperTest, CreateAndKillDoesNothing) { … }
TEST_F(MediaSessionUmaHelperTest, SuspendRegisterImmediately) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleSuspend) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleSuspendSame) { … }
TEST_F(MediaSessionUmaHelperTest, ActivationNotTerminatedDoesNotCommit) { … }
TEST_F(MediaSessionUmaHelperTest, SuspendActivationNotTerminatedDoesNotCommit) { … }
TEST_F(MediaSessionUmaHelperTest, FullActivation) { … }
TEST_F(MediaSessionUmaHelperTest, ActivationCycleWithSuspend) { … }
TEST_F(MediaSessionUmaHelperTest, ActivationCycleWithMultipleSuspend) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleActivations) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleActivationCalls) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleSuspendCalls_WhileSuspended) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleSuspendCalls_WhileInactive) { … }
TEST_F(MediaSessionUmaHelperTest, MultipleInactiveCalls) { … }
}