#include "third_party/blink/renderer/modules/peerconnection/speed_limit_uma_listener.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/peerconnection/peer_connection_tracker.mojom-blink.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h"
namespace blink {
namespace {
ElementsAre;
IsEmpty;
class SpeedLimitUmaListenerTest : public ::testing::Test { … };
}
Bucket;
TEST_F(SpeedLimitUmaListenerTest, HasOneBucketWithoutMeasurements) { … }
TEST_F(SpeedLimitUmaListenerTest, HistogramAfterThrottledSignal) { … }
TEST_F(SpeedLimitUmaListenerTest, DeletionCancelsListener) { … }
TEST_F(SpeedLimitUmaListenerTest, RecordsMostRecentState) { … }
TEST_F(SpeedLimitUmaListenerTest, HistogramBucketsIncludesPreviousPeriod) { … }
TEST_F(SpeedLimitUmaListenerTest, NoThrottlingEpisodesIfNothingReported) { … }
TEST_F(SpeedLimitUmaListenerTest, NoThrottlingEpisodesIfNominalSpeedReported) { … }
TEST_F(SpeedLimitUmaListenerTest, CountsOneEpisode) { … }
TEST_F(SpeedLimitUmaListenerTest, CountsTwoEpisodes) { … }
}