| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/video_frame.h" | 5 #include "media/base/video_frame.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/bind.h" | 10 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 9 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
| 13 #include "base/macros.h" |
| 10 #include "base/memory/aligned_memory.h" | 14 #include "base/memory/aligned_memory.h" |
| 11 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 13 #include "gpu/command_buffer/common/mailbox_holder.h" | 17 #include "gpu/command_buffer/common/mailbox_holder.h" |
| 14 #include "media/base/yuv_convert.h" | 18 #include "media/base/yuv_convert.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 20 |
| 17 namespace media { | 21 namespace media { |
| 18 | 22 |
| 19 using base::MD5DigestToBase16; | 23 using base::MD5DigestToBase16; |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 488 |
| 485 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) { | 489 for (int i = 0; i < VideoFrameMetadata::NUM_KEYS; ++i) { |
| 486 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i); | 490 const VideoFrameMetadata::Key key = static_cast<VideoFrameMetadata::Key>(i); |
| 487 int value = -1; | 491 int value = -1; |
| 488 EXPECT_TRUE(result.GetInteger(key, &value)); | 492 EXPECT_TRUE(result.GetInteger(key, &value)); |
| 489 EXPECT_EQ(i, value); | 493 EXPECT_EQ(i, value); |
| 490 } | 494 } |
| 491 } | 495 } |
| 492 | 496 |
| 493 } // namespace media | 497 } // namespace media |
| OLD | NEW |