#include "third_party/blink/renderer/modules/peerconnection/thermal_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 {
const base::TimeDelta kStatsReportingPeriod = …;
class ThermalUmaListenerTest : public ::testing::Test { … };
}
Bucket;
TEST_F(ThermalUmaListenerTest, NoMeasurementsHasNoHistograms) { … }
TEST_F(ThermalUmaListenerTest, HistogramAfterSignal) { … }
TEST_F(ThermalUmaListenerTest, DeletionCancelsListener) { … }
TEST_F(ThermalUmaListenerTest, RecordsMostRecentState) { … }
TEST_F(ThermalUmaListenerTest, HistogramBucketsIncludesPreviousPeriod) { … }
}