diff --git a/webrtc/modules/desktop_capture/window_capturer_unittest.cc b/webrtc/modules/desktop_capture/window_capturer_unittest.cc index 6f75f21341..c3b15fedb8 100644 --- a/webrtc/modules/desktop_capture/window_capturer_unittest.cc +++ b/webrtc/modules/desktop_capture/window_capturer_unittest.cc @@ -42,6 +42,8 @@ class WindowCapturerTest : public testing::Test, scoped_ptr frame_; }; +#if defined(WEBRTC_WIN) + // Verify that we can enumerate windows. TEST_F(WindowCapturerTest, Enumerate) { WindowCapturer::WindowList windows; @@ -93,4 +95,6 @@ TEST_F(WindowCapturerTest, Capture) { } } +#endif // defined(WEBRTC_WIN) + } // namespace webrtc