#include "third_party/blink/renderer/platform/media/power_status_helper.h"
#include <memory>
#include <tuple>
#include <utility>
#include <vector>
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "media/base/pipeline_metadata.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/device/public/mojom/battery_status.mojom-blink.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
Bool;
Combine;
Values;
class PowerStatusHelperTest : public testing::Test { … };
TEST_F(PowerStatusHelperTest, EmptyPendingRemoteIsOkay) { … }
TEST_F(PowerStatusHelperTest, UnboundPendingRemoteIsOkay) { … }
TEST_F(PowerStatusHelperTest, BasicReportingWithFractionalAmounts) { … }
TEST_F(PowerStatusHelperTest, ChargingResetsBaseline) { … }
TEST_F(PowerStatusHelperTest, ExperimentStateStopsRecording) { … }
TEST_F(PowerStatusHelperTest, ChangingBucketsWorks) { … }
TEST_F(PowerStatusHelperTest, UnbucketedVideoStopsRecording) { … }
TEST_F(PowerStatusHelperTest, UnbucketedFrameRateStopsRecording) { … }
PlaybackParamsTuple;
class PowerStatusHelperBucketTest
: public testing::TestWithParam<PlaybackParamsTuple> { … };
TEST_P(PowerStatusHelperBucketTest, TestBucket) { … }
INSTANTIATE_TEST_SUITE_P(…);
}