Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
IsClosedSingleContourTest.cpp File Reference
#include "include/core/SkPathBuilder.h"
#include "src/core/SkPathPriv.h"
#include "tests/Test.h"

Go to the source code of this file.

Functions

 DEF_TEST (IsClosedSingleContourTest, reporter)
 

Function Documentation

◆ DEF_TEST()

DEF_TEST ( IsClosedSingleContourTest  ,
reporter   
)

Definition at line 11 of file IsClosedSingleContourTest.cpp.

11 {
14
15 p.close();
17
18 p.moveTo(10, 10);
19 p.close();
21
22 p.moveTo(10, 10);
23 p.lineTo(20, 20);
24 p.close();
26
27 p.moveTo(10, 10);
28 p.lineTo(20, 20);
29 p.quadTo(30, 30, 40, 40);
30 p.cubicTo(50, 50, 60, 60, 70, 70);
31 p.conicTo(30, 30, 40, 40, 0.5);
32 p.close();
34
35 p.moveTo(10, 10);
36 p.lineTo(20, 20);
37 p.lineTo(20, 30);
39
40 p.moveTo(10, 10);
41 p.lineTo(20, 20);
42 p.moveTo(10, 10);
43 p.lineTo(20, 30);
44 p.close();
46
47 p.moveTo(10, 10);
48 p.lineTo(20, 20);
49 p.close();
50 p.lineTo(20, 30);
51 p.close();
53}
reporter
#define REPORTER_ASSERT(r, cond,...)
Definition Test.h:286
static bool IsClosedSingleContour(const SkPath &path)
Definition SkPathPriv.h:66