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

Unified Diff: media/base/pts_stream_unittest.cc

Issue 9225001: Remove two static initializers (media/base/{buffers,media_log}.cc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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
Index: media/base/pts_stream_unittest.cc
diff --git a/media/base/pts_stream_unittest.cc b/media/base/pts_stream_unittest.cc
index 22f3807067ff7177c979ba550f59288a6bda506b..7c36dbd2193ccd955c854fc7862456cedde8f6e2 100644
--- a/media/base/pts_stream_unittest.cc
+++ b/media/base/pts_stream_unittest.cc
@@ -31,8 +31,8 @@ class PtsStreamTest : public testing::Test {
TEST_F(PtsStreamTest, NoTimestamp) {
// Simulate an uninitialized |video_frame| where we cannot determine a
// timestamp at all.
- video_frame_->SetTimestamp(kNoTimestamp);
- video_frame_->SetDuration(kNoTimestamp);
+ video_frame_->SetTimestamp(kNoTimestamp());
+ video_frame_->SetDuration(kNoTimestamp());
pts_stream_.UpdatePtsAndDuration(video_frame_);
EXPECT_EQ(0, pts_stream_.current_pts().InMicroseconds());
EXPECT_EQ(40000, pts_stream_.current_duration().InMicroseconds());
@@ -48,8 +48,8 @@ TEST_F(PtsStreamTest, LastKnownTimestamp) {
// Simulate an uninitialized |video_frame| where last known pts will be used
// to generate a timestamp and |frame_duration| will be used to generate a
// duration.
- video_frame_->SetTimestamp(kNoTimestamp);
- video_frame_->SetDuration(kNoTimestamp);
+ video_frame_->SetTimestamp(kNoTimestamp());
+ video_frame_->SetDuration(kNoTimestamp());
pts_stream_.UpdatePtsAndDuration(video_frame_);
EXPECT_EQ(116, pts_stream_.current_pts().InMicroseconds());
EXPECT_EQ(40000, pts_stream_.current_duration().InMicroseconds());

Powered by Google App Engine
This is Rietveld 408576698