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

Unified Diff: media/test/mock_media_source.h

Issue 2920243002: Declare kAppendWholeFile as constexpr (Closed)
Patch Set: Created 3 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 | « no previous file | media/test/mock_media_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/mock_media_source.h
diff --git a/media/test/mock_media_source.h b/media/test/mock_media_source.h
index 286f6fd7182a38c57eca4f126c6216587a631db0..760c84bb6c12798d00e177d913a77a3a19be8dc7 100644
--- a/media/test/mock_media_source.h
+++ b/media/test/mock_media_source.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_TEST_MOCK_MEDIA_SOURCE_H_
#define MEDIA_TEST_MOCK_MEDIA_SOURCE_H_
+#include <limits>
+
#include "base/time/time.h"
#include "media/base/demuxer.h"
#include "media/base/pipeline_status.h"
@@ -14,7 +16,7 @@
namespace media {
// Indicates that the whole file should be appended.
-extern const size_t kAppendWholeFile;
+constexpr size_t kAppendWholeFile = std::numeric_limits<size_t>::max();
// Helper class that emulates calls made on the ChunkDemuxer by the
// Media Source API.
« no previous file with comments | « no previous file | media/test/mock_media_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698