Index: webrtc/modules/desktop_capture/screen_capturer_unittest.cc |
diff --git a/webrtc/modules/desktop_capture/screen_capturer_unittest.cc b/webrtc/modules/desktop_capture/screen_capturer_unittest.cc |
index bc87ed3eba8ae5d67aa8d768cbeb1560e56df3d3..6f4963eb19f6cb07e83e8a578abf88719a7b986d 100644 |
--- a/webrtc/modules/desktop_capture/screen_capturer_unittest.cc |
+++ b/webrtc/modules/desktop_capture/screen_capturer_unittest.cc |
@@ -60,8 +60,8 @@ |
FakeSharedMemoryFactory() {} |
~FakeSharedMemoryFactory() override {} |
- std::unique_ptr<SharedMemory> CreateSharedMemory(size_t size) override { |
- return std::unique_ptr<SharedMemory>( |
+ rtc::scoped_ptr<SharedMemory> CreateSharedMemory(size_t size) override { |
+ return rtc::scoped_ptr<SharedMemory>( |
new FakeSharedMemory(new char[size], size)); |
} |
@@ -118,7 +118,7 @@ |
capturer_->Start(&callback_); |
capturer_->SetSharedMemoryFactory( |
- std::unique_ptr<SharedMemoryFactory>(new FakeSharedMemoryFactory())); |
+ rtc::scoped_ptr<SharedMemoryFactory>(new FakeSharedMemoryFactory())); |
capturer_->Capture(DesktopRegion()); |
ASSERT_TRUE(frame); |