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; |
} |