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

Unified Diff: media/video/capture/video_capture_device_unittest.cc

Issue 604983002: Disable two hanging video capture tests on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated style Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_device_unittest.cc
diff --git a/media/video/capture/video_capture_device_unittest.cc b/media/video/capture/video_capture_device_unittest.cc
index 6d846aeb5d6f433ca50e1db37824f3fbbf7ac358..0abd90e25075b1278ddfd0112f6cea764ca3f023 100644
--- a/media/video/capture/video_capture_device_unittest.cc
+++ b/media/video/capture/video_capture_device_unittest.cc
@@ -201,7 +201,14 @@ class VideoCaptureDeviceTest : public testing::Test {
scoped_ptr<VideoCaptureDeviceFactory> video_capture_device_factory_;
};
-TEST_F(VideoCaptureDeviceTest, OpenInvalidDevice) {
+// Cause hangs on Windows Debug. http://crbug.com/417824
+#if defined(OS_WIN) && !defined(NDEBUG)
+#define MAYBE_OpenInvalidDevice DISABLED_OpenInvalidDevice
+#else
+#define MAYBE_OpenInvalidDevice OpenInvalidDevice
+#endif
+
+TEST_F(VideoCaptureDeviceTest, MAYBE_OpenInvalidDevice) {
#if defined(OS_WIN)
VideoCaptureDevice::Name::CaptureApiType api_type =
VideoCaptureDeviceFactoryWin::PlatformSupportsMediaFoundation()
@@ -313,7 +320,14 @@ TEST_F(VideoCaptureDeviceTest, MAYBE_AllocateBadSize) {
EXPECT_EQ(last_format().frame_size.height(), 480);
}
-TEST_F(VideoCaptureDeviceTest, ReAllocateCamera) {
+// Cause hangs on Windows Debug. http://crbug.com/417824
+#if defined(OS_WIN) && !defined(NDEBUG)
+#define MAYBE_ReAllocateCamera DISABLED_ReAllocateCamera
+#else
+#define MAYBE_ReAllocateCamera ReAllocateCamera
+#endif
+
+TEST_F(VideoCaptureDeviceTest, MAYBE_ReAllocateCamera) {
names_ = EnumerateDevices();
if (!names_->size()) {
DVLOG(1) << "No camera available. Exiting test.";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698