Home
last modified time | relevance | path

Searched refs:ParseDictionaryFile (Results 1 – 4 of 4) sorted by relevance

/third_party/json/tests/thirdparty/Fuzzer/test/
DFuzzerUnittest.cpp552 TEST(FuzzerDictionary, ParseDictionaryFile) { in TEST() argument
554 EXPECT_FALSE(ParseDictionaryFile("zzz\n", &Units)); in TEST()
555 EXPECT_FALSE(ParseDictionaryFile("", &Units)); in TEST()
556 EXPECT_TRUE(ParseDictionaryFile("\n", &Units)); in TEST()
558 EXPECT_TRUE(ParseDictionaryFile("#zzzz a b c d\n", &Units)); in TEST()
560 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\n", &Units)); in TEST()
562 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\n", &Units)); in TEST()
564 EXPECT_TRUE(ParseDictionaryFile(" #zzzz\naaa=\"aa\"", &Units)); in TEST()
567 ParseDictionaryFile(" #zzzz\naaa=\"aa\"\n\nabc=\"abc\"", &Units)); in TEST()
/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerDictionary.h120 bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units);
DFuzzerUtil.cpp127 bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) { in ParseDictionaryFile() function
DFuzzerDriver.cpp425 if (!ParseDictionaryFile(FileToString(Flags.dict), &Dictionary)) in FuzzerDriver()