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

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

Issue 10108009: Move VideoCapture::VideoCaptureCapability to video_capture_types.h (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix content_unittests build failure Created 8 years, 8 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
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/video_capture_module_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2297886c603a144d67da51a340600f128af03b4e..5d5c195c79bf796f32e4d36eddd999189257b77f 100644
--- a/content/renderer/media/video_capture_impl_unittest.cc
+++ b/content/renderer/media/video_capture_impl_unittest.cc
@@ -12,9 +12,9 @@ using ::testing::_;
using ::testing::AtLeast;
using ::testing::Return;
-#define CAPABILITY_SMALL {176, 144, 30, 0, media::VideoFrame::I420, \
+#define CAPABILITY_SMALL {176, 144, 30, media::VideoFrame::I420, 0, \
false }
-#define CAPABILITY_LARGE {320, 240, 30, 0, media::VideoFrame::I420, \
+#define CAPABILITY_LARGE {320, 240, 30, media::VideoFrame::I420, 0, \
false }
class MockVideoCaptureMessageFilter : public VideoCaptureMessageFilter {
@@ -130,8 +130,7 @@ class VideoCaptureImplTest : public ::testing::Test {
TEST_F(VideoCaptureImplTest, Simple) {
// Execute SetCapture() and StopCapture() for one client.
scoped_ptr<MockVideoCaptureClient> client(new MockVideoCaptureClient);
- media::VideoCapture::VideoCaptureCapability capability =
- CAPABILITY_SMALL;
+ media::VideoCaptureCapability capability = CAPABILITY_SMALL;
EXPECT_CALL(*client, OnStarted(_))
.WillOnce(Return());
@@ -153,8 +152,7 @@ TEST_F(VideoCaptureImplTest, Simple) {
TEST_F(VideoCaptureImplTest, TwoClientsInSequence) {
// Execute SetCapture() and StopCapture() for 2 clients in sequence.
scoped_ptr<MockVideoCaptureClient> client(new MockVideoCaptureClient);
- media::VideoCapture::VideoCaptureCapability capability =
- CAPABILITY_SMALL;
+ media::VideoCaptureCapability capability = CAPABILITY_SMALL;
EXPECT_CALL(*client, OnStarted(_))
.WillOnce(Return());
@@ -194,10 +192,8 @@ TEST_F(VideoCaptureImplTest, LargeAndSmall) {
// The large client starts first and stops first.
scoped_ptr<MockVideoCaptureClient> client_small(new MockVideoCaptureClient);
scoped_ptr<MockVideoCaptureClient> client_large(new MockVideoCaptureClient);
- media::VideoCapture::VideoCaptureCapability capability_small =
- CAPABILITY_SMALL;
- media::VideoCapture::VideoCaptureCapability capability_large =
- CAPABILITY_LARGE;
+ media::VideoCaptureCapability capability_small = CAPABILITY_SMALL;
+ media::VideoCaptureCapability capability_large = CAPABILITY_LARGE;
EXPECT_CALL(*client_large, OnStarted(_))
.WillOnce(Return());
@@ -231,10 +227,8 @@ TEST_F(VideoCaptureImplTest, SmallAndLarge) {
// The small client starts first and stops first.
scoped_ptr<MockVideoCaptureClient> client_small(new MockVideoCaptureClient);
scoped_ptr<MockVideoCaptureClient> client_large(new MockVideoCaptureClient);
- media::VideoCapture::VideoCaptureCapability capability_small =
- CAPABILITY_SMALL;
- media::VideoCapture::VideoCaptureCapability capability_large =
- CAPABILITY_LARGE;
+ media::VideoCaptureCapability capability_small = CAPABILITY_SMALL;
+ media::VideoCaptureCapability capability_large = CAPABILITY_LARGE;
EXPECT_CALL(*client_large, OnStarted(_))
.WillOnce(Return());
@@ -269,7 +263,7 @@ TEST_F(VideoCaptureImplTest, TwoClientsWithSameSize) {
// The client1 starts first and stops first.
scoped_ptr<MockVideoCaptureClient> client1(new MockVideoCaptureClient);
scoped_ptr<MockVideoCaptureClient> client2(new MockVideoCaptureClient);
- media::VideoCapture::VideoCaptureCapability capability = CAPABILITY_SMALL;
+ media::VideoCaptureCapability capability = CAPABILITY_SMALL;
EXPECT_CALL(*client1, OnStarted(_))
.WillOnce(Return());
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/video_capture_module_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698