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

Unified Diff: media/mojo/services/mojo_cdm_allocator_unittest.cc

Issue 2908303003: media: Create Mojo StructTraits for VideoFrame (Closed)
Patch Set: Remove death test. Created 3 years, 6 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: media/mojo/services/mojo_cdm_allocator_unittest.cc
diff --git a/media/mojo/services/mojo_cdm_allocator_unittest.cc b/media/mojo/services/mojo_cdm_allocator_unittest.cc
index 8fad63176a10585df5494e36b605f9764b410e99..96e8f9b2cbc8e3be608ae33c7f126cdc30fd8e96 100644
--- a/media/mojo/services/mojo_cdm_allocator_unittest.cc
+++ b/media/mojo/services/mojo_cdm_allocator_unittest.cc
@@ -85,16 +85,16 @@ TEST_F(MojoCdmAllocatorTest, MaxFreeBuffers) {
}
TEST_F(MojoCdmAllocatorTest, CreateCdmVideoFrame) {
- const int kHeight = 16;
- const int kWidth = 9;
+ const int kWidth = 16;
+ const int kHeight = 9;
const VideoPixelFormat kFormat = PIXEL_FORMAT_I420;
- const gfx::Size kSize(kHeight, kWidth);
+ const gfx::Size kSize(kWidth, kHeight);
const size_t kBufferSize = VideoFrame::AllocationSize(kFormat, kSize);
// Create a VideoFrameImpl and initialize it.
std::unique_ptr<VideoFrameImpl> video_frame = CreateCdmVideoFrame();
video_frame->SetFormat(cdm::kI420);
- video_frame->SetSize(cdm::Size(kHeight, kWidth));
+ video_frame->SetSize(cdm::Size(kWidth, kHeight));
video_frame->SetStride(VideoFrameImpl::kYPlane,
static_cast<uint32_t>(VideoFrame::RowBytes(
VideoFrame::kYPlane, kFormat, kWidth)));

Powered by Google App Engine
This is Rietveld 408576698