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 d124861ed419e3e543b309228fa97fa55e802566..0f39f0a9bc7dfc44352d6f2ef33dfc5f1051713b 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -2561,4 +2561,12 @@ double Internals::monotonicTimeToZeroBasedDocumentTime(double platformTime, Exce |
return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(platformTime); |
} |
+void Internals::setMediaElementNetworkState(HTMLMediaElement* mediaElement, int32_t state) |
+{ |
+ ASSERT(mediaElement); |
+ ASSERT(state >= HTMLMediaElement::NetworkState::NETWORK_EMPTY); |
+ ASSERT(state <= HTMLMediaElement::NetworkState::NETWORK_NO_SOURCE); |
+ mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(state)); |
+} |
+ |
} // namespace blink |