blob: 90019aca17959a36d258b864870e7e8f5f6c9b38 [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",
Joe Masone523e5a2023-10-06 19:33:2014 "run_in_graph.cc",
15 "run_in_graph.h",
Joe Mason2b485fe12023-10-10 17:57:4916 "test_browser_child_process.cc",
17 "test_browser_child_process.h",
Chris Hamilton82d3c962020-04-27 22:02:1218 "test_harness_helper.cc",
19 "test_harness_helper.h",
Sebastien Marchandd7d30f3d2020-11-03 18:35:3320 "voting.h",
Chris Hamilton82d3c962020-04-27 22:02:1221 ]
22
Joe Mason66d01132023-04-05 17:44:4323 # The site data database isn't supported on Android.
24 if (!is_android) {
25 sources += [
26 "persistence/test_site_data_reader.cc",
27 "persistence/test_site_data_reader.h",
28 "persistence/unittest_utils.cc",
29 "persistence/unittest_utils.h",
30 ]
31 }
32
Chris Hamilton82d3c962020-04-27 22:02:1233 deps = [
34 "//base/test:test_support",
35 "//components/performance_manager",
36 "//testing/gmock",
37 "//testing/gtest",
38 ]
39}
40
41source_set("test_support") {
42 testonly = true
43
44 sources = [
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4945 "graph_test_harness.cc",
46 "graph_test_harness.h",
47 "mock_graphs.cc",
48 "mock_graphs.h",
Chris Hamilton82d3c962020-04-27 22:02:1249 "performance_manager_test_harness.cc",
50 "performance_manager_test_harness.h",
Patrick Monettebff1b2412021-03-04 21:50:0551 "test_worker_node_factory.cc",
52 "test_worker_node_factory.h",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4953 ]
Chris Hamilton82d3c962020-04-27 22:02:1254
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4955 deps = [
Chris Hamilton82d3c962020-04-27 22:02:1256 ":test_support_common",
Sigurdur Asgeirsson51d9d242019-10-07 20:38:3457 "//base/test:test_support",
58 "//components/performance_manager",
59 "//content/test:test_support",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4960 "//testing/gmock",
61 "//testing/gtest",
62 ]
63}
Chris Hamilton82d3c962020-04-27 22:02:1264
65source_set("browsertest_support") {
66 testonly = true
67
68 sources = [
69 "performance_manager_browsertest_harness.cc",
70 "performance_manager_browsertest_harness.h",
Joe Masonc2e5f442023-09-01 18:54:1871 "resource_attribution/registry_browsertest_harness.cc",
72 "resource_attribution/registry_browsertest_harness.h",
Chris Hamilton82d3c962020-04-27 22:02:1273 ]
74
75 deps = [
76 ":test_support_common",
77 "//base/test:test_support",
78 "//components/performance_manager",
79 "//content/shell:content_shell_lib",
80 "//content/test:browsertest_support",
Joe Mason4dd03082021-07-16 16:12:4581 "//content/test:test_support",
Chris Hamiltond58ccc92020-05-13 13:54:3182 "//net:test_support",
Chris Hamilton82d3c962020-04-27 22:02:1283 "//testing/gmock",
84 "//testing/gtest",
Chris Hamiltond58ccc92020-05-13 13:54:3185 "//ui/base",
Chris Hamilton82d3c962020-04-27 22:02:12