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

Unified Diff: media/base/decoder_buffer_queue_unittest.cc

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/decoder_buffer_queue_unittest.cc
diff --git a/media/base/decoder_buffer_queue_unittest.cc b/media/base/decoder_buffer_queue_unittest.cc
index bc627fdeb70fc66455158b379cb8d89d614d10ec..be2a4b2b3a32cd26e221360b25688ac4607860b9 100644
--- a/media/base/decoder_buffer_queue_unittest.cc
+++ b/media/base/decoder_buffer_queue_unittest.cc
@@ -11,13 +11,13 @@ namespace media {
static base::TimeDelta ToTimeDelta(int seconds) {
if (seconds < 0)
- return kNoTimestamp();
+ return kNoTimestamp;
return base::TimeDelta::FromSeconds(seconds);
}
// Helper to create buffers with specified timestamp in seconds.
//
-// Negative numbers will be converted to kNoTimestamp();
+// Negative numbers will be converted to kNoTimestamp;
static scoped_refptr<DecoderBuffer> CreateBuffer(int timestamp) {
scoped_refptr<DecoderBuffer> buffer = new DecoderBuffer(0);
buffer->set_timestamp(ToTimeDelta(timestamp));

Powered by Google App Engine
This is Rietveld 408576698