Go to the source code of this file.
◆ HasDeletions
◆ DEF_TEST() [1/3]
DEF_TEST |
( |
BO_EventQueueBasic |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 51 of file EventQueueTest.cpp.
51 {
52 {
56 }
57 {
59 Point eventPoint = {100, 100};
60 q.insert({eventPoint,
Lower{} });
62 {
64 Event e = EventQueueTestingPeer::NextEvent(&
eq);
67 }
68 }
69 {
71 Point eventPoint = {100, 100};
72 q.insert({eventPoint,
Lower{}});
73 q.insert({eventPoint,
Lower{}});
75 {
76
78 auto [
p, _] = EventQueueTestingPeer::NextEvent(&
eq);
81 }
82 }
83 {
85 Point eventPoint1 = {100, 100};
86 Point eventPoint2 = {100, 101};
87
88 q.insert({eventPoint1,
Lower{}});
89 q.insert({eventPoint2,
Lower{}});
91 {
92
94 auto [
p, _] = EventQueueTestingPeer::NextEvent(&
eq);
96 }
97 {
98
100 auto [
p, _] = EventQueueTestingPeer::NextEvent(&
eq);
103 }
104 }
105 {
107 Segment s0 {{0, 0}, {100, 100}};
108 Segment s1 {{0, 0}, {-100, 100}};
112 {
114 Event e = EventQueueTestingPeer::NextEvent(&
eq);
118 Upper upper = std::get<Upper>(
e.type);
120 Event e2 = EventQueueTestingPeer::NextEvent(&
eq);
126 }
127 }
128}
static bool eq(const SkM44 &a, const SkM44 &b, float tol)
#define REPORTER_ASSERT(r, cond,...)
◆ DEF_TEST() [2/3]
DEF_TEST |
( |
BO_EventQueueHandlerInterface |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 191 of file EventQueueTest.cpp.
191 {
192 {
194 static constexpr Point eventPoint = {100, 100};
195 static constexpr Point endPoint = {200, 200};
196 static constexpr Segment s = {eventPoint, endPoint};
199
201
202
204 eq.handleNextEventPoint(&eh1);
205
207 eq.handleNextEventPoint(&eh2);
208
210 }
211
212 {
214 static constexpr Point b0 = {100, 100};
215 static constexpr Point e0 = {200, 200};
217 static constexpr Point b1 = {200, 100};
218 static constexpr Point e1 = {100, 200};
220 static constexpr Point crossingPoint = {150, 150};
221
222
226
228
230 eq.handleNextEventPoint(&eh1);
231
233 eq.handleNextEventPoint(&eh2);
234
236 eq.handleNextEventPoint(&eh3);
237
239 eq.handleNextEventPoint(&eh4);
240
242 eq.handleNextEventPoint(&eh5);
243
245 }
246}
◆ DEF_TEST() [3/3]
DEF_TEST |
( |
BO_EventQueueOrdering |
, |
|
|
reporter |
|
|
) |
| |
Definition at line 28 of file EventQueueTest.cpp.
28 {
29 {
31
32
33 Point eventPoint = {100, 100};
34 Segment s = {{100, 100}, {200, 200}};
36 Segment s0 = {{50, 50}, {150, 150}},
37 s1 = {{150, 50}, {50, 150}};
40
41
42 auto cursor = q.begin();
44 ++cursor;
46 ++cursor;
48 }
49}