chromium/third_party/blink/renderer/platform/media/power_status_helper_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 all valid combinations, plus some that aren't.
INSTANTIATE_TEST_SUITE_P();

}  // namespace blink