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..e4f0b93eccf9e90c403e3f610a1b10e09b4ca4bf 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, long 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 |