1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 2020 The Chromium 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("//build/config/allocator.gni")
import("//testing/test.gni")
component("gc") {
sources = [
"core/gc_export.h",
"core/globals.h",
"core/page_memory.cc",
"core/page_memory.h",
"public/platform.h",
]
deps = [ "//base" ]
defines = [ "GC_IMPLEMENTATION=1" ]
}
source_set("test_support") {
testonly = true
sources = []
if (use_partition_alloc) {
sources += [
"test/base_allocator.cc",
"test/base_allocator.h",
]
}
deps = [
":gc",
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "core/page_memory_basic_test.cc" ]
if (use_partition_alloc) {
sources += [
"core/page_memory_test.cc",
"test/base_allocator_test.cc",
]
}
deps = [
":gc",
":test_support",
"//base",
"//testing/gtest",
]
}
# Convenience target to allow just building GC-related tests for local development.
test("gc_unittests") {
testonly = true
sources = [ "test/run_all_unittests.cc" ]
deps = [
":unit_tests",
"//testing/gtest",
]
}
|