Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: media/filters/video_cadence_estimator_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/filters/video_cadence_estimator.h ('k') | media/filters/video_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698