BUILD.gn 17 KB
Newer Older
machenbach's avatar
machenbach committed
1 2 3 4 5 6
# Copyright 2016 The V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("../../gni/v8.gni")

7 8 9
if (is_fuchsia) {
  import("//build/config/fuchsia/rules.gni")

10
  cr_fuchsia_package("v8_unittests_pkg") {
11 12
    testonly = true
    binary = ":unittests"
13
    manifest = "../../gni/v8.cmx"
14 15 16 17 18 19 20 21 22 23
    package_name_override = "v8_unittests"
  }

  fuchsia_package_runner("v8_unittests_fuchsia") {
    testonly = true
    package = ":v8_unittests_pkg"
    package_name_override = "v8_unittests"
  }
}

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
v8_executable("v8_cppgc_shared_unittests") {
  testonly = true

  configs = [
    "../..:external_config",
    "../..:internal_config_base",
  ]

  sources = [ "heap/base/run-all-unittests.cc" ]

  deps = [
    ":v8_cppgc_shared_unittests_sources",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

v8_source_set("v8_cppgc_shared_unittests_sources") {
  testonly = true

  sources = [ "heap/base/worklist-unittest.cc" ]

  configs = [
    "../..:external_config",
    "../..:internal_config_base",
  ]

  deps = [
    "../..:v8_cppgc_shared_for_testing",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

Michael Lippautz's avatar
Michael Lippautz committed
58 59 60
# Stand-alone target for C++ GC unittests. This is used to ensure that it
# builds without V8 as well. They are also included in the regular unittests
# target for simplicity.
Omer Katz's avatar
Omer Katz committed
61 62 63
if (cppgc_is_standalone) {
  v8_executable("cppgc_unittests") {
    testonly = true
Brice Dobry's avatar
Brice Dobry committed
64 65 66
    if (v8_current_cpu == "riscv64") {
      libs = [ "atomic" ]
    }
Michael Lippautz's avatar
Michael Lippautz committed
67

Omer Katz's avatar
Omer Katz committed
68 69 70 71
    configs = [
      "../..:external_config",
      "../..:internal_config_base",
    ]
Michael Lippautz's avatar
Michael Lippautz committed
72

Omer Katz's avatar
Omer Katz committed
73
    sources = [ "heap/cppgc/run-all-unittests.cc" ]
Michael Lippautz's avatar
Michael Lippautz committed
74

Omer Katz's avatar
Omer Katz committed
75 76 77 78 79 80 81 82
    deps = [
      ":cppgc_unittests_sources",
      ":v8_cppgc_shared_unittests_sources",
      "../..:cppgc_for_testing",
      "//testing/gmock",
      "//testing/gtest",
    ]
  }
Michael Lippautz's avatar
Michael Lippautz committed
83 84 85 86 87
}

v8_source_set("cppgc_unittests_sources") {
  testonly = true

88
  sources = [
89
    "heap/cppgc/allocation-unittest.cc",
90
    "heap/cppgc/compactor-unittest.cc",
91
    "heap/cppgc/concurrent-marking-unittest.cc",
92
    "heap/cppgc/concurrent-sweeper-unittest.cc",
93
    "heap/cppgc/cross-thread-persistent-unittest.cc",
94
    "heap/cppgc/custom-spaces-unittest.cc",
95
    "heap/cppgc/ephemeron-pair-unittest.cc",
96
    "heap/cppgc/explicit-management-unittest.cc",
97 98 99 100
    "heap/cppgc/finalizer-trait-unittest.cc",
    "heap/cppgc/free-list-unittest.cc",
    "heap/cppgc/garbage-collected-unittest.cc",
    "heap/cppgc/gc-info-unittest.cc",
101 102
    "heap/cppgc/gc-invoker-unittest.cc",
    "heap/cppgc/heap-growing-unittest.cc",
103 104
    "heap/cppgc/heap-object-header-unittest.cc",
    "heap/cppgc/heap-page-unittest.cc",
105
    "heap/cppgc/heap-registry-unittest.cc",
106
    "heap/cppgc/heap-statistics-collector-unittest.cc",
107
    "heap/cppgc/heap-unittest.cc",
108
    "heap/cppgc/incremental-marking-schedule-unittest.cc",
109 110
    "heap/cppgc/logging-unittest.cc",
    "heap/cppgc/marker-unittest.cc",
111
    "heap/cppgc/marking-verifier-unittest.cc",
112 113
    "heap/cppgc/marking-visitor-unittest.cc",
    "heap/cppgc/member-unittest.cc",
Omer Katz's avatar
Omer Katz committed
114
    "heap/cppgc/metric-recorder-unittest.cc",
115
    "heap/cppgc/minor-gc-unittest.cc",
116
    "heap/cppgc/name-trait-unittest.cc",
117
    "heap/cppgc/object-size-trait-unittest.cc",
118
    "heap/cppgc/object-start-bitmap-unittest.cc",
119
    "heap/cppgc/page-memory-unittest.cc",
120
    "heap/cppgc/persistent-family-unittest.cc",
121
    "heap/cppgc/prefinalizer-unittest.cc",
122
    "heap/cppgc/sanitizer-unittest.cc",
123 124
    "heap/cppgc/source-location-unittest.cc",
    "heap/cppgc/stack-unittest.cc",
Omer Katz's avatar
Omer Katz committed
125
    "heap/cppgc/stats-collector-scopes-unittest.cc",
126
    "heap/cppgc/stats-collector-unittest.cc",
127
    "heap/cppgc/sweeper-unittest.cc",
128 129
    "heap/cppgc/test-platform.cc",
    "heap/cppgc/test-platform.h",
130
    "heap/cppgc/testing-unittest.cc",
131 132
    "heap/cppgc/tests.cc",
    "heap/cppgc/tests.h",
133
    "heap/cppgc/visitor-unittest.cc",
134
    "heap/cppgc/weak-container-unittest.cc",
135
    "heap/cppgc/workloads-unittest.cc",
136
    "heap/cppgc/write-barrier-unittest.cc",
137
  ]
Michael Lippautz's avatar
Michael Lippautz committed
138 139 140 141

  configs = [
    "../..:external_config",
    "../..:internal_config_base",
142
    "../..:cppgc_base_config",
Michael Lippautz's avatar
Michael Lippautz committed
143 144 145 146 147 148
  ]

  deps = [
    "//testing/gmock",
    "//testing/gtest",
  ]
149

150 151 152 153 154 155 156
  if (cppgc_is_standalone) {
    deps += [ "../..:cppgc_for_testing" ]
  } else {
    deps += [
      "../..:v8_for_testing",
      "../..:v8_tracing",
    ]
157
  }
Michael Lippautz's avatar
Michael Lippautz committed
158 159
}

160
v8_executable("unittests") {
machenbach's avatar
machenbach committed
161 162
  testonly = true

163 164 165 166 167 168 169
  # TODO(machenbach): Translate from gyp.
  #['OS=="aix"', {
  #  'ldflags': [ '-Wl,-bbigtoc' ],
  #}],

  deps = [
    ":unittests_sources",
170
    ":v8_cppgc_shared_unittests_sources",
171 172 173 174
    "../..:v8_for_testing",
    "../..:v8_libbase",
    "../..:v8_libplatform",
    "//build/win:default_exe_manifest",
175 176
    "//testing/gmock",
    "//testing/gtest",
177 178
  ]

Omer Katz's avatar
Omer Katz committed
179 180 181 182
  if (!cppgc_is_standalone) {
    deps += [ ":cppgc_unittests_sources" ]
  }

183
  data_deps = [ "../../tools:v8_testrunner" ]
184 185 186 187 188 189

  data = [
    "testcfg.py",
    "unittests.status",
  ]

190 191 192 193 194
  configs = [
    "../..:external_config",
    "../..:internal_config_base",
  ]
}
195

196 197 198
v8_source_set("unittests_sources") {
  testonly = true

jochen's avatar
jochen committed
199
  sources = [
200
    "../../test/common/assembler-tester.h",
201 202
    "../../testing/gmock-support.h",
    "../../testing/gtest-support.h",
203
    "api/access-check-unittest.cc",
204
    "api/exception-unittest.cc",
205
    "api/interceptor-unittest.cc",
206
    "api/isolate-unittest.cc",
207
    "api/remote-object-unittest.cc",
208
    "api/resource-constraints-unittest.cc",
209
    "api/v8-object-unittest.cc",
210
    "base/address-region-unittest.cc",
jochen's avatar
jochen committed
211 212 213 214 215 216 217 218 219
    "base/atomic-utils-unittest.cc",
    "base/bits-unittest.cc",
    "base/cpu-unittest.cc",
    "base/division-by-constant-unittest.cc",
    "base/flags-unittest.cc",
    "base/functional-unittest.cc",
    "base/ieee754-unittest.cc",
    "base/iterator-unittest.cc",
    "base/logging-unittest.cc",
220
    "base/macros-unittest.cc",
221
    "base/ostreams-unittest.cc",
jochen's avatar
jochen committed
222 223 224 225 226
    "base/platform/condition-variable-unittest.cc",
    "base/platform/mutex-unittest.cc",
    "base/platform/platform-unittest.cc",
    "base/platform/semaphore-unittest.cc",
    "base/platform/time-unittest.cc",
227
    "base/region-allocator-unittest.cc",
jochen's avatar
jochen committed
228
    "base/sys-info-unittest.cc",
229
    "base/template-utils-unittest.cc",
230
    "base/threaded-list-unittest.cc",
jochen's avatar
jochen committed
231
    "base/utils/random-number-generator-unittest.cc",
232
    "base/vector-unittest.cc",
233
    "base/vlq-base64-unittest.cc",
234
    "base/vlq-unittest.cc",
235
    "codegen/aligned-slot-allocator-unittest.cc",
Yang Guo's avatar
Yang Guo committed
236 237 238 239
    "codegen/code-stub-assembler-unittest.cc",
    "codegen/code-stub-assembler-unittest.h",
    "codegen/register-configuration-unittest.cc",
    "codegen/source-position-table-unittest.cc",
240
    "compiler-dispatcher/compiler-dispatcher-unittest.cc",
241
    "compiler-dispatcher/optimizing-compile-dispatcher-unittest.cc",
242 243 244 245 246
    "compiler/backend/instruction-selector-unittest.cc",
    "compiler/backend/instruction-selector-unittest.h",
    "compiler/backend/instruction-sequence-unittest.cc",
    "compiler/backend/instruction-sequence-unittest.h",
    "compiler/backend/instruction-unittest.cc",
jochen's avatar
jochen committed
247
    "compiler/branch-elimination-unittest.cc",
248
    "compiler/bytecode-analysis-unittest.cc",
jochen's avatar
jochen committed
249 250 251 252
    "compiler/checkpoint-elimination-unittest.cc",
    "compiler/common-operator-reducer-unittest.cc",
    "compiler/common-operator-unittest.cc",
    "compiler/compiler-test-utils.h",
253
    "compiler/constant-folding-reducer-unittest.cc",
jochen's avatar
jochen committed
254 255
    "compiler/control-equivalence-unittest.cc",
    "compiler/control-flow-optimizer-unittest.cc",
256
    "compiler/csa-load-elimination-unittest.cc",
jochen's avatar
jochen committed
257
    "compiler/dead-code-elimination-unittest.cc",
258
    "compiler/decompression-optimizer-unittest.cc",
jochen's avatar
jochen committed
259 260
    "compiler/diamond-unittest.cc",
    "compiler/effect-control-linearizer-unittest.cc",
261
    "compiler/frame-unittest.cc",
jochen's avatar
jochen committed
262 263 264 265 266
    "compiler/graph-reducer-unittest.cc",
    "compiler/graph-reducer-unittest.h",
    "compiler/graph-trimmer-unittest.cc",
    "compiler/graph-unittest.cc",
    "compiler/graph-unittest.h",
267
    "compiler/js-call-reducer-unittest.cc",
jochen's avatar
jochen committed
268 269
    "compiler/js-create-lowering-unittest.cc",
    "compiler/js-intrinsic-lowering-unittest.cc",
270
    "compiler/js-native-context-specialization-unittest.cc",
jochen's avatar
jochen committed
271 272 273 274 275 276 277 278 279 280 281 282 283 284
    "compiler/js-operator-unittest.cc",
    "compiler/js-typed-lowering-unittest.cc",
    "compiler/linkage-tail-call-unittest.cc",
    "compiler/load-elimination-unittest.cc",
    "compiler/loop-peeling-unittest.cc",
    "compiler/machine-operator-reducer-unittest.cc",
    "compiler/machine-operator-unittest.cc",
    "compiler/node-cache-unittest.cc",
    "compiler/node-matchers-unittest.cc",
    "compiler/node-properties-unittest.cc",
    "compiler/node-test-utils.cc",
    "compiler/node-test-utils.h",
    "compiler/node-unittest.cc",
    "compiler/opcodes-unittest.cc",
285
    "compiler/persistent-unittest.cc",
286
    "compiler/redundancy-elimination-unittest.cc",
287
    "compiler/regalloc/live-range-unittest.cc",
288
    "compiler/regalloc/mid-tier-register-allocator-unittest.cc",
289 290
    "compiler/regalloc/move-optimizer-unittest.cc",
    "compiler/regalloc/register-allocator-unittest.cc",
jochen's avatar
jochen committed
291 292 293
    "compiler/schedule-unittest.cc",
    "compiler/scheduler-rpo-unittest.cc",
    "compiler/scheduler-unittest.cc",
294
    "compiler/simplified-lowering-unittest.cc",
jochen's avatar
jochen committed
295 296 297 298 299 300
    "compiler/simplified-operator-reducer-unittest.cc",
    "compiler/simplified-operator-unittest.cc",
    "compiler/state-values-utils-unittest.cc",
    "compiler/typed-optimization-unittest.cc",
    "compiler/typer-unittest.cc",
    "compiler/value-numbering-reducer-unittest.cc",
301
    "compiler/zone-stats-unittest.cc",
Yang Guo's avatar
Yang Guo committed
302
    "date/date-cache-unittest.cc",
303
    "debug/debug-property-iterator-unittest.cc",
Yang Guo's avatar
Yang Guo committed
304 305 306
    "diagnostics/eh-frame-iterator-unittest.cc",
    "diagnostics/eh-frame-writer-unittest.cc",
    "execution/microtask-queue-unittest.cc",
307
    "heap/allocation-observer-unittest.cc",
308
    "heap/barrier-unittest.cc",
309
    "heap/bitmap-test-utils.h",
jochen's avatar
jochen committed
310
    "heap/bitmap-unittest.cc",
311
    "heap/code-object-registry-unittest.cc",
312
    "heap/embedder-tracing-unittest.cc",
jochen's avatar
jochen committed
313 314
    "heap/gc-idle-time-handler-unittest.cc",
    "heap/gc-tracer-unittest.cc",
315
    "heap/heap-controller-unittest.cc",
jochen's avatar
jochen committed
316
    "heap/heap-unittest.cc",
317
    "heap/heap-utils.cc",
318
    "heap/heap-utils.h",
319
    "heap/index-generator-unittest.cc",
320
    "heap/list-unittest.cc",
321
    "heap/local-factory-unittest.cc",
322
    "heap/local-heap-unittest.cc",
jochen's avatar
jochen committed
323
    "heap/marking-unittest.cc",
324
    "heap/marking-worklist-unittest.cc",
jochen's avatar
jochen committed
325
    "heap/memory-reducer-unittest.cc",
326
    "heap/object-stats-unittest.cc",
327
    "heap/persistent-handles-unittest.cc",
328
    "heap/safepoint-unittest.cc",
jochen's avatar
jochen committed
329
    "heap/slot-set-unittest.cc",
330
    "heap/spaces-unittest.cc",
331
    "heap/traced-reference-unittest.cc",
332
    "heap/unified-heap-snapshot-unittest.cc",
333
    "heap/unified-heap-unittest.cc",
334 335
    "heap/unified-heap-utils.cc",
    "heap/unified-heap-utils.h",
336
    "heap/unmapper-unittest.cc",
337
    "heap/worklist-unittest.cc",
jochen's avatar
jochen committed
338 339
    "interpreter/bytecode-array-builder-unittest.cc",
    "interpreter/bytecode-array-iterator-unittest.cc",
340
    "interpreter/bytecode-array-random-iterator-unittest.cc",
341
    "interpreter/bytecode-array-writer-unittest.cc",
jochen's avatar
jochen committed
342
    "interpreter/bytecode-decoder-unittest.cc",
343
    "interpreter/bytecode-node-unittest.cc",
344
    "interpreter/bytecode-operands-unittest.cc",
jochen's avatar
jochen committed
345 346
    "interpreter/bytecode-register-allocator-unittest.cc",
    "interpreter/bytecode-register-optimizer-unittest.cc",
347
    "interpreter/bytecode-source-info-unittest.cc",
348
    "interpreter/bytecode-utils.h",
jochen's avatar
jochen committed
349 350 351 352
    "interpreter/bytecodes-unittest.cc",
    "interpreter/constant-array-builder-unittest.cc",
    "interpreter/interpreter-assembler-unittest.cc",
    "interpreter/interpreter-assembler-unittest.h",
353
    "libplatform/default-job-unittest.cc",
jochen's avatar
jochen committed
354
    "libplatform/default-platform-unittest.cc",
355
    "libplatform/default-worker-threads-task-runner-unittest.cc",
jochen's avatar
jochen committed
356 357
    "libplatform/task-queue-unittest.cc",
    "libplatform/worker-thread-unittest.cc",
Yang Guo's avatar
Yang Guo committed
358 359 360 361
    "logging/counters-unittest.cc",
    "numbers/bigint-unittest.cc",
    "numbers/conversions-unittest.cc",
    "objects/object-unittest.cc",
362
    "objects/osr-optimized-code-cache-unittest.cc",
Yang Guo's avatar
Yang Guo committed
363
    "objects/value-serializer-unittest.cc",
364
    "objects/weakarraylist-unittest.cc",
365
    "parser/ast-value-unittest.cc",
366
    "parser/preparser-unittest.cc",
Yang Guo's avatar
Yang Guo committed
367
    "profiler/strings-storage-unittest.cc",
368
    "regexp/regexp-unittest.cc",
369
    "regress/regress-crbug-1041240-unittest.cc",
370
    "regress/regress-crbug-1056054-unittest.cc",
371
    "regress/regress-crbug-938251-unittest.cc",
jochen's avatar
jochen committed
372
    "run-all-unittests.cc",
373
    "runtime/runtime-debug-unittest.cc",
Yang Guo's avatar
Yang Guo committed
374 375 376 377
    "strings/char-predicates-unittest.cc",
    "strings/unicode-unittest.cc",
    "tasks/background-compile-task-unittest.cc",
    "tasks/cancelable-tasks-unittest.cc",
378 379
    "test-helpers.cc",
    "test-helpers.h",
jochen's avatar
jochen committed
380 381
    "test-utils.cc",
    "test-utils.h",
382
    "torque/earley-parser-unittest.cc",
383 384
    "torque/ls-json-unittest.cc",
    "torque/ls-message-unittest.cc",
385
    "torque/ls-server-data-unittest.cc",
386
    "torque/torque-unittest.cc",
387
    "torque/torque-utils-unittest.cc",
Yang Guo's avatar
Yang Guo committed
388 389 390 391
    "utils/allocation-unittest.cc",
    "utils/detachable-vector-unittest.cc",
    "utils/locked-queue-unittest.cc",
    "utils/utils-unittest.cc",
392
    "zone/zone-allocator-unittest.cc",
393
    "zone/zone-chunk-list-unittest.cc",
394
    "zone/zone-unittest.cc",
jochen's avatar
jochen committed
395
  ]
machenbach's avatar
machenbach committed
396

397 398 399 400
  if (v8_enable_runtime_call_stats) {
    sources += [ "logging/runtime-call-stats-unittest.cc" ]
  }

401 402
  if (v8_enable_webassembly) {
    sources += [
403
      "../../test/common/wasm/wasm-macro-gen.h",
404 405
      "asmjs/asm-scanner-unittest.cc",
      "asmjs/asm-types-unittest.cc",
406 407
      "compiler/int64-lowering-unittest.cc",
      "objects/wasm-backing-store-unittest.cc",
408 409 410 411
      "wasm/control-transfer-unittest.cc",
      "wasm/decoder-unittest.cc",
      "wasm/function-body-decoder-unittest.cc",
      "wasm/leb-helper-unittest.cc",
412
      "wasm/liftoff-register-unittests.cc",
413 414 415 416 417 418 419 420 421 422 423
      "wasm/loop-assignment-analysis-unittest.cc",
      "wasm/module-decoder-memory64-unittest.cc",
      "wasm/module-decoder-unittest.cc",
      "wasm/simd-shuffle-unittest.cc",
      "wasm/streaming-decoder-unittest.cc",
      "wasm/subtyping-unittest.cc",
      "wasm/wasm-code-manager-unittest.cc",
      "wasm/wasm-compiler-unittest.cc",
      "wasm/wasm-macro-gen-unittest.cc",
      "wasm/wasm-module-builder-unittest.cc",
      "wasm/wasm-module-sourcemap-unittest.cc",
424 425 426
    ]
  }

427 428 429 430
  if (v8_enable_wasm_gdb_remote_debugging) {
    sources += [ "wasm/wasm-gdbserver-unittest.cc" ]
  }

431 432 433 434
  if (v8_enable_conservative_stack_scanning) {
    sources += [ "heap/object-start-bitmap-unittest.cc" ]
  }

435
  if (v8_current_cpu == "arm") {
436 437 438 439
    sources += [
      "assembler/turbo-assembler-arm-unittest.cc",
      "compiler/arm/instruction-selector-arm-unittest.cc",
    ]
440
  } else if (v8_current_cpu == "arm64") {
441 442 443 444
    sources += [
      "assembler/turbo-assembler-arm64-unittest.cc",
      "compiler/arm64/instruction-selector-arm64-unittest.cc",
    ]
445
  } else if (v8_current_cpu == "x86") {
446 447 448 449
    sources += [
      "assembler/turbo-assembler-ia32-unittest.cc",
      "compiler/ia32/instruction-selector-ia32-unittest.cc",
    ]
450
  } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
451 452 453 454
    sources += [
      "assembler/turbo-assembler-mips-unittest.cc",
      "compiler/mips/instruction-selector-mips-unittest.cc",
    ]
455
  } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
456 457 458 459
    sources += [
      "assembler/turbo-assembler-mips64-unittest.cc",
      "compiler/mips64/instruction-selector-mips64-unittest.cc",
    ]
Brice Dobry's avatar
Brice Dobry committed
460 461 462 463 464
  } else if (v8_current_cpu == "riscv64") {
    sources += [
      "assembler/turbo-assembler-riscv64-unittest.cc",
      "compiler/riscv64/instruction-selector-riscv64-unittest.cc",
    ]
465
  } else if (v8_current_cpu == "x64") {
466 467 468 469
    sources += [
      "assembler/turbo-assembler-x64-unittest.cc",
      "compiler/x64/instruction-selector-x64-unittest.cc",
    ]
470 471 472
    if (v8_enable_webassembly) {
      sources += [ "wasm/trap-handler-x64-unittest.cc" ]
    }
473
  } else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
474 475 476 477
    sources += [
      "assembler/turbo-assembler-ppc-unittest.cc",
      "compiler/ppc/instruction-selector-ppc-unittest.cc",
    ]
478
  } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
479 480 481 482
    sources += [
      "assembler/turbo-assembler-s390-unittest.cc",
      "compiler/s390/instruction-selector-s390-unittest.cc",
    ]
machenbach's avatar
machenbach committed
483 484
  }

485
  if (is_posix && v8_enable_webassembly) {
486 487 488
    sources += [ "wasm/trap-handler-posix-unittest.cc" ]
  }

489
  if (is_win && v8_enable_webassembly) {
490 491 492
    sources += [ "wasm/trap-handler-win-unittest.cc" ]
  }

493 494 495 496 497 498
  # Include this test only on arm64 simulator builds on x64 on Linux.
  if (current_cpu == "x64" && v8_current_cpu == "arm64" && is_linux &&
      v8_enable_webassembly) {
    sources += [ "wasm/trap-handler-simulator-unittest.cc" ]
  }

499
  configs = [
500
    "../..:cppgc_base_config",
machenbach's avatar
machenbach committed
501 502 503 504 505
    "../..:external_config",
    "../..:internal_config_base",
  ]

  deps = [
506
    "..:common_test_headers",
507
    "../..:v8_for_testing",
508
    "../..:v8_libbase",
machenbach's avatar
machenbach committed
509
    "../..:v8_libplatform",
510
    "../..:v8_shared_internal_headers",
511
    "../../third_party/inspector_protocol:crdtp_test",
machenbach's avatar
machenbach committed
512
    "//build/win:default_exe_manifest",
513 514
    "//testing/gmock",
    "//testing/gtest",
machenbach's avatar
machenbach committed
515 516
  ]

517 518 519 520
  if (v8_enable_webassembly) {
    deps += [ "../..:wasm_test_common" ]
  }

521 522 523 524 525 526
  if (is_win) {
    # This warning is benignly triggered by the U16 and U32 macros in
    # bytecode-utils.h.
    # C4309: 'static_cast': truncation of constant value
    cflags = [ "/wd4309" ]
  }
machenbach's avatar
machenbach committed
527
}