Commit 9782965a authored by jamesr@chromium.org's avatar jamesr@chromium.org

GN: blink_platform test targets

Adds the blink_heap_unittests and blink_platform_unittests target, bringing
Source/platform/BUILD.gn to parity with Source/platform/blink_platform_tests.gyp.
These fail to link on mac with missing symbols in libjpeg_turbo due to a missing
yasm target but should otherwise be functional.

Review URL: https://codereview.chromium.org/317583004

git-svn-id: svn://svn.chromium.org/blink/trunk@175447 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 08867cc3
...@@ -11,6 +11,11 @@ platform_gypi = exec_script( ...@@ -11,6 +11,11 @@ platform_gypi = exec_script(
[ rebase_path("blink_platform.gypi") ], [ rebase_path("blink_platform.gypi") ],
"scope", "scope",
[ "blink_platform.gypi" ]) [ "blink_platform.gypi" ])
heap_gypi = exec_script(
"//build/gypi_to_gn.py",
[ rebase_path("heap/blink_heap.gypi") ],
"scope",
[ "heap/blink_heap.gypi" ])
blink_platform_neon_files = [ blink_platform_neon_files = [
"graphics/cpu/arm/WebGLImageConversionNEON.h", "graphics/cpu/arm/WebGLImageConversionNEON.h",
"graphics/cpu/arm/filters/FEBlendNEON.h", "graphics/cpu/arm/filters/FEBlendNEON.h",
...@@ -332,6 +337,98 @@ component("platform") { ...@@ -332,6 +337,98 @@ component("platform") {
} }
} }
source_set("heap_run_all_tests") {
sources = [
"heap/RunAllTests.cpp"
]
configs += [
"//third_party/WebKit/Source/wtf:wtf_config",
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:non_test_config",
]
deps = [
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/wtf",
]
}
test("heap_unittests") {
output_name = "blink_heap_unittests"
sources = rebase_path(heap_gypi.platform_heap_test_files, ".", "heap")
configs += [
"//third_party/WebKit/Source:config",
]
deps = [
":heap_run_all_tests",
":platform",
"//base",
"//base/allocator",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/wtf",
"//third_party/WebKit/Source/wtf:unittest_helpers",
]
}
source_set("platform_run_all_tests") {
sources = [
"testing/RunAllTests.cpp"
]
configs += [
"//third_party/WebKit/Source/wtf:wtf_config",
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:non_test_config",
]
deps = [
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/wtf",
]
}
test("platform_unittests") {
output_name = "blink_platform_unittests"
sources = platform_gypi.platform_test_files
configs += [
"//third_party/WebKit/Source:config",
]
deps = [
":blink_common",
":heap_run_all_tests",
":platform",
"//base",
"//base/allocator",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/wtf",
"//third_party/WebKit/Source/wtf:unittest_helpers",
"//url",
]
defines = [
"INSIDE_BLINK",
]
include_dirs = [
"$root_gen_dir/blink",
]
}
if (cpu_arch == "arm") { if (cpu_arch == "arm") {
source_set("blink_arm_neon") { source_set("blink_arm_neon") {
sources = blink_platform_neon_files sources = blink_platform_neon_files
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment