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

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

Issue 2799093006: Remove base::BinaryValue (Closed)
Patch Set: Rebase Created 3 years, 8 months 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
« no previous file with comments | « mojo/common/values_struct_traits.cc ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index eac733f511a0aa3be0fdb8f6cf69353314e1d19f..4120c545313a7ba8139a7c862b72691cee1f2adb 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/memory/shared_memory_handle.h"
#include "base/strings/string_util.h"
+#include "base/values.h"
#include "build/build_config.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_utils.h"
@@ -537,8 +538,7 @@ struct FuzzTraits<base::ListValue> {
char tmp[200];
size_t bin_length = RandInRange(sizeof(tmp));
fuzzer->FuzzData(tmp, bin_length);
- p->Set(index,
- base::BinaryValue::CreateWithCopiedBuffer(tmp, bin_length));
+ p->Set(index, base::Value::CreateWithCopiedBuffer(tmp, bin_length));
break;
}
case base::Value::Type::DICTIONARY: {
@@ -607,8 +607,7 @@ struct FuzzTraits<base::DictionaryValue> {
size_t bin_length = RandInRange(sizeof(tmp));
fuzzer->FuzzData(tmp, bin_length);
p->SetWithoutPathExpansion(
- property,
- base::BinaryValue::CreateWithCopiedBuffer(tmp, bin_length));
+ property, base::Value::CreateWithCopiedBuffer(tmp, bin_length));
break;
}
case base::Value::Type::DICTIONARY: {
« no previous file with comments | « mojo/common/values_struct_traits.cc ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698