| 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 17 matching lines...) Expand all Loading... |
| 28 testonly = !is_component_build | 28 testonly = !is_component_build |
| 29 sources = [ | 29 sources = [ |
| 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 "launcher/test_launcher.cc", | |
| 39 "launcher/test_launcher.h", | 38 "launcher/test_launcher.h", |
| 40 "launcher/test_result.cc", | 39 "launcher/test_result.cc", |
| 41 "launcher/test_result.h", | 40 "launcher/test_result.h", |
| 42 "launcher/test_results_tracker.cc", | |
| 43 "launcher/test_results_tracker.h", | 41 "launcher/test_results_tracker.h", |
| 44 "launcher/unit_test_launcher.cc", | |
| 45 "launcher/unit_test_launcher.h", | 42 "launcher/unit_test_launcher.h", |
| 46 "launcher/unit_test_launcher_ios.cc", | |
| 47 "mock_chrome_application_mac.h", | 43 "mock_chrome_application_mac.h", |
| 48 "mock_chrome_application_mac.mm", | 44 "mock_chrome_application_mac.mm", |
| 49 "mock_devices_changed_observer.cc", | 45 "mock_devices_changed_observer.cc", |
| 50 "mock_devices_changed_observer.h", | 46 "mock_devices_changed_observer.h", |
| 51 "mock_entropy_provider.cc", | 47 "mock_entropy_provider.cc", |
| 52 "mock_entropy_provider.h", | 48 "mock_entropy_provider.h", |
| 53 "mock_log.cc", | 49 "mock_log.cc", |
| 54 "mock_log.h", | 50 "mock_log.h", |
| 55 "multiprocess_test.cc", | |
| 56 "multiprocess_test.h", | 51 "multiprocess_test.h", |
| 57 "multiprocess_test_android.cc", | |
| 58 "null_task_runner.cc", | 52 "null_task_runner.cc", |
| 59 "null_task_runner.h", | 53 "null_task_runner.h", |
| 60 "opaque_ref_counted.cc", | 54 "opaque_ref_counted.cc", |
| 61 "opaque_ref_counted.h", | 55 "opaque_ref_counted.h", |
| 62 "perf_log.cc", | 56 "perf_log.cc", |
| 63 "perf_log.h", | 57 "perf_log.h", |
| 64 "perf_test_suite.cc", | 58 "perf_test_suite.cc", |
| 65 "perf_test_suite.h", | 59 "perf_test_suite.h", |
| 66 "perf_time_logger.cc", | 60 "perf_time_logger.cc", |
| 67 "perf_time_logger.h", | 61 "perf_time_logger.h", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 "trace_event_analyzer.cc", | 111 "trace_event_analyzer.cc", |
| 118 "trace_event_analyzer.h", | 112 "trace_event_analyzer.h", |
| 119 "trace_to_file.cc", | 113 "trace_to_file.cc", |
| 120 "trace_to_file.h", | 114 "trace_to_file.h", |
| 121 "user_action_tester.cc", | 115 "user_action_tester.cc", |
| 122 "user_action_tester.h", | 116 "user_action_tester.h", |
| 123 "values_test_util.cc", | 117 "values_test_util.cc", |
| 124 "values_test_util.h", | 118 "values_test_util.h", |
| 125 ] | 119 ] |
| 126 | 120 |
| 121 if (is_ios) { |
| 122 sources += [ "launcher/unit_test_launcher_ios.cc" ] |
| 123 } else { |
| 124 sources += [ |
| 125 "launcher/test_launcher.cc", |
| 126 "launcher/test_results_tracker.cc", |
| 127 "launcher/unit_test_launcher.cc", |
| 128 "multiprocess_test.cc", |
| 129 "multiprocess_test_android.cc", |
| 130 ] |
| 131 } |
| 132 |
| 127 configs += [ "//build/config:precompiled_headers" ] | 133 configs += [ "//build/config:precompiled_headers" ] |
| 128 | 134 |
| 129 data = [ | 135 data = [ |
| 130 # The isolate needs this script for setting up the test. It's not actually | 136 # The isolate needs this script for setting up the test. It's not actually |
| 131 # needed to run this target locally. | 137 # needed to run this target locally. |
| 132 "//testing/test_env.py", | 138 "//testing/test_env.py", |
| 133 ] | 139 ] |
| 134 | 140 |
| 135 public_deps = [ | 141 public_deps = [ |
| 136 ":test_config", | 142 ":test_config", |
| 137 "//base", | 143 "//base", |
| 138 "//base:i18n", | 144 "//base:i18n", |
| 139 "//base:base_static", | 145 "//base:base_static", |
| 140 ] | 146 ] |
| 141 deps = [ | 147 deps = [ |
| 142 "//base/third_party/dynamic_annotations", | 148 "//base/third_party/dynamic_annotations", |
| 143 "//testing/gmock", | 149 "//testing/gmock", |
| 144 "//testing/gtest", | 150 "//testing/gtest", |
| 145 "//third_party/libxml", | 151 "//third_party/libxml", |
| 146 "//third_party/icu:icuuc", | 152 "//third_party/icu:icuuc", |
| 147 ] | 153 ] |
| 148 | 154 |
| 149 if (!is_posix) { | 155 if (!is_posix) { |
| 150 sources -= [ | 156 sources -= [ |
| 151 "scoped_locale.cc", | 157 "scoped_locale.cc", |
| 152 "scoped_locale.h", | 158 "scoped_locale.h", |
| 153 ] | 159 ] |
| 154 } | 160 } |
| 161 |
| 155 if (is_ios) { | 162 if (is_ios) { |
| 156 # iOS uses its own unit test launcher. | |
| 157 sources -= [ "launcher/unit_test_launcher.cc" ] | |
| 158 | |
| 159 # Pull in specific Mac files for iOS (which have been filtered out | |
| 160 # by file name rules). | |
| 161 set_sources_assignment_filter([]) | 163 set_sources_assignment_filter([]) |
| 162 sources += [ "test_file_util_mac.cc" ] | 164 sources += [ "test_file_util_mac.cc" ] |
| 163 } | 165 } |
| 164 | 166 |
| 165 if (is_android) { | 167 if (is_android) { |
| 166 deps += [ ":base_unittests_jni_headers" ] | 168 deps += [ ":base_unittests_jni_headers" ] |
| 167 } | 169 } |
| 168 } | 170 } |
| 169 | 171 |
| 170 config("perf_test_config") { | 172 config("perf_test_config") { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 211 |
| 210 if (is_android) { | 212 if (is_android) { |
| 211 generate_jni("base_unittests_jni_headers") { | 213 generate_jni("base_unittests_jni_headers") { |
| 212 sources = [ | 214 sources = [ |
| 213 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 215 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
| 214 "android/java/src/org/chromium/base/TestUiThread.java", | 216 "android/java/src/org/chromium/base/TestUiThread.java", |
| 215 ] | 217 ] |
| 216 jni_package = "base" | 218 jni_package = "base" |
| 217 } | 219 } |
| 218 } | 220 } |
| OLD | NEW |