blob: bcfb17465cde59711d6a3bcf728bd43a59c89fd7 [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("performance_manager") {
sources = [
"frame_priority/frame_priority.cc",
"frame_priority/max_vote_aggregator.cc",
"frame_priority/override_vote_aggregator.cc",
"graph/frame_node.cc",
"graph/frame_node_impl.cc",
"graph/frame_node_impl.h",
"graph/graph.cc",
"graph/graph_impl.cc",
"graph/graph_impl.h",
"graph/graph_impl_operations.cc",
"graph/graph_impl_operations.h",
"graph/graph_operations.cc",
"graph/node.cc",
"graph/node_attached_data.cc",
"graph/node_attached_data.h",
"graph/node_attached_data_impl.h",
"graph/node_base.cc",
"graph/node_base.h",
"graph/node_type.h",
"graph/page_node.cc",
"graph/page_node_impl.cc",
"graph/page_node_impl.h",
"graph/process_node.cc",
"graph/process_node_impl.cc",
"graph/process_node_impl.h",
"graph/properties.h",
"graph/system_node.cc",
"graph/system_node_impl.cc",
"graph/system_node_impl.h",
"graph/worker_node.cc",
"graph/worker_node_impl.cc",
"graph/worker_node_impl.h",
"performance_manager.cc",
"performance_manager_impl.cc",
"performance_manager_impl.h",
"performance_manager_lock_observer.cc",
"performance_manager_lock_observer.h",
"performance_manager_tab_helper.cc",
"performance_manager_tab_helper.h",
"process_node_source.cc",
"process_node_source.h",
"public/frame_priority/frame_priority.h",
"public/frame_priority/max_vote_aggregator.h",
"public/frame_priority/override_vote_aggregator.h",
"public/graph/frame_node.h",
"public/graph/graph.h",
"public/graph/graph_operations.h",
"public/graph/node.h",
"public/graph/node_attached_data.h",
"public/graph/page_node.h",
"public/graph/process_node.h",
"public/graph/system_node.h",
"public/graph/worker_node.h",
"public/performance_manager.h",
"public/render_process_host_proxy.h",
"public/web_contents_proxy.h",
"render_process_host_proxy.cc",
"render_process_user_data.cc",
"render_process_user_data.h",
"shared_worker_watcher.cc",
"shared_worker_watcher.h",
"tab_helper_frame_node_source.cc",
"tab_helper_frame_node_source.h",
"web_contents_proxy.cc",
"web_contents_proxy_impl.cc",
"web_contents_proxy_impl.h",
]
public_deps = [
"//base",
"//base/allocator:buildflags",
"//components/performance_manager/public/mojom",
"//content/public/browser",
"//services/metrics/public/cpp:metrics_cpp",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"frame_priority/frame_priority_unittest.cc",
"frame_priority/max_vote_aggregator_unittest.cc",
"frame_priority/override_vote_aggregator_unittest.cc",
"frame_priority/unittest_util.cc",
"frame_priority/unittest_util.h",
"graph/frame_node_impl_unittest.cc",
"graph/graph_impl_operations_unittest.cc",
"graph/graph_impl_unittest.cc",
"graph/graph_operations_unittest.cc",
"graph/node_attached_data_unittest.cc",
"graph/node_base_unittest.cc",
"graph/page_node_impl_unittest.cc",
"graph/process_node_impl_unittest.cc",
"graph/properties_unittest.cc",
"graph/system_node_impl_unittest.cc",
"graph/worker_node_impl_unittest.cc",
"performance_manager_impl_unittest.cc",
"performance_manager_tab_helper_unittest.cc",
"performance_manager_test_harness.cc",
"performance_manager_test_harness.h",
"shared_worker_watcher_unittest.cc",
"web_contents_proxy_unittest.cc",
]
deps = [
":performance_manager",
"test_support",
"//base/test:test_support",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}