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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc

Issue 2308533003: Break tight coupling of VideoCaptureDeviceClient to renderer_host (Closed)
Patch Set: miu's comments Created 4 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
Index: content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc b/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
index b4a74ff01d4cf68bcb69f044bea535be359203ad..6fc58b6523709e99af06446ba10c38a587b9a011 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc
@@ -119,7 +119,7 @@ class VideoCaptureBufferPoolTest
class Buffer {
public:
Buffer(const scoped_refptr<VideoCaptureBufferPool> pool,
- std::unique_ptr<VideoCaptureBufferPool::BufferHandle> buffer_handle,
+ std::unique_ptr<VideoCaptureBufferPoolBufferHandle> buffer_handle,
int id)
: id_(id), pool_(pool), buffer_handle_(std::move(buffer_handle)) {}
~Buffer() { pool_->RelinquishProducerReservation(id()); }
@@ -130,12 +130,12 @@ class VideoCaptureBufferPoolTest
private:
const int id_;
const scoped_refptr<VideoCaptureBufferPool> pool_;
- const std::unique_ptr<VideoCaptureBufferPool::BufferHandle> buffer_handle_;
+ const std::unique_ptr<VideoCaptureBufferPoolBufferHandle> buffer_handle_;
};
VideoCaptureBufferPoolTest()
: expected_dropped_id_(0),
- pool_(new VideoCaptureBufferPool(kTestBufferPoolSize)) {}
+ pool_(new VideoCaptureBufferPoolImpl(kTestBufferPoolSize)) {}
#if !defined(OS_ANDROID)
void SetUp() override {
@@ -164,7 +164,7 @@ class VideoCaptureBufferPoolTest
return std::unique_ptr<Buffer>();
EXPECT_EQ(expected_dropped_id_, buffer_id_to_drop);
- std::unique_ptr<VideoCaptureBufferPool::BufferHandle> buffer_handle =
+ std::unique_ptr<VideoCaptureBufferPoolBufferHandle> buffer_handle =
pool_->GetBufferHandle(buffer_id);
return std::unique_ptr<Buffer>(
new Buffer(pool_, std::move(buffer_handle), buffer_id));

Powered by Google App Engine
This is Rietveld 408576698