Index: webrtc/video/video_encoder_unittest.cc |
diff --git a/webrtc/video/video_encoder_unittest.cc b/webrtc/video/video_encoder_unittest.cc |
index b800a74065667eb16382d66046e0924b49e67a6d..0f28f891634fad5326676659cc95fe6ce7dd61d1 100644 |
--- a/webrtc/video/video_encoder_unittest.cc |
+++ b/webrtc/video/video_encoder_unittest.cc |
@@ -67,6 +67,10 @@ class VideoEncoderSoftwareFallbackWrapperTest : public ::testing::Test { |
return false; |
} |
+ const char* ImplementationName() const override { |
+ return "fake-encoder"; |
+ } |
+ |
int init_encode_count_ = 0; |
int32_t init_encode_return_code_ = WEBRTC_VIDEO_CODEC_OK; |
int32_t encode_return_code_ = WEBRTC_VIDEO_CODEC_OK; |
@@ -259,4 +263,13 @@ TEST_F(VideoEncoderSoftwareFallbackWrapperTest, |
EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, fallback_wrapper_.Release()); |
} |
+TEST_F(VideoEncoderSoftwareFallbackWrapperTest, |
+ ReportsFallbackImplementationName) { |
+ UtilizeFallbackEncoder(); |
+ // Hard coded expected value since libvpx is the software implementation name |
+ // for VP8. Change accordingly if the underlying implementation does. |
+ EXPECT_STREQ("libvpx (fallback from: fake-encoder)", |
+ fallback_wrapper_.ImplementationName()); |
+} |
+ |
} // namespace webrtc |