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

Unified Diff: content/renderer/media/rtc_video_decoder_unittest.cc

Issue 1969673002: Disable HW H264 decoder for Win7 & add enable flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename. Created 4 years, 7 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
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder_unittest.cc
diff --git a/content/renderer/media/rtc_video_decoder_unittest.cc b/content/renderer/media/rtc_video_decoder_unittest.cc
index 4b765efdd976368f72c515b5a40b94325f5e2237..bc893b242ac0438e7ca3baebc0a2b877b859861e 100644
--- a/content/renderer/media/rtc_video_decoder_unittest.cc
+++ b/content/renderer/media/rtc_video_decoder_unittest.cc
@@ -17,6 +17,11 @@
#include "media/video/mock_video_decode_accelerator.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if defined(OS_WIN)
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
+#endif // defined(OS_WIN)
+
using ::testing::_;
using ::testing::Invoke;
using ::testing::Return;
@@ -74,6 +79,11 @@ class RTCVideoDecoderTest
.Times(1)
.WillRepeatedly(Return(true));
EXPECT_CALL(*mock_vda_, Destroy()).Times(1);
+
+#if defined(OS_WIN)
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kEnableWin7WebRtcHWH264Decoding);
+#endif // defined(OS_WIN)
}
void TearDown() override {
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698