Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
IsClosedSingleContourTest.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
9#include "tests/Test.h"
10
11DEF_TEST(IsClosedSingleContourTest, reporter) {
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 DEF_TEST(name, reporter)
Definition Test.h:312
#define REPORTER_ASSERT(r, cond,...)
Definition Test.h:286
static bool IsClosedSingleContour(const SkPath &path)
Definition SkPathPriv.h:66