#include "components/performance_manager/execution_context_priority/inherit_client_priority_voter.h"
#include "base/memory/raw_ptr.h"
#include "components/performance_manager/execution_context_priority/root_vote_observer.h"
#include "components/performance_manager/public/execution_context/execution_context.h"
#include "components/performance_manager/public/execution_context/execution_context_registry.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/test_worker_node_factory.h"
#include "components/performance_manager/test_support/voting.h"
namespace performance_manager {
namespace execution_context_priority {
DummyVoteObserver;
namespace {
const execution_context::ExecutionContext* GetExecutionContext(
const WorkerNode* worker_node) { … }
class GraphOwnedWrapper : public GraphOwned { … };
}
class InheritClientPriorityVoterTest : public GraphTestHarness { … };
TEST_F(InheritClientPriorityVoterTest, OneWorker) { … }
TEST_F(InheritClientPriorityVoterTest, MultipleWorkers) { … }
TEST_F(InheritClientPriorityVoterTest, DeepWorkerTree) { … }
TEST_F(InheritClientPriorityVoterTest, MultipleClients) { … }
TEST_F(InheritClientPriorityVoterTest, SamePriorityDifferentReason) { … }
}
}