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

Unified Diff: testing/libfuzzer/fuzzers/courgette_fuzzer.cc

Issue 1855823002: convert //testing to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | testing/libfuzzer/fuzzers/es_parser_mpeg1audio_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/fuzzers/courgette_fuzzer.cc
diff --git a/testing/libfuzzer/fuzzers/courgette_fuzzer.cc b/testing/libfuzzer/fuzzers/courgette_fuzzer.cc
index 5888db93eb2fe23b56ed96952b4b4bab96352987..fffb5b7d1480142e8b9decab2e2bb6dd321cc018 100644
--- a/testing/libfuzzer/fuzzers/courgette_fuzzer.cc
+++ b/testing/libfuzzer/fuzzers/courgette_fuzzer.cc
@@ -5,7 +5,8 @@
#include <stddef.h>
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "courgette/assembly_program.h"
#include "courgette/courgette.h"
#include "courgette/encoded_program.h"
@@ -13,12 +14,12 @@
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- scoped_ptr<courgette::AssemblyProgram> prog;
+ std::unique_ptr<courgette::AssemblyProgram> prog;
courgette::Status status =
courgette::ParseDetectedExecutable(data, size, &prog);
if (status != courgette::C_OK) {
return 0;
}
- scoped_ptr<courgette::EncodedProgram> enc_prog(prog->Encode());
+ std::unique_ptr<courgette::EncodedProgram> enc_prog(prog->Encode());
return 0;
}
« no previous file with comments | « no previous file | testing/libfuzzer/fuzzers/es_parser_mpeg1audio_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698