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 |
5 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
6 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
7 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
8 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
9 #include "media/filters/video_cadence_estimator.h" | 11 #include "media/filters/video_cadence_estimator.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 // See VideoCadenceEstimator header for more details. | 16 // See VideoCadenceEstimator header for more details. |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 EXPECT_TRUE(estimator->has_cadence()); | 288 EXPECT_TRUE(estimator->has_cadence()); |
287 | 289 |
288 // Two bad intervals should. | 290 // Two bad intervals should. |
289 EXPECT_TRUE( | 291 EXPECT_TRUE( |
290 estimator->UpdateCadenceEstimate(render_interval, frame_interval * 0.75, | 292 estimator->UpdateCadenceEstimate(render_interval, frame_interval * 0.75, |
291 base::TimeDelta(), acceptable_drift)); | 293 base::TimeDelta(), acceptable_drift)); |
292 EXPECT_FALSE(estimator->has_cadence()); | 294 EXPECT_FALSE(estimator->has_cadence()); |
293 } | 295 } |
294 | 296 |
295 } // namespace media | 297 } // namespace media |
OLD | NEW |