OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include <cmath> | 8 #include <cmath> |
6 | 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/macros.h" |
9 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
10 #include "base/test/simple_test_tick_clock.h" | 14 #include "base/test/simple_test_tick_clock.h" |
11 #include "media/base/timestamp_constants.h" | 15 #include "media/base/timestamp_constants.h" |
12 #include "media/base/video_frame_pool.h" | 16 #include "media/base/video_frame_pool.h" |
13 #include "media/base/wall_clock_time_source.h" | 17 #include "media/base/wall_clock_time_source.h" |
14 #include "media/filters/video_renderer_algorithm.h" | 18 #include "media/filters/video_renderer_algorithm.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 |
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 ASSERT_TRUE(is_using_cadence()); | 1388 ASSERT_TRUE(is_using_cadence()); |
1385 | 1389 |
1386 // Finally the last frame. | 1390 // Finally the last frame. |
1387 rendered_frame = RenderAndStep(&tg, &frames_dropped); | 1391 rendered_frame = RenderAndStep(&tg, &frames_dropped); |
1388 EXPECT_EQ(1u, frames_queued()); | 1392 EXPECT_EQ(1u, frames_queued()); |
1389 EXPECT_EQ(tg.interval(12), rendered_frame->timestamp()); | 1393 EXPECT_EQ(tg.interval(12), rendered_frame->timestamp()); |
1390 ASSERT_TRUE(is_using_cadence()); | 1394 ASSERT_TRUE(is_using_cadence()); |
1391 } | 1395 } |
1392 | 1396 |
1393 } // namespace media | 1397 } // namespace media |
OLD | NEW |