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

Side by Side Diff: media/capture/content/smooth_event_sampler_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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "media/capture/content/smooth_event_sampler.h" 5 #include "media/capture/content/smooth_event_sampler.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
10 #include "base/macros.h"
7 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
8 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
9 13
10 namespace media { 14 namespace media {
11 15
12 namespace { 16 namespace {
13 17
14 bool AddEventAndConsiderSampling(SmoothEventSampler* sampler, 18 bool AddEventAndConsiderSampling(SmoothEventSampler* sampler,
15 base::TimeTicks event_time) { 19 base::TimeTicks event_time) {
16 sampler->ConsiderPresentationEvent(event_time); 20 sampler->ConsiderPresentationEvent(event_time);
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 {true, 33.441}, 699 {true, 33.441},
696 {false, 16.72}, 700 {false, 16.72},
697 {true, 16.72}, 701 {true, 16.72},
698 {true, 50.16}}; 702 {true, 50.16}};
699 703
700 SmoothEventSampler sampler(base::TimeDelta::FromSeconds(1) / 30, 3); 704 SmoothEventSampler sampler(base::TimeDelta::FromSeconds(1) / 30, 3);
701 ReplayCheckingSamplerDecisions(data_points, arraysize(data_points), &sampler); 705 ReplayCheckingSamplerDecisions(data_points, arraysize(data_points), &sampler);
702 } 706 }
703 707
704 } // namespace media 708 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/content/smooth_event_sampler.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698