blob: dcfa0158b4dae4a7c9bd671e1bf169d9e0f6e7f0 [file] [log] [blame]
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:491# Copyright 2019 The Chromium Authors. All rights reserved.
2# 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",
Chris Hamilton82d3c962020-04-27 22:02:1214 "test_harness_helper.cc",
15 "test_harness_helper.h",
Sebastien Marchandd7d30f3d2020-11-03 18:35:3316 "voting.h",
Chris Hamilton82d3c962020-04-27 22:02:1217 ]
18
19 deps = [
20 "//base/test:test_support",
21 "//components/performance_manager",
22 "//testing/gmock",
23 "//testing/gtest",
24 ]
25}
26
27source_set("test_support") {
28 testonly = true
29
30 sources = [
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4931 "graph_test_harness.cc",
32 "graph_test_harness.h",
33 "mock_graphs.cc",
34 "mock_graphs.h",
Chris Hamilton82d3c962020-04-27 22:02:1235 "performance_manager_test_harness.cc",
36 "performance_manager_test_harness.h",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4937 ]
Chris Hamilton82d3c962020-04-27 22:02:1238
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4939 deps = [
Chris Hamilton82d3c962020-04-27 22:02:1240 ":test_support_common",
Sigurdur Asgeirsson51d9d242019-10-07 20:38:3441 "//base/test:test_support",
42 "//components/performance_manager",
43 "//content/test:test_support",
Sigurdur Asgeirsson616dbeb2019-09-10 16:58:4944 "//testing/gmock",
45 "//testing/gtest",
46 ]
47}
Chris Hamilton82d3c962020-04-27 22:02:1248
49source_set("browsertest_support") {
50 testonly = true
51
52 sources = [
53 "performance_manager_browsertest_harness.cc",
54 "performance_manager_browsertest_harness.h",
55 ]
56
57 deps = [
58 ":test_support_common",
59 "//base/test:test_support",
60 "//components/performance_manager",
61 "//content/shell:content_shell_lib",
62 "//content/test:browsertest_support",
Chris Hamiltond58ccc92020-05-13 13:54:3163 "//net:test_support",
Chris Hamilton82d3c962020-04-27 22:02:1264 "//testing/gmock",
65 "//testing/gtest",
Chris Hamiltond58ccc92020-05-13 13:54:3166 "//ui/base",
Chris Hamilton82d3c962020-04-27 22:02:1267 ]
68}