diff options
Diffstat (limited to 'test/encode_test_driver.cc')
-rw-r--r-- | test/encode_test_driver.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc index 22e3f0590..8fdbdb62a 100644 --- a/test/encode_test_driver.cc +++ b/test/encode_test_driver.cc @@ -8,6 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include <memory> #include <string> #include "third_party/googletest/src/include/gtest/gtest.h" @@ -179,7 +180,7 @@ void EncoderTest::RunLoop(VideoSource *video) { } BeginPassHook(pass); - testing::internal::scoped_ptr<Encoder> encoder( + std::unique_ptr<Encoder> encoder( codec_->CreateEncoder(cfg_, deadline_, init_flags_, &stats_)); ASSERT_TRUE(encoder.get() != NULL); @@ -193,7 +194,7 @@ void EncoderTest::RunLoop(VideoSource *video) { if (init_flags_ & VPX_CODEC_USE_OUTPUT_PARTITION) { dec_init_flags |= VPX_CODEC_USE_INPUT_FRAGMENTS; } - testing::internal::scoped_ptr<Decoder> decoder( + std::unique_ptr<Decoder> decoder( codec_->CreateDecoder(dec_cfg, dec_init_flags)); bool again; for (again = true; again; video->Next()) { |