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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 1576283003: Have HTMLMediaElement::play() return a Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 624aaa7089913c0809d2db48a6e810cdee41db17..532abb4f85c47698f81f0dd25d91424fe6a601b4 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2548,8 +2548,8 @@ double Internals::monotonicTimeToZeroBasedDocumentTime(double platformTime, Exce
void Internals::setMediaElementNetworkState(HTMLMediaElement* mediaElement, int state)
{
ASSERT(mediaElement);
- ASSERT(state >= HTMLMediaElement::NetworkState::NETWORK_EMPTY);
- ASSERT(state <= HTMLMediaElement::NetworkState::NETWORK_NO_SOURCE);
+ ASSERT(state >= WebMediaPlayer::NetworkState::NetworkStateEmpty);
+ ASSERT(state <= WebMediaPlayer::NetworkState::NetworkStateDecodeError);
mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(state));
}

Powered by Google App Engine
This is Rietveld 408576698