Add unit-test target stubs.

This commit is contained in:
Chinmay Garde
2021-07-05 15:05:01 -07:00
committed by Dan Field
parent 98ba1675d3
commit a8f9184ffb
4 changed files with 30 additions and 3 deletions

View File

@@ -23,12 +23,15 @@ executable("impeller_unittests") {
testonly = true
deps = [
"base:base_unittests",
"compiler:compiler_unittests",
"compositor:compositor_unittests",
"entity:entity_unittests",
"fixtures",
"geometry:geometry_unittests",
"image:image_unittests",
"playground",
"primitives:primitives_unittests",
"shader_glue:shader_glue_unittests",
]
}

View File

@@ -5,9 +5,6 @@
import("../tools/impeller.gni")
impeller_component("base") {
# Only the umbrella header may be imported.
public = [ "base.h" ]
sources = [
"base.h",
"config.h",
@@ -15,3 +12,12 @@ impeller_component("base") {
"strings.h",
]
}
impeller_component("base_unittests") {
testonly = true
sources = []
deps = [
":base",
"//flutter/testing",
]
}

View File

@@ -16,3 +16,12 @@ impeller_component("image") {
public_deps = [ "../geometry" ]
}
impeller_component("image_unittests") {
testonly = true
sources = []
deps = [
":image",
"//flutter/testing",
]
}

View File

@@ -20,3 +20,12 @@ impeller_component("shader_glue") {
deps = [ "../geometry" ]
}
impeller_component("shader_glue_unittests") {
testonly = true
sources = []
deps = [
":shader_glue",
"//flutter/testing",
]
}