Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(981)

Unified Diff: media/gpu/avda_codec_allocator_unittest.cc

Issue 2692863011: Add ContentVideoViewOverlay to AVDA. (Closed)
Patch Set: keep |overlay| longer in UpdateSurface, comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698