Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 68f3b10

Browse files
committed
[Impeller] split out gradient tests from aiks_unittests
1 parent a565cea commit 68f3b10

File tree

4 files changed

+780
-712
lines changed

4 files changed

+780
-712
lines changed

impeller/aiks/BUILD.gn

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,42 @@ impeller_component("aiks_playground") {
6767
]
6868
}
6969

70-
impeller_component("aiks_unittests") {
70+
source_set("aiks_unittests_source") {
7171
testonly = true
72-
7372
sources = [
73+
"aiks_gradient_unittests.cc",
7474
"aiks_unittests.cc",
75-
"canvas_recorder_unittests.cc",
76-
"canvas_unittests.cc",
75+
"aiks_unittests.h",
7776
"testing/context_mock.h",
7877
"testing/context_spy.cc",
7978
"testing/context_spy.h",
79+
]
80+
deps = [
81+
":aiks",
82+
":aiks_playground",
83+
"//flutter/impeller/geometry:geometry_asserts",
84+
"//flutter/impeller/golden_tests:golden_playground_test",
85+
"//flutter/impeller/playground:playground_test",
86+
"//flutter/impeller/scene",
87+
"//flutter/impeller/typographer/backends/stb:typographer_stb_backend",
88+
"//flutter/testing:testing_lib",
89+
"//flutter/third_party/imgui",
90+
"//flutter/third_party/txt",
91+
]
92+
}
93+
94+
impeller_component("aiks_unittests") {
95+
testonly = true
96+
97+
sources = [
98+
"canvas_recorder_unittests.cc",
99+
"canvas_unittests.cc",
80100
"trace_serializer_unittests.cc",
81101
]
82102
deps = [
83103
":aiks",
84104
":aiks_playground",
105+
":aiks_unittests_source",
85106
"//flutter/impeller/geometry:geometry_asserts",
86107
"//flutter/impeller/golden_tests:golden_playground_test",
87108
"//flutter/impeller/playground:playground_test",
@@ -106,14 +127,14 @@ impeller_component("aiks_unittests_golden") {
106127
]
107128

108129
sources = [
109-
"aiks_unittests.cc",
110130
"testing/context_mock.h",
111131
"testing/context_spy.cc",
112132
"testing/context_spy.h",
113133
]
114134
deps = [
115135
":aiks",
116136
":aiks_playground",
137+
":aiks_unittests_source",
117138
"//flutter/impeller/geometry:geometry_asserts",
118139
"//flutter/impeller/golden_tests:golden_playground_test",
119140
"//flutter/impeller/playground:playground_test",

0 commit comments

Comments
 (0)