build: add Chromium tests targets (#14172)
* chore: properly format BUILD.gn * build: gn: add targets for Chromium tests Those should only include test targets Electron cares about.
This commit is contained in:
parent
c9e704863e
commit
2f352d2517
1 changed files with 79 additions and 1 deletions
80
BUILD.gn
80
BUILD.gn
|
@ -201,7 +201,6 @@ static_library("electron_lib") {
|
||||||
deps = [
|
deps = [
|
||||||
":atom_js2c",
|
":atom_js2c",
|
||||||
"brightray",
|
"brightray",
|
||||||
"//third_party/electron_node:node_lib",
|
|
||||||
"native_mate",
|
"native_mate",
|
||||||
"//base",
|
"//base",
|
||||||
"//base:i18n",
|
"//base:i18n",
|
||||||
|
@ -225,6 +224,7 @@ static_library("electron_lib") {
|
||||||
"//skia",
|
"//skia",
|
||||||
"//third_party/WebKit/public:blink",
|
"//third_party/WebKit/public:blink",
|
||||||
"//third_party/boringssl",
|
"//third_party/boringssl",
|
||||||
|
"//third_party/electron_node:node_lib",
|
||||||
"//third_party/leveldatabase",
|
"//third_party/leveldatabase",
|
||||||
"//third_party/libyuv",
|
"//third_party/libyuv",
|
||||||
"//third_party/webrtc_overrides:init_webrtc",
|
"//third_party/webrtc_overrides:init_webrtc",
|
||||||
|
@ -653,3 +653,81 @@ if (is_mac) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group("electron_tests") {
|
||||||
|
testonly = true
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
":blink_unittests",
|
||||||
|
":chromium_browsertests",
|
||||||
|
":chromium_unittests",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
group("blink_unittests") {
|
||||||
|
testonly = true
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
"//third_party/WebKit/public:all_blink",
|
||||||
|
"//third_party/WebKit/public:test_support",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
group("chromium_unittests") {
|
||||||
|
testonly = true
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
"//base:base_unittests",
|
||||||
|
"//cc:cc_unittests",
|
||||||
|
"//cc/blink:cc_blink_unittests",
|
||||||
|
"//content/test:content_unittests",
|
||||||
|
"//crypto:crypto_unittests",
|
||||||
|
"//device:device_unittests",
|
||||||
|
"//gin:gin_unittests",
|
||||||
|
"//gpu:gpu_unittests",
|
||||||
|
"//gpu/ipc/service:gpu_ipc_service_unittests",
|
||||||
|
"//ipc:ipc_tests",
|
||||||
|
"//media:media_unittests",
|
||||||
|
"//media/capture:capture_unittests",
|
||||||
|
"//media/midi:midi_unittests",
|
||||||
|
"//media/mojo:media_mojo_unittests",
|
||||||
|
"//mojo:mojo_unittests",
|
||||||
|
"//mojo/common:mojo_common_unittests",
|
||||||
|
"//net:net_unittests",
|
||||||
|
"//ppapi:ppapi_unittests",
|
||||||
|
"//printing:printing_unittests",
|
||||||
|
"//skia:skia_unittests",
|
||||||
|
"//sql:sql_unittests",
|
||||||
|
"//storage:storage_unittests",
|
||||||
|
"//third_party/angle/src/tests:angle_unittests",
|
||||||
|
"//third_party/leveldatabase:env_chromium_unittests",
|
||||||
|
"//tools/gn:gn_unittests",
|
||||||
|
"//ui/base:ui_base_unittests",
|
||||||
|
"//ui/compositor:compositor_unittests",
|
||||||
|
"//ui/display:display_unittests",
|
||||||
|
"//ui/events:events_unittests",
|
||||||
|
"//ui/gl:gl_unittests",
|
||||||
|
"//url:url_unittests",
|
||||||
|
"//url/ipc:url_ipc_unittests",
|
||||||
|
"//v8/test/unittests:unittests",
|
||||||
|
]
|
||||||
|
|
||||||
|
if (is_linux) {
|
||||||
|
deps += [
|
||||||
|
"//net:disk_cache_memory_test",
|
||||||
|
"//sandbox/linux:sandbox_linux_unittests",
|
||||||
|
]
|
||||||
|
|
||||||
|
if (use_dbus) {
|
||||||
|
deps += [ "//dbus:dbus_unittests" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
group("chromium_browsertests") {
|
||||||
|
testonly = true
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
"//content/test:content_browsertests",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue