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 d6f439c83037ae68add7e2d350e5a7958b260709..d601888fc5cef5f89be9d44453ea788ce5183769 100644 |
--- a/content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
+++ b/content/common/gpu/media/android_video_decode_accelerator_unittest.cc |
@@ -27,6 +27,11 @@ bool MockMakeContextCurrent() { |
return true; |
} |
+static base::WeakPtr<gpu::gles2::GLES2Decoder> MockGetGLES2Decoder( |
+ const base::WeakPtr<gpu::gles2::GLES2Decoder>& decoder) { |
+ return decoder; |
+} |
+ |
} // namespace |
namespace content { |
@@ -68,7 +73,8 @@ class AndroidVideoDecodeAcceleratorTest : public testing::Test { |
scoped_ptr<MockVideoDecodeAcceleratorClient> client( |
new MockVideoDecodeAcceleratorClient()); |
accelerator_.reset(new AndroidVideoDecodeAccelerator( |
- decoder->AsWeakPtr(), base::Bind(&MockMakeContextCurrent))); |
+ base::Bind(&MockMakeContextCurrent), |
+ base::Bind(&MockGetGLES2Decoder, decoder->AsWeakPtr()))); |
} |
bool Configure(media::VideoCodec codec) { |