Lines Matching refs:Mutator
340 bool enforce_utf8_strings, Mutator* mutator) in FieldMutator()
347 RepeatMutate(value, std::bind(&Mutator::MutateInt32, mutator_, _1)); in Mutate()
351 RepeatMutate(value, std::bind(&Mutator::MutateInt64, mutator_, _1)); in Mutate()
355 RepeatMutate(value, std::bind(&Mutator::MutateUInt32, mutator_, _1)); in Mutate()
359 RepeatMutate(value, std::bind(&Mutator::MutateUInt64, mutator_, _1)); in Mutate()
363 RepeatMutate(value, std::bind(&Mutator::MutateFloat, mutator_, _1)); in Mutate()
367 RepeatMutate(value, std::bind(&Mutator::MutateDouble, mutator_, _1)); in Mutate()
371 RepeatMutate(value, std::bind(&Mutator::MutateBool, mutator_, _1), 2); in Mutate()
376 std::bind(&Mutator::MutateEnum, mutator_, _1, value->count), in Mutate()
383 RepeatMutate(value, std::bind(&Mutator::MutateUtf8String, mutator_, _1, in Mutate()
386 RepeatMutate(value, std::bind(&Mutator::MutateString, mutator_, _1, in Mutate()
416 Mutator* mutator_;
424 Mutator* mutator) const { in ForType()
437 Mutator* mutator) const { in ForType()
450 Mutator::Mutator(RandomEngine* random) : random_(random) {} in Mutator() function in protobuf_mutator::Mutator
452 void Mutator::Mutate(Message* message, size_t size_increase_hint) { in Mutate()
487 void Mutator::CrossOver(const protobuf::Message& message1, in CrossOver()
507 void Mutator::CrossOverImpl(const protobuf::Message& message1, in CrossOverImpl()
580 void Mutator::InitializeAndTrim(Message* message, int max_depth) { in InitializeAndTrim()
615 int32_t Mutator::MutateInt32(int32_t value) { return FlipBit(value, random_); } in MutateInt32()
617 int64_t Mutator::MutateInt64(int64_t value) { return FlipBit(value, random_); } in MutateInt64()
619 uint32_t Mutator::MutateUInt32(uint32_t value) { in MutateUInt32()
623 uint64_t Mutator::MutateUInt64(uint64_t value) { in MutateUInt64()
627 float Mutator::MutateFloat(float value) { return FlipBit(value, random_); } in MutateFloat()
629 double Mutator::MutateDouble(double value) { return FlipBit(value, random_); } in MutateDouble()
631 bool Mutator::MutateBool(bool value) { return !value; } in MutateBool()
633 size_t Mutator::MutateEnum(size_t index, size_t item_count) { in MutateEnum()
638 std::string Mutator::MutateString(const std::string& value, in MutateString()
663 std::string Mutator::MutateUtf8String(const std::string& value, in MutateUtf8String()