OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mojo/common/mojo_shared_buffer_video_frame.h" | 5 #include "media/mojo/common/mojo_shared_buffer_video_frame.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
| 12 #include "base/bind.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "mojo/public/cpp/system/buffer.h" | 15 #include "mojo/public/cpp/system/buffer.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/geometry/size.h" | 18 #include "ui/gfx/geometry/size.h" |
18 | 19 |
19 namespace media { | 20 namespace media { |
20 | 21 |
21 namespace { | 22 namespace { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 original_handle, requested_size, | 169 original_handle, requested_size, |
169 &callback_called)); | 170 &callback_called)); |
170 EXPECT_FALSE(callback_called); | 171 EXPECT_FALSE(callback_called); |
171 | 172 |
172 // Force destruction of |frame|. | 173 // Force destruction of |frame|. |
173 frame = nullptr; | 174 frame = nullptr; |
174 EXPECT_TRUE(callback_called); | 175 EXPECT_TRUE(callback_called); |
175 } | 176 } |
176 | 177 |
177 } // namespace media | 178 } // namespace media |
OLD | NEW |