blob: cfca56f0d6d95ed35b6b883375f50f1ff15a99c8 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2019 The Chromium Authors
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:492# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:495# Expose the graph implementation, test fixtures and test support through
Chris Hamilton82d3c962020-04-27 22:02:126# these test only targets.
7
8source_set("test_support_common") {
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:499 testonly = true
10
11 sources = [
Hailey Wang4e391ee2020-03-06 19:48:0012 "decorators_utils.h",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4913 "graph_impl.h",
Shubham Guptaec387252024-05-17 16:32:5014 "page_aggregator.cc",
15 "page_aggregator.h",
Joe Mason779692852023-11-29 17:36:1716 "resource_attribution/gtest_util.h",
Joe Mason2b485fe12023-10-10 17:57:4917 "test_browser_child_process.cc",
18 "test_browser_child_process.h",
Chris Hamilton82d3c962020-04-27 22:02:1219 "test_harness_helper.cc",
20 "test_harness_helper.h",
Sebastien Marchandd7d30f3d2020-11-03 18:35:3321 "voting.h",
Chris Hamilton82d3c962020-04-27 22:02:1222 ]
23
Joe Mason66d01132023-04-05 17:44:4324 # The site data database isn't supported on Android.
25 if (!is_android) {
26 sources += [
27 "persistence/test_site_data_reader.cc",
28 "persistence/test_site_data_reader.h",
29 "persistence/unittest_utils.cc",
30 "persistence/unittest_utils.h",
31 ]
32 }
33
Chris Hamilton82d3c962020-04-27 22:02:1234 deps = [
35 "//base/test:test_support",
36 "//components/performance_manager",
37 "//testing/gmock",
38 "//testing/gtest",
39 ]
40}
41
42source_set("test_support") {
43 testonly = true
44
45 sources = [
Patrick Monetteb4628192024-12-13 04:07:2246 "graph/mock_frame_node_observer.cc",
47 "graph/mock_frame_node_observer.h",
48 "graph/mock_page_node_observer.cc",
49 "graph/mock_page_node_observer.h",
50 "graph/mock_process_node_observer.cc",
51 "graph/mock_process_node_observer.h",
52 "graph/mock_system_node_observer.cc",
53 "graph/mock_system_node_observer.h",
54 "graph/mock_worker_node_observer.cc",
55 "graph/mock_worker_node_observer.h",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4956 "graph_test_harness.cc",
57 "graph_test_harness.h",
58 "mock_graphs.cc",
59 "mock_graphs.h",
Chris Hamilton82d3c962020-04-27 22:02:1260 "performance_manager_test_harness.cc",
61 "performance_manager_test_harness.h",
Joe Mason6408ebd2023-11-30 17:13:5062 "resource_attribution/measurement_delegates.cc",
63 "resource_attribution/measurement_delegates.h",
Patrick Monettebff1b2412021-03-04 21:50:0564 "test_worker_node_factory.cc",
65 "test_worker_node_factory.h",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4966 ]
Chris Hamilton82d3c962020-04-27 22:02:1267
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4968 deps = [
Chris Hamilton82d3c962020-04-27 22:02:1269 ":test_support_common",
Sigurdur Asgeirsson51d9d242019-10-07 20:38:3470 "//base/test:test_support",
71 "//components/performance_manager",
72 "//content/test:test_support",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4973 "//testing/gmock",
74 "//testing/gtest",
75 ]