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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# Copyright 2017 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/jumbo.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")
import("//third_party/WebKit/Source/bindings/bindings.gni")
import("//third_party/WebKit/Source/config.gni")
import("//third_party/WebKit/Source/core/core.gni")
import("//third_party/WebKit/Source/modules/modules.gni")
visibility = [ "//third_party/WebKit/*" ]
component("controller") {
output_name = "blink_controller"
deps = [
"//skia",
"//third_party/WebKit/Source/core",
"//third_party/WebKit/Source/modules",
"//third_party/WebKit/Source/platform",
"//v8",
]
configs += [
"//build/config/compiler:wexit_time_destructors",
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
"//third_party/WebKit/Source:non_test_config",
"//third_party/WebKit/Source/core:blink_core_pch",
]
defines = [ "BLINK_CONTROLLER_IMPLEMENTATION=1" ]
sources = [
"BlinkInitializer.cpp",
"ControllerExport.h",
]
if (is_mac) {
libs = [
"AppKit.framework",
"Foundation.framework",
]
}
if (remove_webcore_debug_symbols) {
configs -= [ "//build/config/compiler:default_symbols" ]
configs += remove_webcore_symbols_config
}
}
group("webkit_unit_tests_data") {
data = [
"../core/testing/data/",
"../core/paint/test_data/",
]
}
test("webkit_unit_tests") {
deps = [
":webkit_unit_tests_sources",
]
data_deps = [
":webkit_unit_tests_data",
"//content/shell:pak",
]
if (is_android) {
deps += [
"//base:base_java",
"//content/public/android:content_java",
"//content/shell/android:content_shell_assets",
"//net/android:net_java",
]
}
}
jumbo_source_set("webkit_unit_tests_sources") {
visibility = [] # Allow re-assignment of list.
visibility = [ "*" ]
testonly = true
sources = [
"tests/RunAllTests.cpp",
]
sources += bindings_unittest_files
deps = [
":controller",
"//base",
"//base:i18n",
"//base/test:test_support",
"//content/test:test_support",
"//gpu:test_support",
"//services/device/public/interfaces:interfaces_blink",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/core:unit_tests",
"//third_party/WebKit/Source/modules:unit_tests",
"//third_party/WebKit/Source/modules/exported:test_support",
"//third_party/WebKit/Source/platform:test_support",
"//third_party/WebKit/Source/platform:unit_tests",
"//third_party/WebKit/Source/platform/wtf",
"//third_party/libwebp",
"//third_party/zlib",
"//url",
"//v8",
]
configs += [
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
"//third_party/WebKit/Source/core:blink_core_pch",
]
}
|