Index: webrtc/modules/desktop_capture/window_capturer_unittest.cc |
diff --git a/webrtc/modules/desktop_capture/window_capturer_unittest.cc b/webrtc/modules/desktop_capture/window_capturer_unittest.cc |
index e56a1de29fc1968e545528dbe75f080cc7c6ff2f..7742fe4334f2a4dbf83c07c1a0ecba5b7cef36f2 100644 |
--- a/webrtc/modules/desktop_capture/window_capturer_unittest.cc |
+++ b/webrtc/modules/desktop_capture/window_capturer_unittest.cc |
@@ -24,8 +24,8 @@ class WindowCapturerTest : public testing::Test, |
public DesktopCapturer::Callback { |
public: |
void SetUp() override { |
- capturer_.reset( |
- WindowCapturer::Create(DesktopCaptureOptions::CreateDefault())); |
+ capturer_ = DesktopCapturer::CreateWindowCapturer( |
+ DesktopCaptureOptions::CreateDefault()); |
} |
void TearDown() override {} |
@@ -37,7 +37,7 @@ class WindowCapturerTest : public testing::Test, |
} |
protected: |
- std::unique_ptr<WindowCapturer> capturer_; |
+ std::unique_ptr<DesktopCapturer> capturer_; |
std::unique_ptr<DesktopFrame> frame_; |
}; |