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

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

Issue 2343423003: Extract nested and private classes from VideoCaptureBufferPool (Closed)
Patch Set: 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 6fc58b6523709e99af06446ba10c38a587b9a011..c3f026e496135c214c8c9a62e1dc9bf6f64fd975 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<VideoCaptureBufferPoolBufferHandle> buffer_handle,
+ std::unique_ptr<VideoCaptureBufferHandle> buffer_handle,
int id)
: id_(id), pool_(pool), buffer_handle_(std::move(buffer_handle)) {}
~Buffer() { pool_->RelinquishProducerReservation(id()); }
@@ -130,7 +130,7 @@ class VideoCaptureBufferPoolTest
private:
const int id_;
const scoped_refptr<VideoCaptureBufferPool> pool_;
- const std::unique_ptr<VideoCaptureBufferPoolBufferHandle> buffer_handle_;
+ const std::unique_ptr<VideoCaptureBufferHandle> buffer_handle_;
};
VideoCaptureBufferPoolTest()
@@ -164,7 +164,7 @@ class VideoCaptureBufferPoolTest
return std::unique_ptr<Buffer>();
EXPECT_EQ(expected_dropped_id_, buffer_id_to_drop);
- std::unique_ptr<VideoCaptureBufferPoolBufferHandle> buffer_handle =
+ std::unique_ptr<VideoCaptureBufferHandle> 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