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

Unified Diff: content/renderer/media/video_capture_impl_unittest.cc

Issue 1412223009: Reland: GpuMemoryBuffer interface change: Map(**) to Map() and memory(plane); stride(plane) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win X64 compile fix Created 5 years, 2 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/renderer/media/video_capture_impl_unittest.cc
diff --git a/content/renderer/media/video_capture_impl_unittest.cc b/content/renderer/media/video_capture_impl_unittest.cc
index 1e9b68f6f1c97e11d5d4c33c23164d369d3abd54..282ebc469d9f2453d981fba3ae5ed7bbfda4741f 100644
--- a/content/renderer/media/video_capture_impl_unittest.cc
+++ b/content/renderer/media/video_capture_impl_unittest.cc
@@ -52,15 +52,14 @@ static const BufferReceivedTestArg kBufferFormats[] = {
std::vector<gpu::MailboxHolder>(
1, gpu::MailboxHolder(gpu::Mailbox::Generate(), 0, 0)))};
-class VideoCaptureImplTest :
- public ::testing::TestWithParam<BufferReceivedTestArg> {
+class VideoCaptureImplTest
+ : public ::testing::TestWithParam<BufferReceivedTestArg> {
public:
class MockVideoCaptureImpl : public VideoCaptureImpl {
public:
MockVideoCaptureImpl(const media::VideoCaptureSessionId id,
VideoCaptureMessageFilter* filter)
- : VideoCaptureImpl(id, filter), received_buffer_count_(0) {
- }
+ : VideoCaptureImpl(id, filter), received_buffer_count_(0) {}
~MockVideoCaptureImpl() override {}
// Override Send() to mimic device to send events.
@@ -308,7 +307,6 @@ TEST_F(VideoCaptureImplTest, GetDeviceFormatsInUse) {
DeInit();
}
-// NEW TEST
TEST_P(VideoCaptureImplTest, BufferReceivedWithFormat) {
EXPECT_CALL(*this, OnStateUpdate(VIDEO_CAPTURE_STATE_STARTED)).Times(1);
EXPECT_CALL(*this, OnStateUpdate(VIDEO_CAPTURE_STATE_STOPPED)).Times(1);
@@ -340,7 +338,6 @@ INSTANTIATE_TEST_CASE_P(I420AndARGB,
VideoCaptureImplTest,
testing::ValuesIn(kBufferFormats));
-// NEW TEST
TEST_F(VideoCaptureImplTest, BufferReceivedAfterStop) {
EXPECT_CALL(*this, OnStateUpdate(VIDEO_CAPTURE_STATE_STARTED)).Times(1);
EXPECT_CALL(*this, OnStateUpdate(VIDEO_CAPTURE_STATE_STOPPED)).Times(1);
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/test/gpu_memory_buffer_factory_test_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698