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