Chromium Code Reviews| 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..31c13dedd144d31500a09346bb16a47d97203155 100644 |
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp |
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
| @@ -2561,4 +2561,10 @@ double Internals::monotonicTimeToZeroBasedDocumentTime(double platformTime, Exce |
| return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(platformTime); |
| } |
| +void Internals::setMediaElementNetworkState(HTMLMediaElement* mediaElement, double state) |
| +{ |
| + ASSERT(mediaElement); |
| + mediaElement->setNetworkState((WebMediaPlayer::NetworkState)((int)state)); |
|
philipj_slow
2015/10/28 15:14:02
Use static_cast and first assert that state is in
liberato (no reviews please)
2015/10/29 16:10:26
Done.
|
| +} |
| + |
| } // namespace blink |