chromium/components/performance_manager/graph/policies/process_priority_policy_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/graph/policies/process_priority_policy.h"

#include <memory>

#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "components/performance_manager/graph/graph_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/performance_manager.h"
#include "components/performance_manager/render_process_user_data.h"
#include "components/performance_manager/test_support/performance_manager_test_harness.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/process_type.h"
#include "content/public/test/navigation_simulator.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace performance_manager {
namespace policies {

namespace {

base::TaskPriority ToTaskPriority(base::Process::Priority priority) {}

void PostProcessNodePriority(content::RenderProcessHost* rph,
                             base::Process::Priority priority) {}

// Tests ProcessPriorityPolicy in different threading configurations.
class ProcessPriorityPolicyTest : public PerformanceManagerTestHarness,
                                  public ::testing::WithParamInterface<bool> {};

INSTANTIATE_TEST_SUITE_P();

}  // namespace

TEST_P(ProcessPriorityPolicyTest, GraphReflectedToRenderProcessHost) {}

}  // namespace policies
}  // namespace performance_manager