Lines Matching refs:fuzz

37 static void add_white(Fuzz* fuzz, SkString* atom) {  in add_white()  argument
42 int reps = fuzz->nextRangeU(0, 2); in add_white()
44 int index = fuzz->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white()
51 static void add_comma(Fuzz* fuzz, SkString* atom) { in add_comma() argument
57 add_white(fuzz, atom); in add_comma()
58 if (fuzz->nextBool()) { in add_comma()
62 add_white(fuzz, atom); in add_comma()
66 static void add_some_white(Fuzz* fuzz, SkString* atom) { in add_some_white() argument
69 add_white(fuzz, atom); in add_some_white()
73 SkString MakeRandomParsePathPiece(Fuzz* fuzz) { in MakeRandomParsePathPiece() argument
75 int index = fuzz->nextRangeU(0, (int) SK_ARRAY_COUNT(gLegal) - 1); in MakeRandomParsePathPiece()
77 gEasy ? atom.append("\n") : add_white(fuzz, &atom); in MakeRandomParsePathPiece()
78 char symbol = legal.fSymbol | (fuzz->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
80 int reps = fuzz->nextRangeU(1, 3); in MakeRandomParsePathPiece()
83 SkScalar coord = fuzz->nextRangeF(0, 100); in MakeRandomParsePathPiece()
84 add_white(fuzz, &atom); in MakeRandomParsePathPiece()
87 add_comma(fuzz, &atom); in MakeRandomParsePathPiece()
89 add_some_white(fuzz, &atom); in MakeRandomParsePathPiece()
92 atom.appendScalar(fuzz->nextRangeF(-720, 720)); in MakeRandomParsePathPiece()
93 add_comma(fuzz, &atom); in MakeRandomParsePathPiece()
94 atom.appendU32(fuzz->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
95 add_comma(fuzz, &atom); in MakeRandomParsePathPiece()
96 atom.appendU32(fuzz->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
97 add_comma(fuzz, &atom); in MakeRandomParsePathPiece()
104 DEF_FUZZ(ParsePath, fuzz) { in DEF_FUZZ() argument
107 uint32_t count = fuzz->nextRangeU(0, 40); in DEF_FUZZ()
109 spec.append(MakeRandomParsePathPiece(fuzz)); in DEF_FUZZ()
113 fuzz->signalBug(); in DEF_FUZZ()