Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: Source/platform/BUILD.gn

Issue 317583004: GN: blink_platform test targets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/BUILD.gn
diff --git a/Source/platform/BUILD.gn b/Source/platform/BUILD.gn
index 180f26d108993c90427f3aae19e309d3126ef773..237762a2a323ccd4fc9497e645658d87f92c64c3 100644
--- a/Source/platform/BUILD.gn
+++ b/Source/platform/BUILD.gn
@@ -11,6 +11,11 @@ platform_gypi = exec_script(
[ rebase_path("blink_platform.gypi") ],
"scope",
[ "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 = [
"graphics/cpu/arm/WebGLImageConversionNEON.h",
"graphics/cpu/arm/filters/FEBlendNEON.h",
@@ -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") {
source_set("blink_arm_neon") {
sources = blink_platform_neon_files
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698