1 # Copyright (c) 2013 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.
5 import("//build/config/ui.gni")
7 source_set("test_support") {
9 "expectations/expectation.cc",
10 "expectations/expectation.h",
11 "expectations/parser.cc",
12 "expectations/parser.h",
15 "launcher/test_launcher.cc",
16 "launcher/test_launcher.h",
17 "launcher/test_result.cc",
18 "launcher/test_result.h",
19 "launcher/test_results_tracker.cc",
20 "launcher/test_results_tracker.h",
21 "launcher/unit_test_launcher.cc",
22 "launcher/unit_test_launcher.h",
23 "launcher/unit_test_launcher_ios.cc",
24 "mock_chrome_application_mac.h",
25 "mock_chrome_application_mac.mm",
26 "mock_devices_changed_observer.cc",
27 "mock_devices_changed_observer.h",
28 "mock_time_provider.cc",
29 "mock_time_provider.h",
30 "multiprocess_test.cc",
31 "multiprocess_test.h",
32 "multiprocess_test_android.cc",
33 "null_task_runner.cc",
39 "perf_time_logger.cc",
41 "power_monitor_test_base.cc",
42 "power_monitor_test_base.h",
45 "scoped_path_override.cc",
46 "scoped_path_override.h",
47 "sequenced_task_runner_test_template.cc",
48 "sequenced_task_runner_test_template.h",
49 "sequenced_worker_pool_owner.cc",
50 "sequenced_worker_pool_owner.h",
51 "simple_test_clock.cc",
52 "simple_test_clock.h",
53 "simple_test_tick_clock.cc",
54 "simple_test_tick_clock.h",
55 "task_runner_test_template.cc",
56 "task_runner_test_template.h",
59 "test_file_util_linux.cc",
60 "test_file_util_mac.cc",
61 "test_file_util_posix.cc",
62 "test_file_util_win.cc",
63 "test_listener_ios.h",
64 "test_listener_ios.mm",
65 "test_pending_task.cc",
66 "test_pending_task.h",
67 "test_process_killer_win.cc",
68 "test_process_killer_win.h",
69 "test_reg_util_win.cc",
70 "test_reg_util_win.h",
71 "test_shortcut_win.cc",
72 "test_shortcut_win.h",
73 "test_simple_task_runner.cc",
74 "test_simple_task_runner.h",
77 "test_support_android.cc",
78 "test_support_android.h",
80 "test_support_ios.mm",
85 "thread_test_helper.cc",
86 "thread_test_helper.h",
87 "trace_event_analyzer.cc",
88 "trace_event_analyzer.h",
89 "values_test_util.cc",
94 "//base/third_party/dynamic_annotations",
99 "//third_party/libxml"
109 # iOS uses its own unit test launcher.
110 sources -= [ "launcher/unit_test_launcher.cc" ]
112 # Pull in specific Mac files for iOS (which have been filtered out
113 # by file name rules).
114 set_sources_assignment_filter([])
115 sources += [ "test_file_util_mac.cc" ]
117 if (toolkit_uses_gtk) {
118 configs += [ "//build/config/linux:gtk" ]
122 config("perf_test_config") {
123 defines = [ "PERF_TEST" ]
126 static_library("test_support_perf") {
128 "run_all_perftests.cc",
136 direct_dependent_configs = [ ":perf_test_config" ]
138 if (toolkit_uses_gtk) {
139 configs += [ "//build/config/linux:gtk" ]
143 source_set("run_all_unittests") {
145 "run_all_unittests.cc",