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

Side by Side Diff: media/filters/audio_clock_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
« no previous file with comments | « media/filters/audio_clock.cc ('k') | media/filters/audio_decoder_selector_unittest.cc » ('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 "media/base/audio_timestamp_helper.h" 6 #include "media/base/audio_timestamp_helper.h"
6 #include "media/filters/audio_clock.h" 7 #include "media/filters/audio_clock.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 AudioClockTest : public testing::Test { 12 class AudioClockTest : public testing::Test {
12 public: 13 public:
13 AudioClockTest() 14 AudioClockTest()
14 : sample_rate_(10), clock_(base::TimeDelta(), sample_rate_) {} 15 : sample_rate_(10), clock_(base::TimeDelta(), sample_rate_) {}
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 } 346 }
346 347
347 // Exhausting all frames should advance timestamps and prime the buffer with 348 // Exhausting all frames should advance timestamps and prime the buffer with
348 // our delay frames value. 349 // our delay frames value.
349 clock_.CompensateForSuspendedWrites(base::TimeDelta::FromMilliseconds(7000), 350 clock_.CompensateForSuspendedWrites(base::TimeDelta::FromMilliseconds(7000),
350 kDelayFrames); 351 kDelayFrames);
351 EXPECT_EQ(kDelayFrames * 100, TimeUntilPlaybackInMilliseconds(1000)); 352 EXPECT_EQ(kDelayFrames * 100, TimeUntilPlaybackInMilliseconds(1000));
352 } 353 }
353 354
354 } // namespace media 355 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/audio_clock.cc ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698