1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2012 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci#include "src/pathops/SkPathOpsCubic.h" 8cb93a386Sopenharmony_ci#include "tests/PathOpsTestCommon.h" 9cb93a386Sopenharmony_ci#include "tests/Test.h" 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_cistatic const CubicPts hullTests[] = { 12cb93a386Sopenharmony_ci{{{2.6250000819563866, 2.3750000223517418}, {2.833333432674408, 2.3333333432674408}, {3.1111112236976624, 2.3333333134651184}, {3.4074075222015381, 2.3333332538604736}}}, 13cb93a386Sopenharmony_ci}; 14cb93a386Sopenharmony_ci 15cb93a386Sopenharmony_cistatic const size_t hullTests_count = SK_ARRAY_COUNT(hullTests); 16cb93a386Sopenharmony_ci 17cb93a386Sopenharmony_ciDEF_TEST(PathOpsCubicHull, reporter) { 18cb93a386Sopenharmony_ci for (size_t index = 0; index < hullTests_count; ++index) { 19cb93a386Sopenharmony_ci const CubicPts& c = hullTests[index]; 20cb93a386Sopenharmony_ci SkDCubic cubic; 21cb93a386Sopenharmony_ci cubic.debugSet(c.fPts); 22cb93a386Sopenharmony_ci char order[4]; 23cb93a386Sopenharmony_ci cubic.convexHull(order); 24cb93a386Sopenharmony_ci } 25cb93a386Sopenharmony_ci} 26