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

Unified Diff: media/audio/fake_audio_consumer_unittest.cc

Issue 16823003: Replace erroneous use of base::Time with base::TimeTicks throughout media code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/PresubmitPromptWarning/PresubmitPromptOrNotify/ Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/fake_audio_consumer.cc ('k') | media/audio/fake_audio_input_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_consumer_unittest.cc
diff --git a/media/audio/fake_audio_consumer_unittest.cc b/media/audio/fake_audio_consumer_unittest.cc
index 362686cd6fb01b9d3887ef99b0e052339c337a30..9ffc1493ee2102fa8e3303f9e7ea03fef54e30a7 100644
--- a/media/audio/fake_audio_consumer_unittest.cc
+++ b/media/audio/fake_audio_consumer_unittest.cc
@@ -58,7 +58,7 @@ class FakeAudioConsumerTest : public testing::Test {
if (source_.callbacks() == 0) {
RunOnAudioThread();
- start_time_ = base::Time::Now();
+ start_time_ = base::TimeTicks::Now();
}
// Keep going until we've seen the requested number of callbacks.
@@ -67,7 +67,7 @@ class FakeAudioConsumerTest : public testing::Test {
&FakeAudioConsumerTest::TimeCallbacksOnAudioThread,
base::Unretained(this), callbacks), time_between_callbacks_ / 2);
} else {
- end_time_ = base::Time::Now();
+ end_time_ = base::TimeTicks::Now();
EndTest(callbacks);
}
}
@@ -84,8 +84,8 @@ class FakeAudioConsumerTest : public testing::Test {
AudioParameters params_;
FakeAudioConsumer fake_consumer_;
SineWaveAudioSource source_;
- base::Time start_time_;
- base::Time end_time_;
+ base::TimeTicks start_time_;
+ base::TimeTicks end_time_;
base::TimeDelta time_between_callbacks_;
private:
« no previous file with comments | « media/audio/fake_audio_consumer.cc ('k') | media/audio/fake_audio_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698