Index: media/gpu/avda_codec_allocator_unittest.cc |
diff --git a/media/gpu/avda_codec_allocator_unittest.cc b/media/gpu/avda_codec_allocator_unittest.cc |
index 8c066f214f0cc94c78d96f14b6152655433d7930..82fc620106caa283c3720e2cd3f884ce0a8563b5 100644 |
--- a/media/gpu/avda_codec_allocator_unittest.cc |
+++ b/media/gpu/avda_codec_allocator_unittest.cc |
@@ -42,7 +42,8 @@ void SignalImmediately(base::WaitableEvent* event) { |
} |
} |
-class MockClient : public AVDACodecAllocatorClient { |
+class MockClient : public AVDACodecAllocatorClient, |
+ public AVDASurfaceAllocatorClient { |
public: |
MOCK_METHOD1(OnSurfaceAvailable, void(bool success)); |
MOCK_METHOD0(OnSurfaceDestroyed, void()); |
@@ -50,6 +51,7 @@ class MockClient : public AVDACodecAllocatorClient { |
// Gmock doesn't let us mock methods taking move-only types. |
MOCK_METHOD1(OnCodecConfiguredMock, void(VideoCodecBridge* media_codec)); |
void OnCodecConfigured( |
+ scoped_refptr<CodecConfig> codec_config, |
std::unique_ptr<VideoCodecBridge> media_codec) override { |
OnCodecConfiguredMock(media_codec.get()); |
} |