OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 "gtest_util.cc", | 30 "gtest_util.cc", |
31 "gtest_util.h", | 31 "gtest_util.h", |
32 "gtest_xml_unittest_result_printer.cc", | 32 "gtest_xml_unittest_result_printer.cc", |
33 "gtest_xml_unittest_result_printer.h", | 33 "gtest_xml_unittest_result_printer.h", |
34 "gtest_xml_util.cc", | 34 "gtest_xml_util.cc", |
35 "gtest_xml_util.h", | 35 "gtest_xml_util.h", |
36 "histogram_tester.cc", | 36 "histogram_tester.cc", |
37 "histogram_tester.h", | 37 "histogram_tester.h", |
38 "ios/wait_util.h", | 38 "ios/wait_util.h", |
39 "ios/wait_util.mm", | 39 "ios/wait_util.mm", |
40 "launcher/test_launcher.cc", | |
41 "launcher/test_launcher.h", | 40 "launcher/test_launcher.h", |
42 "launcher/test_result.cc", | 41 "launcher/test_result.cc", |
43 "launcher/test_result.h", | 42 "launcher/test_result.h", |
44 "launcher/test_results_tracker.cc", | |
45 "launcher/test_results_tracker.h", | 43 "launcher/test_results_tracker.h", |
46 "launcher/unit_test_launcher.cc", | |
47 "launcher/unit_test_launcher.h", | 44 "launcher/unit_test_launcher.h", |
48 "launcher/unit_test_launcher_ios.cc", | |
49 "mock_chrome_application_mac.h", | 45 "mock_chrome_application_mac.h", |
50 "mock_chrome_application_mac.mm", | 46 "mock_chrome_application_mac.mm", |
51 "mock_devices_changed_observer.cc", | 47 "mock_devices_changed_observer.cc", |
52 "mock_devices_changed_observer.h", | 48 "mock_devices_changed_observer.h", |
53 "mock_entropy_provider.cc", | 49 "mock_entropy_provider.cc", |
54 "mock_entropy_provider.h", | 50 "mock_entropy_provider.h", |
55 "mock_log.cc", | 51 "mock_log.cc", |
56 "mock_log.h", | 52 "mock_log.h", |
57 "multiprocess_test.cc", | |
58 "multiprocess_test.h", | 53 "multiprocess_test.h", |
59 "multiprocess_test_android.cc", | |
60 "null_task_runner.cc", | 54 "null_task_runner.cc", |
61 "null_task_runner.h", | 55 "null_task_runner.h", |
62 "opaque_ref_counted.cc", | 56 "opaque_ref_counted.cc", |
63 "opaque_ref_counted.h", | 57 "opaque_ref_counted.h", |
64 "perf_log.cc", | 58 "perf_log.cc", |
65 "perf_log.h", | 59 "perf_log.h", |
66 "perf_test_suite.cc", | 60 "perf_test_suite.cc", |
67 "perf_test_suite.h", | 61 "perf_test_suite.h", |
68 "perf_time_logger.cc", | 62 "perf_time_logger.cc", |
69 "perf_time_logger.h", | 63 "perf_time_logger.h", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 "trace_event_analyzer.cc", | 113 "trace_event_analyzer.cc", |
120 "trace_event_analyzer.h", | 114 "trace_event_analyzer.h", |
121 "trace_to_file.cc", | 115 "trace_to_file.cc", |
122 "trace_to_file.h", | 116 "trace_to_file.h", |
123 "user_action_tester.cc", | 117 "user_action_tester.cc", |
124 "user_action_tester.h", | 118 "user_action_tester.h", |
125 "values_test_util.cc", | 119 "values_test_util.cc", |
126 "values_test_util.h", | 120 "values_test_util.h", |
127 ] | 121 ] |
128 | 122 |
| 123 if (is_ios) { |
| 124 sources += [ "launcher/unit_test_launcher_ios.cc" ] |
| 125 } else { |
| 126 sources += [ |
| 127 "launcher/test_launcher.cc", |
| 128 "launcher/test_results_tracker.cc", |
| 129 "launcher/unit_test_launcher.cc", |
| 130 "multiprocess_test.cc", |
| 131 "multiprocess_test_android.cc", |
| 132 ] |
| 133 } |
| 134 |
129 configs += [ "//build/config:precompiled_headers" ] | 135 configs += [ "//build/config:precompiled_headers" ] |
130 | 136 |
131 data = [ | 137 data = [ |
132 # The isolate needs this script for setting up the test. It's not actually | 138 # The isolate needs this script for setting up the test. It's not actually |
133 # needed to run this target locally. | 139 # needed to run this target locally. |
134 "//testing/test_env.py", | 140 "//testing/test_env.py", |
135 ] | 141 ] |
136 | 142 |
137 public_deps = [ | 143 public_deps = [ |
138 ":test_config", | 144 ":test_config", |
139 "//base", | 145 "//base", |
140 "//base:i18n", | 146 "//base:i18n", |
141 "//base:base_static", | 147 "//base:base_static", |
142 ] | 148 ] |
143 deps = [ | 149 deps = [ |
144 "//base/third_party/dynamic_annotations", | 150 "//base/third_party/dynamic_annotations", |
145 "//testing/gmock", | 151 "//testing/gmock", |
146 "//testing/gtest", | 152 "//testing/gtest", |
147 "//third_party/libxml", | 153 "//third_party/libxml", |
148 "//third_party/icu:icuuc", | 154 "//third_party/icu:icuuc", |
149 ] | 155 ] |
150 | 156 |
151 if (!is_posix) { | 157 if (!is_posix) { |
152 sources -= [ | 158 sources -= [ |
153 "scoped_locale.cc", | 159 "scoped_locale.cc", |
154 "scoped_locale.h", | 160 "scoped_locale.h", |
155 ] | 161 ] |
156 } | 162 } |
| 163 |
157 if (is_ios) { | 164 if (is_ios) { |
158 # iOS uses its own unit test launcher. | |
159 sources -= [ "launcher/unit_test_launcher.cc" ] | |
160 | |
161 # Pull in specific Mac files for iOS (which have been filtered out | |
162 # by file name rules). | |
163 set_sources_assignment_filter([]) | 165 set_sources_assignment_filter([]) |
164 sources += [ "test_file_util_mac.cc" ] | 166 sources += [ "test_file_util_mac.cc" ] |
| 167 set_sources_assignment_filter(sources_assignment_filter) |
165 } | 168 } |
166 | 169 |
167 if (is_android) { | 170 if (is_android) { |
168 deps += [ ":base_unittests_jni_headers" ] | 171 deps += [ ":base_unittests_jni_headers" ] |
169 } | 172 } |
170 } | 173 } |
171 | 174 |
172 config("perf_test_config") { | 175 config("perf_test_config") { |
173 defines = [ "PERF_TEST" ] | 176 defines = [ "PERF_TEST" ] |
174 } | 177 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 214 |
212 if (is_android) { | 215 if (is_android) { |
213 generate_jni("base_unittests_jni_headers") { | 216 generate_jni("base_unittests_jni_headers") { |
214 sources = [ | 217 sources = [ |
215 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 218 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
216 "android/java/src/org/chromium/base/TestUiThread.java", | 219 "android/java/src/org/chromium/base/TestUiThread.java", |
217 ] | 220 ] |
218 jni_package = "base" | 221 jni_package = "base" |
219 } | 222 } |
220 } | 223 } |
OLD | NEW |