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/mac/video_frame_mac.h" | 5 #include "media/base/mac/video_frame_mac.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
11 #include "media/base/mac/corevideo_glue.h" | 13 #include "media/base/mac/corevideo_glue.h" |
12 #include "media/base/video_frame.h" | 14 #include "media/base/video_frame.h" |
13 | 15 |
14 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
15 | 17 |
16 namespace media { | 18 namespace media { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ASSERT_TRUE(frame.get()); | 126 ASSERT_TRUE(frame.get()); |
125 EXPECT_EQ(pb.get(), frame->cv_pixel_buffer()); | 127 EXPECT_EQ(pb.get(), frame->cv_pixel_buffer()); |
126 EXPECT_EQ(format_pair.chrome, frame->format()); | 128 EXPECT_EQ(format_pair.chrome, frame->format()); |
127 | 129 |
128 frame = nullptr; | 130 frame = nullptr; |
129 EXPECT_EQ(1, CFGetRetainCount(pb.get())); | 131 EXPECT_EQ(1, CFGetRetainCount(pb.get())); |
130 } | 132 } |
131 } | 133 } |
132 | 134 |
133 } // namespace media | 135 } // namespace media |
OLD | NEW |