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

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

Issue 22876027: Consolidate duplicated frame / capability structures in video_capture_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased: changed media::VideoCaptureCapability::kI420 -> media::PIXEL_FORMAT_I420 etc. Created 7 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/renderer/media/video_capture_message_filter_unittest.cc
diff --git a/content/renderer/media/video_capture_message_filter_unittest.cc b/content/renderer/media/video_capture_message_filter_unittest.cc
index 222600ad830fc7020c6334dcc9113928740f1826..3dec39d5de3ecd7035f81f86a75e611df2b555c4 100644
--- a/content/renderer/media/video_capture_message_filter_unittest.cc
+++ b/content/renderer/media/video_capture_message_filter_unittest.cc
@@ -42,7 +42,7 @@ class MockVideoCaptureDelegate : public VideoCaptureMessageFilter::Delegate {
device_info_received_ = true;
params_.width = params.width;
params_.height = params.height;
- params_.frame_per_second = params.frame_per_second;
+ params_.frame_rate = params.frame_rate;
}
virtual void OnDelegateAdded(int32 device_id) OVERRIDE {
@@ -64,7 +64,7 @@ class MockVideoCaptureDelegate : public VideoCaptureMessageFilter::Delegate {
device_info_received_ = false;
params_.width = 0;
params_.height = 0;
- params_.frame_per_second = 0;
+ params_.frame_rate = 0;
}
bool buffer_created() { return buffer_created_; }
@@ -153,7 +153,7 @@ TEST(VideoCaptureMessageFilterTest, Basic) {
media::VideoCaptureParams params;
params.width = 320;
params.height = 240;
- params.frame_per_second = 30;
+ params.frame_rate = 30;
EXPECT_FALSE(delegate.device_info_receive());
filter->OnMessageReceived(VideoCaptureMsg_DeviceInfo(
@@ -161,8 +161,8 @@ TEST(VideoCaptureMessageFilterTest, Basic) {
EXPECT_TRUE(delegate.device_info_receive());
EXPECT_EQ(params.width, delegate.received_device_info().width);
EXPECT_EQ(params.height, delegate.received_device_info().height);
- EXPECT_EQ(params.frame_per_second,
- delegate.received_device_info().frame_per_second);
+ EXPECT_EQ(params.frame_rate,
+ delegate.received_device_info().frame_rate);
delegate.Reset();
message_loop.RunUntilIdle();
« no previous file with comments | « content/renderer/media/video_capture_impl_unittest.cc ('k') | content/renderer/pepper/pepper_video_capture_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698