#include "components/performance_manager/execution_context_priority/override_vote_aggregator.h"
#include "components/performance_manager/test_support/voting.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace performance_manager {
namespace execution_context_priority {
DummyVoteObserver;
const ExecutionContext* kExecutionContext0 = …;
const ExecutionContext* kExecutionContext1 = …;
static const Vote kLowPriorityVote0(base::TaskPriority::LOWEST, "low reason 0");
static const Vote kLowPriorityVote1(base::TaskPriority::LOWEST, "low reason 1");
static const Vote kMediumPriorityVote0(base::TaskPriority::USER_VISIBLE,
"medium reason 0");
static const Vote kMediumPriorityVote1(base::TaskPriority::USER_VISIBLE,
"medium reason 1");
static const Vote kHighPriorityVote0(base::TaskPriority::HIGHEST,
"high reason 0");
static const Vote kHighPriorityVote1(base::TaskPriority::HIGHEST,
"high reason 1");
class OverrideVoteAggregatorTest : public testing::Test { … };
TEST_F(OverrideVoteAggregatorTest, SingleVoter) { … }
TEST_F(OverrideVoteAggregatorTest, OneContext) { … }
TEST_F(OverrideVoteAggregatorTest, MultipleContexts) { … }
}
}