chromium/components/performance_manager/execution_context_priority/frame_capturing_media_stream_voter_unittest.cc

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

#include "components/performance_manager/execution_context_priority/frame_capturing_media_stream_voter.h"

#include <memory>

#include "base/memory/raw_ptr.h"
#include "components/performance_manager/public/execution_context/execution_context.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/test_support/graph_test_harness.h"
#include "components/performance_manager/test_support/mock_graphs.h"
#include "components/performance_manager/test_support/voting.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace performance_manager::execution_context_priority {

DummyVoteObserver;

namespace {

const execution_context::ExecutionContext* GetExecutionContext(
    const FrameNode* frame_node) {}

// Both the voting channel and the FrameCapturingMediaStreamVoter are expected
// to live on the graph, without being actual GraphOwned objects. This class
// wraps both to allow this.
class GraphOwnedWrapper : public GraphOwned {};

}  // namespace

class FrameCapturingMediaStreamVoterTest : public GraphTestHarness {};

// Tests that the FrameCapturingMediaStreamVoter correctly casts a vote for a
// frame depending on its capturing media stream state.
TEST_F(FrameCapturingMediaStreamVoterTest, CapturingMediaStreamChanged) {}

}  // namespace performance_manager::execution_context_priority