#include "content/browser/media/audible_metrics.h"
#include "base/metrics/histogram_samples.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/metrics/user_action_tester.h"
#include "base/test/simple_test_tick_clock.h"
#include "content/browser/media/media_web_contents_observer.h"
#include "content/public/test/test_renderer_host.h"
#include "content/test/test_web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
static const char* CONCURRENT_TAB_WHEN_STARTING_HISTOGRAM = …;
static const char* MAX_CONCURRENT_TAB_IN_SESSION_HISTOGRAM = …;
static const char* CONCURRENT_TABS_TIME_HISTOGRAM = …;
class AudibleMetricsTest : public RenderViewHostTestHarness { … };
}
TEST_F(AudibleMetricsTest, CreateAndKillDoesNothing) { … }
TEST_F(AudibleMetricsTest, AudibleStart) { … }
TEST_F(AudibleMetricsTest, AudibleStartAndStop) { … }
TEST_F(AudibleMetricsTest, AddSameTabIsNoOp) { … }
TEST_F(AudibleMetricsTest, RemoveUnknownTabIsNoOp) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsInSessionIsIncremental) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsInSessionKeepTrackOfRemovedTabs) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsInSessionIsNotCountedTwice) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsWhenStartingAddedPerTab) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsTimeRequiresTwoAudibleTabs) { … }
TEST_F(AudibleMetricsTest, ConcurrentTabsTimeRunsAsLongAsTwoAudibleTabs) { … }
TEST_F(AudibleMetricsTest, MediaWebContentsObserver_Audible_Muted) { … }
TEST_F(AudibleMetricsTest, MediaWebContentsObserver_Audible_NotMuted) { … }
TEST_F(AudibleMetricsTest, MediaWebContentsObserver_NotAudible_Muted) { … }
TEST_F(AudibleMetricsTest, MediaWebContentsObserver_NotAudible_NotMuted) { … }
}