Home
last modified time | relevance | path

Searched refs:ConsumeEnum (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzedDataProviderUnittest.cpp318 TEST(FuzzedDataProvider, ConsumeEnum) { in TEST() argument
331 EXPECT_EQ(Enum::Two, DataProv.ConsumeEnum<Enum>()); in TEST()
332 EXPECT_EQ(Enum::One, DataProv.ConsumeEnum<Enum>()); in TEST()
333 EXPECT_EQ(Enum::Five, DataProv.ConsumeEnum<Enum>()); in TEST()
334 EXPECT_EQ(Enum::Seven, DataProv.ConsumeEnum<Enum>()); in TEST()
335 EXPECT_EQ(Enum::Six, DataProv.ConsumeEnum<Enum>()); in TEST()
336 EXPECT_EQ(Enum::One, DataProv.ConsumeEnum<Enum>()); in TEST()
337 EXPECT_EQ(Enum::Three, DataProv.ConsumeEnum<Enum>()); in TEST()
338 EXPECT_EQ(Enum::Three, DataProv.ConsumeEnum<Enum>()); in TEST()
339 EXPECT_EQ(Enum::Five, DataProv.ConsumeEnum<Enum>()); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/fuzzer/tests/
DFuzzedDataProviderUnittest.cpp318 TEST(FuzzedDataProvider, ConsumeEnum) { in TEST() argument
331 EXPECT_EQ(Enum::Two, DataProv.ConsumeEnum<Enum>()); in TEST()
332 EXPECT_EQ(Enum::One, DataProv.ConsumeEnum<Enum>()); in TEST()
333 EXPECT_EQ(Enum::Five, DataProv.ConsumeEnum<Enum>()); in TEST()
334 EXPECT_EQ(Enum::Seven, DataProv.ConsumeEnum<Enum>()); in TEST()
335 EXPECT_EQ(Enum::Six, DataProv.ConsumeEnum<Enum>()); in TEST()
336 EXPECT_EQ(Enum::One, DataProv.ConsumeEnum<Enum>()); in TEST()
337 EXPECT_EQ(Enum::Three, DataProv.ConsumeEnum<Enum>()); in TEST()
338 EXPECT_EQ(Enum::Three, DataProv.ConsumeEnum<Enum>()); in TEST()
339 EXPECT_EQ(Enum::Five, DataProv.ConsumeEnum<Enum>()); in TEST()
[all …]
/external/oss-fuzz/projects/e2fsprogs/fuzz/
Dext2fs_read_bitmap_fuzzer.cc34 const FuzzerType f = stream.ConsumeEnum<FuzzerType>(); in LLVMFuzzerTestOneInput()
Dext2fs_image_read_write_fuzzer.cc38 const FuzzerType f = stream.ConsumeEnum<FuzzerType>(); in LLVMFuzzerTestOneInput()
/external/oss-fuzz/projects/pycryptodome/
Dpcd_aes_fuzzer.cc27 const KeySize keySize = stream.ConsumeEnum<KeySize>(); in LLVMFuzzerTestOneInput()
/external/pigweed/pw_tokenizer/
Ddetokenize_fuzzer.cc72 switch (provider.ConsumeEnum<DetokenizeBufferArgumentType>()) { in LLVMFuzzerTestOneInput()
Dtoken_database_fuzzer.cc77 switch (provider.ConsumeEnum<FuzzTestType>()) { in LLVMFuzzerTestOneInput()
/external/pigweed/pw_fuzzer/public/pw_fuzzer/
Dfuzzed_data_provider.h106 T ConsumeEnum() { in ConsumeEnum() function
/external/libbrillo/brillo/dbus/
Ddata_serialization_fuzzer.cc116 DataType curr_type = data_provider.ConsumeEnum<DataType>(); in LLVMFuzzerTestOneInput()
233 DataType curr_type = data_provider.ConsumeEnum<DataType>(); in LLVMFuzzerTestOneInput()
/external/llvm-project/compiler-rt/include/fuzzer/
DFuzzedDataProvider.h70 template <typename T> T ConsumeEnum();
291 template <typename T> T FuzzedDataProvider::ConsumeEnum() { in ConsumeEnum() function
/external/oss-fuzz/projects/leveldb/
Dfuzz_db.cc92 FuzzOp fuzz_op = fuzzed_data.ConsumeEnum<FuzzOp>(); in LLVMFuzzerTestOneInput()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/fuzzing/compiler-rt/include/fuzzer/
DFuzzedDataProvider.h184 template <typename T> T ConsumeEnum() { in ConsumeEnum() function
/external/pigweed/pw_protobuf/
Dencoder_fuzzer.cc153 switch (provider.ConsumeEnum<FieldType>()) { in LLVMFuzzerTestOneInput()
/external/protobuf/python/google/protobuf/
Dtext_format.py1058 value = tokenizer.ConsumeEnum(field)
1471 def ConsumeEnum(self, field): member in Tokenizer