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

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

Issue 2214533002: move //media/capture to //device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_controller_unittest.cc
diff --git a/content/browser/renderer_host/media/video_capture_controller_unittest.cc b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
index 3f19667f4fcf8cee8cf0e240d1b0dc320c4dced9..b50087174a22672361ca42d29ca3f4e7439ce39f 100644
--- a/content/browser/renderer_host/media/video_capture_controller_unittest.cc
+++ b/content/browser/renderer_host/media/video_capture_controller_unittest.cc
@@ -139,7 +139,7 @@ class VideoCaptureControllerTest : public testing::Test {
std::unique_ptr<MockVideoCaptureControllerEventHandler> client_a_;
std::unique_ptr<MockVideoCaptureControllerEventHandler> client_b_;
std::unique_ptr<VideoCaptureController> controller_;
- std::unique_ptr<media::VideoCaptureDevice::Client> device_;
+ std::unique_ptr<device::VideoCaptureDevice::Client> device_;
private:
DISALLOW_COPY_AND_ASSIGN(VideoCaptureControllerTest);
@@ -293,7 +293,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
// side effect this will cause the first buffer to be shared with clients.
uint8_t buffer_no = 1;
ASSERT_EQ(0.0, device_->GetBufferPoolUtilization());
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer(
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer(
device_->ReserveOutputBuffer(capture_resolution, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU));
ASSERT_TRUE(buffer.get());
@@ -346,7 +346,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
// Second buffer which ought to use the same shared memory buffer. In this
// case pretend that the Buffer pointer is held by the device for a long
// delay. This shouldn't affect anything.
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer2 =
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer2 =
device_->ReserveOutputBuffer(capture_resolution, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU);
ASSERT_TRUE(buffer2.get());
@@ -405,7 +405,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
// Third, fourth, and fifth buffers. Pretend they all arrive at the same time.
for (int i = 0; i < kPoolSize; i++) {
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer =
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer =
device_->ReserveOutputBuffer(capture_resolution,
media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU);
@@ -456,7 +456,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
EXPECT_CALL(*client_b_, DoEnded(client_b_route_1)).Times(1);
controller_->StopSession(300);
// Queue up another buffer.
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer3 =
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer3 =
device_->ReserveOutputBuffer(capture_resolution, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU);
ASSERT_TRUE(buffer3.get());
@@ -468,7 +468,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) {
media::VideoFrameMetadata::REFERENCE_TIME, base::TimeTicks());
device_->OnIncomingCapturedVideoFrame(std::move(buffer3), video_frame);
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer4 =
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer4 =
device_->ReserveOutputBuffer(capture_resolution, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU);
{
@@ -524,7 +524,7 @@ TEST_F(VideoCaptureControllerTest, ErrorBeforeDeviceCreation) {
base::RunLoop().RunUntilIdle();
Mock::VerifyAndClearExpectations(client_b_.get());
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer(
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer(
device_->ReserveOutputBuffer(capture_resolution, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU));
ASSERT_TRUE(buffer.get());
@@ -562,7 +562,7 @@ TEST_F(VideoCaptureControllerTest, ErrorAfterDeviceCreation) {
Mock::VerifyAndClearExpectations(client_a_.get());
const gfx::Size dims(320, 240);
- std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer(
+ std::unique_ptr<device::VideoCaptureDevice::Client::Buffer> buffer(
device_->ReserveOutputBuffer(dims, media::PIXEL_FORMAT_I420,
media::PIXEL_STORAGE_CPU));
ASSERT_TRUE(buffer.get());

Powered by Google App Engine
This is Rietveld 408576698