Chromium Code Reviews| Index: content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
| diff --git a/content/common/gpu/media/android_video_decode_accelerator_unittest.cc b/content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
| index efd5b75a5ca27ae6487f78b40c0c41c3e78dfaf6..d6ad1d2f165fd205f3a28d0556d0a0ee85166761 100644 |
| --- a/content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
| +++ b/content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
| @@ -8,6 +8,7 @@ |
| #include "base/bind.h" |
| #include "base/logging.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "content/common/gpu/media/android_copying_backing_strategy.h" |
| #include "content/common/gpu/media/android_video_decode_accelerator.h" |
| #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" |
| #include "media/base/android/media_codec_bridge.h" |
| @@ -63,7 +64,9 @@ class AndroidVideoDecodeAcceleratorTest : public testing::Test { |
| scoped_ptr<MockVideoDecodeAcceleratorClient> client( |
| new MockVideoDecodeAcceleratorClient()); |
| accelerator_.reset(new AndroidVideoDecodeAccelerator( |
| - decoder->AsWeakPtr(), base::Bind(&MockMakeContextCurrent))); |
| + decoder->AsWeakPtr(), base::Bind(&MockMakeContextCurrent), |
| + scoped_ptr<AndroidVideoDecodeAccelerator::BackingStrategy>( |
| + new AndroidCopyingBackingStrategy()))); |
|
watk
2015/09/09 00:36:01
You can use make_scoped_ptr() to make this less no
|
| } |
| bool Configure(media::VideoCodec codec) { |