| 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 import("//build/config/nacl/config.gni") |
| 6 | 7 |
| 7 if (is_android) { | 8 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 9 } | 10 } |
| 10 | 11 |
| 11 source_set("test_config") { | 12 source_set("test_config") { |
| 12 # TODO http://crbug.com/412064 enable this flag all the time. | 13 # TODO http://crbug.com/412064 enable this flag all the time. |
| 13 testonly = !is_component_build | 14 testonly = !is_component_build |
| 14 sources = [ | 15 sources = [ |
| 15 "test_switches.cc", | 16 "test_switches.cc", |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 "trace_to_file.cc", | 115 "trace_to_file.cc", |
| 115 "trace_to_file.h", | 116 "trace_to_file.h", |
| 116 "user_action_tester.cc", | 117 "user_action_tester.cc", |
| 117 "user_action_tester.h", | 118 "user_action_tester.h", |
| 118 "values_test_util.cc", | 119 "values_test_util.cc", |
| 119 "values_test_util.h", | 120 "values_test_util.h", |
| 120 ] | 121 ] |
| 121 | 122 |
| 122 if (is_ios) { | 123 if (is_ios) { |
| 123 sources += [ "launcher/unit_test_launcher_ios.cc" ] | 124 sources += [ "launcher/unit_test_launcher_ios.cc" ] |
| 124 } else { | 125 } else if (!is_nacl_nonsfi) { |
| 125 sources += [ | 126 sources += [ |
| 126 "launcher/test_launcher.cc", | 127 "launcher/test_launcher.cc", |
| 127 "launcher/test_launcher.h", | 128 "launcher/test_launcher.h", |
| 128 "launcher/test_results_tracker.cc", | 129 "launcher/test_results_tracker.cc", |
| 129 "launcher/unit_test_launcher.cc", | 130 "launcher/unit_test_launcher.cc", |
| 130 "multiprocess_test.cc", | 131 "multiprocess_test.cc", |
| 131 "multiprocess_test_android.cc", | 132 "multiprocess_test_android.cc", |
| 132 ] | 133 ] |
| 133 } | 134 } |
| 134 | 135 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 163 | 164 |
| 164 if (is_ios) { | 165 if (is_ios) { |
| 165 set_sources_assignment_filter([]) | 166 set_sources_assignment_filter([]) |
| 166 sources += [ "test_file_util_mac.cc" ] | 167 sources += [ "test_file_util_mac.cc" ] |
| 167 set_sources_assignment_filter(sources_assignment_filter) | 168 set_sources_assignment_filter(sources_assignment_filter) |
| 168 } | 169 } |
| 169 | 170 |
| 170 if (is_android) { | 171 if (is_android) { |
| 171 deps += [ ":base_unittests_jni_headers" ] | 172 deps += [ ":base_unittests_jni_headers" ] |
| 172 } | 173 } |
| 174 |
| 175 if (is_nacl_nonsfi) { |
| 176 sources += [ |
| 177 "launcher/test_launcher.h", |
| 178 "launcher/test_result.h", |
| 179 "launcher/unit_test_launcher.h", |
| 180 "launcher/unit_test_launcher_nacl_nonsfi.cc", |
| 181 ] |
| 182 sources -= [ |
| 183 "gtest_xml_util.cc", |
| 184 "gtest_xml_util.h", |
| 185 "perf_test_suite.cc", |
| 186 "perf_test_suite.h", |
| 187 "scoped_path_override.cc", |
| 188 "scoped_path_override.h", |
| 189 "test_discardable_memory_allocator.cc", |
| 190 "test_discardable_memory_allocator.h", |
| 191 "test_file_util.cc", |
| 192 "test_file_util.h", |
| 193 "test_file_util_posix.cc", |
| 194 "test_suite.cc", |
| 195 "test_suite.h", |
| 196 "trace_to_file.cc", |
| 197 "trace_to_file.h", |
| 198 ] |
| 199 public_deps -= [ "//base:i18n" ] |
| 200 deps -= [ |
| 201 "//third_party/icu:icuuc", |
| 202 "//third_party/libxml", |
| 203 ] |
| 204 } |
| 173 } | 205 } |
| 174 | 206 |
| 175 config("perf_test_config") { | 207 config("perf_test_config") { |
| 176 defines = [ "PERF_TEST" ] | 208 defines = [ "PERF_TEST" ] |
| 177 } | 209 } |
| 178 | 210 |
| 179 source_set("test_support_perf") { | 211 source_set("test_support_perf") { |
| 180 testonly = true | 212 testonly = true |
| 181 sources = [ | 213 sources = [ |
| 182 "run_all_perftests.cc", | 214 "run_all_perftests.cc", |
| 183 ] | 215 ] |
| 184 deps = [ | 216 deps = [ |
| 185 ":test_support", | 217 ":test_support", |
| 186 "//base", | 218 "//base", |
| 187 "//testing/gtest", | 219 "//testing/gtest", |
| 188 ] | 220 ] |
| 189 | 221 |
| 190 public_configs = [ ":perf_test_config" ] | 222 public_configs = [ ":perf_test_config" ] |
| 191 } | 223 } |
| 192 | 224 |
| 225 source_set("test_launcher_nacl_nonsfi") { |
| 226 testonly = true |
| 227 sources = [ |
| 228 "launcher/test_launcher_nacl_nonsfi.cc", |
| 229 "launcher/test_launcher_nacl_nonsfi.h", |
| 230 ] |
| 231 deps = [ |
| 232 ":test_support", |
| 233 ] |
| 234 } |
| 235 |
| 193 source_set("run_all_unittests") { | 236 source_set("run_all_unittests") { |
| 194 testonly = true | 237 testonly = true |
| 195 sources = [ | 238 sources = [ |
| 196 "run_all_unittests.cc", | 239 "run_all_unittests.cc", |
| 197 ] | 240 ] |
| 198 deps = [ | 241 deps = [ |
| 199 ":test_support", | 242 ":test_support", |
| 200 ] | 243 ] |
| 201 } | 244 } |
| 202 | 245 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 215 | 258 |
| 216 if (is_android) { | 259 if (is_android) { |
| 217 generate_jni("base_unittests_jni_headers") { | 260 generate_jni("base_unittests_jni_headers") { |
| 218 sources = [ | 261 sources = [ |
| 219 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 262 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
| 220 "android/java/src/org/chromium/base/TestUiThread.java", | 263 "android/java/src/org/chromium/base/TestUiThread.java", |
| 221 ] | 264 ] |
| 222 jni_package = "base" | 265 jni_package = "base" |
| 223 } | 266 } |
| 224 } | 267 } |
| OLD | NEW |