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

Side by Side Diff: media/base/clock_impl_unittest.cc

Issue 165163: Merge 21882 - Implemented a proper clock for audio/video synchronization.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/base/clock_impl.cc ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /trunk/src/media/base/clock_impl_unittest.cc:r21882
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/logging.h" 5 #include "base/logging.h"
6 #include "media/base/clock_impl.h" 6 #include "media/base/clock_impl.h"
7 #include "testing/gmock/include/gmock/gmock.h" 7 #include "testing/gmock/include/gmock/gmock.h"
8 8
9 using ::testing::DefaultValue; 9 using ::testing::DefaultValue;
10 using ::testing::InSequence; 10 using ::testing::InSequence;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 const base::TimeDelta kZero; 208 const base::TimeDelta kZero;
209 const base::TimeDelta kExepected = base::TimeDelta::FromSeconds(16); 209 const base::TimeDelta kExepected = base::TimeDelta::FromSeconds(16);
210 210
211 ClockImpl clock(&MockTimeProvider::StaticNow); 211 ClockImpl clock(&MockTimeProvider::StaticNow);
212 EXPECT_EQ(kZero, clock.Play()); 212 EXPECT_EQ(kZero, clock.Play());
213 clock.SetTime(base::TimeDelta::FromSeconds(12)); 213 clock.SetTime(base::TimeDelta::FromSeconds(12));
214 EXPECT_EQ(kExepected, clock.Elapsed()); 214 EXPECT_EQ(kExepected, clock.Elapsed());
215 } 215 }
216 216
217 } // namespace media 217 } // namespace media
OLDNEW
« no previous file with comments | « media/base/clock_impl.cc ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698