Home
last modified time | relevance | path

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

/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMutateFns.cpp27 static VarInstance VarInstanceStubFromSpec(const VarSpec &var_spec) { in VarInstanceStubFromSpec() argument
29 if (var_spec.has_type()) { in VarInstanceStubFromSpec()
30 result.set_type(var_spec.type()); in VarInstanceStubFromSpec()
32 cerr << "VarInstance with no type field: " << var_spec.DebugString(); in VarInstanceStubFromSpec()
35 if (var_spec.has_name()) { in VarInstanceStubFromSpec()
36 result.set_name(var_spec.name()); in VarInstanceStubFromSpec()
38 if (var_spec.has_predefined_type()) { in VarInstanceStubFromSpec()
39 result.set_predefined_type(var_spec.predefined_type()); in VarInstanceStubFromSpec()
44 VarInstance ProtoFuzzerMutator::ArrayRandomGen(const VarSpec &var_spec) { in ArrayRandomGen() argument
45 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in ArrayRandomGen()
[all …]
DProtoFuzzerUtils.cpp108 const TypeSpec &var_spec, in ExtractPredefinedTypesFromVar() argument
110 predefined_types[var_spec.name()] = var_spec; in ExtractPredefinedTypesFromVar()
112 for (const auto &sub_var_spec : var_spec.sub_struct()) { in ExtractPredefinedTypesFromVar()
116 for (const auto &sub_var_spec : var_spec.sub_union()) { in ExtractPredefinedTypesFromVar()
175 for (const auto &var_spec : comp_spec.attribute()) { in ExtractPredefinedTypes() local
176 ExtractPredefinedTypesFromVar(var_spec, predefined_types); in ExtractPredefinedTypes()
178 for (const auto &var_spec : comp_spec.interface().attribute()) { in ExtractPredefinedTypes() local
179 ExtractPredefinedTypesFromVar(var_spec, predefined_types); in ExtractPredefinedTypes()
DProtoFuzzerMutator.cpp41 [](const VariableSpecificationMessage &var_spec) { in ProtoFuzzerMutator() argument
42 return VariableSpecificationMessage{var_spec}; in ProtoFuzzerMutator()
163 for (const auto &var_spec : func_spec.arg()) { in RandomGen() local
164 VarInstance rand_var_spec = RandomGen(var_spec); in RandomGen()
183 const VariableSpecificationMessage &var_spec, in Transform() argument
185 auto type = var_spec.type(); in Transform()
191 return transform_fn->second(var_spec); in Transform()
194 VarInstance ProtoFuzzerMutator::RandomGen(const VarSpec &var_spec) { in RandomGen() argument
195 return Transform(var_spec, random_gen_fns_); in RandomGen()
/test/vts/compilation_tools/vtsc/code_gen/fuzzer/
DHalHidlFuzzerCodeGen.cpp173 for (const auto &var_spec : func_spec.arg()) { in GetFuncArgTypes() local
174 string type = GetCppVariableType(var_spec); in GetFuncArgTypes()
175 types.emplace_back(GetCppVariableType(var_spec)); in GetFuncArgTypes()