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

Unified Diff: testing/libfuzzer/fuzzers/mp4_box_reader_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 | « testing/libfuzzer/fuzzers/es_parser_mpeg1audio_fuzzer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/fuzzers/mp4_box_reader_fuzzer.cc
diff --git a/testing/libfuzzer/fuzzers/mp4_box_reader_fuzzer.cc b/testing/libfuzzer/fuzzers/mp4_box_reader_fuzzer.cc
index f7f7f986976f5e6f073b34ca677e64c693f7a841..6e5c6bd58a19cbc11f4732a8a9f5be012788d6b9 100644
--- a/testing/libfuzzer/fuzzers/mp4_box_reader_fuzzer.cc
+++ b/testing/libfuzzer/fuzzers/mp4_box_reader_fuzzer.cc
@@ -5,9 +5,10 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "media/formats/mp4/box_reader.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
class NullMediaLog : public media::MediaLog {
public:
@@ -15,7 +16,7 @@ class NullMediaLog : public media::MediaLog {
void DoAddEventLogString(const std::string& event) {}
- void AddEvent(scoped_ptr<media::MediaLogEvent> event) override {}
+ void AddEvent(std::unique_ptr<media::MediaLogEvent> event) override {}
protected:
virtual ~NullMediaLog() {}
@@ -28,11 +29,9 @@ class NullMediaLog : public media::MediaLog {
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
bool err;
scoped_refptr<NullMediaLog> media_log(new NullMediaLog());
- scoped_ptr<media::mp4::BoxReader> reader(
- media::mp4::BoxReader::ReadTopLevelBox(data,
- static_cast<const int>(size),
- media_log,
- &err));
+ std::unique_ptr<media::mp4::BoxReader> reader(
+ media::mp4::BoxReader::ReadTopLevelBox(data, static_cast<const int>(size),
+ media_log, &err));
if (err) {
return 0;
}
« no previous file with comments | « testing/libfuzzer/fuzzers/es_parser_mpeg1audio_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698