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

Commit ddea1bb

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

File tree

4 files changed

+782
-712
lines changed

4 files changed

+782
-712
lines changed

impeller/aiks/BUILD.gn

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

70-
impeller_component("aiks_unittests") {
70+
# All the source code to compile aiks_unittests.cc and its derivatives.
71+
source_set("aiks_unittests_source") {
7172
testonly = true
72-
7373
sources = [
74+
"aiks_gradient_unittests.cc",
7475
"aiks_unittests.cc",
75-
"canvas_recorder_unittests.cc",
76-
"canvas_unittests.cc",
76+
"aiks_unittests.h",
7777
"testing/context_mock.h",
7878
"testing/context_spy.cc",
7979
"testing/context_spy.h",
80+
]
81+
deps = [
82+
":aiks",
83+
":aiks_playground",
84+
"//flutter/impeller/geometry:geometry_asserts",
85+
"//flutter/impeller/golden_tests:golden_playground_test",
86+
"//flutter/impeller/playground",
87+
"//flutter/impeller/playground:playground_test",
88+
"//flutter/impeller/scene",
89+
"//flutter/impeller/typographer/backends/stb:typographer_stb_backend",
90+
"//flutter/testing:testing_lib",
91+
"//flutter/third_party/imgui",
92+
"//flutter/third_party/txt",
93+
]
94+
}
95+
96+
impeller_component("aiks_unittests") {
97+
testonly = true
98+
99+
sources = [
100+
"canvas_recorder_unittests.cc",
101+
"canvas_unittests.cc",
80102
"trace_serializer_unittests.cc",
81103
]
82104
deps = [
83105
":aiks",
84106
":aiks_playground",
107+
":aiks_unittests_source",
85108
"//flutter/impeller/geometry:geometry_asserts",
86109
"//flutter/impeller/golden_tests:golden_playground_test",
87110
"//flutter/impeller/playground:playground_test",
@@ -106,14 +129,14 @@ impeller_component("aiks_unittests_golden") {
106129
]
107130

108131
sources = [
109-
"aiks_unittests.cc",
110132
"testing/context_mock.h",
111133
"testing/context_spy.cc",
112134
"testing/context_spy.h",
113135
]
114136
deps = [
115137
":aiks",
116138
":aiks_playground",
139+
":aiks_unittests_source",
117140
"//flutter/impeller/geometry:geometry_asserts",
118141
"//flutter/impeller/golden_tests:golden_playground_test",
119142
"//flutter/impeller/playground:playground_test",

0 commit comments

Comments
 (0)