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

Unified Diff: media/base/android/media_codec_decoder_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/android/media_codec_decoder_unittest.cc
diff --git a/media/base/android/media_codec_decoder_unittest.cc b/media/base/android/media_codec_decoder_unittest.cc
index 5192087e335fc507e49b26c9107db010017e886e..45f55a54365133a327dc3bab7d6d649b8d0de84f 100644
--- a/media/base/android/media_codec_decoder_unittest.cc
+++ b/media/base/android/media_codec_decoder_unittest.cc
@@ -194,9 +194,9 @@ class MediaCodecDecoderTest : public testing::Test {
pts_stat_.AddValue(last_buffered);
- if (stop_request_time_ != kNoTimestamp() &&
+ if (stop_request_time_ != kNoTimestamp &&
now_playing >= stop_request_time_) {
- stop_request_time_ = kNoTimestamp();
+ stop_request_time_ = kNoTimestamp;
decoder_->RequestToStop();
}
}
@@ -237,9 +237,8 @@ MediaCodecDecoderTest::MediaCodecDecoderTest()
is_prefetched_(false),
is_stopped_(false),
is_starved_(false),
- stop_request_time_(kNoTimestamp()),
- task_runner_(base::ThreadTaskRunnerHandle::Get()) {
-}
+ stop_request_time_(kNoTimestamp),
+ task_runner_(base::ThreadTaskRunnerHandle::Get()) {}
MediaCodecDecoderTest::~MediaCodecDecoderTest() {}

Powered by Google App Engine
This is Rietveld 408576698