chromium/components/performance_manager/execution_context_priority/boosting_vote_aggregator_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 "components/performance_manager/execution_context_priority/boosting_vote_aggregator.h"

#include "components/performance_manager/public/execution_context/execution_context.h"
#include "components/performance_manager/test_support/voting.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace performance_manager {
namespace execution_context_priority {

namespace {

DummyVoteObserver;

class DummyExecutionContext : public ExecutionContext {};

static const char kReasonBoost[] =;

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 TestBoostingVoteAggregator : public BoostingVoteAggregator {};

NodeData;

class BoostingVoteAggregatorTest : public testing::Test {};

}  // namespace

TEST_F(BoostingVoteAggregatorTest, VotesUpstreamingWorks) {}

TEST_F(BoostingVoteAggregatorTest, BoostingWorks) {}

TEST_F(BoostingVoteAggregatorTest, DiamondPattern) {}

TEST_F(BoostingVoteAggregatorTest, DiamondPatternMultipleVotes) {}

TEST_F(BoostingVoteAggregatorTest, RemoveEdgeFromCycle) {}

TEST_F(BoostingVoteAggregatorTest, MoveCancelsPreviousBoostingVote) {}

TEST_F(BoostingVoteAggregatorTest, BoostingVoteAfterNormalVotes) {}

}  // namespace execution_context_priority
}  // namespace performance_manager