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

Side by Side Diff: media/base/wall_clock_time_source_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 4 years, 12 months 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
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/macros.h"
5 #include "base/test/simple_test_tick_clock.h" 6 #include "base/test/simple_test_tick_clock.h"
6 #include "media/base/wall_clock_time_source.h" 7 #include "media/base/wall_clock_time_source.h"
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 9
9 namespace media { 10 namespace media {
10 11
11 class WallClockTimeSourceTest : public testing::Test { 12 class WallClockTimeSourceTest : public testing::Test {
12 public: 13 public:
13 WallClockTimeSourceTest() : tick_clock_(new base::SimpleTestTickClock()) { 14 WallClockTimeSourceTest() : tick_clock_(new base::SimpleTestTickClock()) {
14 time_source_.set_tick_clock_for_testing(tick_clock_.get()); 15 time_source_.set_tick_clock_for_testing(tick_clock_.get());
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 157
157 wall_clock_times.clear(); 158 wall_clock_times.clear();
158 time_source_.StopTicking(); 159 time_source_.StopTicking();
159 is_time_moving = time_source_.GetWallClockTimes( 160 is_time_moving = time_source_.GetWallClockTimes(
160 std::vector<base::TimeDelta>(), &wall_clock_times); 161 std::vector<base::TimeDelta>(), &wall_clock_times);
161 EXPECT_FALSE(is_time_moving); 162 EXPECT_FALSE(is_time_moving);
162 EXPECT_EQ(tick_clock_->NowTicks(), wall_clock_times[0]); 163 EXPECT_EQ(tick_clock_->NowTicks(), wall_clock_times[0]);
163 } 164 }
164 165
165 } // namespace media 166 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698