Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index d7ebc4f1b6db03fa52c5f1c091754a584d241c7f..4690906ce4c1398933180e483c8e7ede48fcbf9d 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -509,21 +509,21 @@ struct FuzzTraits<base::ListValue> {
bool tmp;
p->GetBoolean(index, &tmp);
fuzzer->FuzzBool(&tmp);
- p->Set(index, new base::FundamentalValue(tmp));
+ p->Set(index, new base::Value(tmp));
break;
}
case base::Value::TYPE_INTEGER: {
int tmp;
p->GetInteger(index, &tmp);
fuzzer->FuzzInt(&tmp);
- p->Set(index, new base::FundamentalValue(tmp));
+ p->Set(index, new base::Value(tmp));
break;
}
case base::Value::TYPE_DOUBLE: {
double tmp;
p->GetDouble(index, &tmp);
fuzzer->FuzzDouble(&tmp);
- p->Set(index, new base::FundamentalValue(tmp));
+ p->Set(index, new base::Value(tmp));
break;
}
case base::Value::TYPE_STRING: {
@@ -581,19 +581,19 @@ struct FuzzTraits<base::DictionaryValue> {
case base::Value::TYPE_BOOLEAN: {
bool tmp;
fuzzer->FuzzBool(&tmp);
- p->SetWithoutPathExpansion(property, new base::FundamentalValue(tmp));
+ p->SetWithoutPathExpansion(property, new base::Value(tmp));
break;
}
case base::Value::TYPE_INTEGER: {
int tmp;
fuzzer->FuzzInt(&tmp);
- p->SetWithoutPathExpansion(property, new base::FundamentalValue(tmp));
+ p->SetWithoutPathExpansion(property, new base::Value(tmp));
break;
}
case base::Value::TYPE_DOUBLE: {
double tmp;
fuzzer->FuzzDouble(&tmp);
- p->SetWithoutPathExpansion(property, new base::FundamentalValue(tmp));
+ p->SetWithoutPathExpansion(property, new base::Value(tmp));
break;
}
case base::Value::TYPE_STRING: {
« no previous file with comments | « tools/clang/value_cleanup/tests/list-value-append-original.cc ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698