Index: content/browser/webrtc/webrtc_getusermedia_browsertest.cc |
diff --git a/content/browser/webrtc/webrtc_getusermedia_browsertest.cc b/content/browser/webrtc/webrtc_getusermedia_browsertest.cc |
index 33e294510546c2c6512cf7824fdd871b3af6f8a6..ea758623ba406a2159f4ebaf0767fe297c58636e 100644 |
--- a/content/browser/webrtc/webrtc_getusermedia_browsertest.cc |
+++ b/content/browser/webrtc/webrtc_getusermedia_browsertest.cc |
@@ -50,6 +50,8 @@ static const char kRenderClonedTrackMediastreamAndStop[] = |
"renderClonedTrackMediastreamAndStop"; |
static const char kRenderDuplicatedMediastreamAndStop[] = |
"renderDuplicatedMediastreamAndStop"; |
+static const char kGetDepthStreamAndCallCreateImageBitmap[] = |
+ "getDepthStreamAndCallCreateImageBitmap"; |
// Results returned by JS. |
static const char kOK[] = "OK"; |
@@ -344,6 +346,17 @@ IN_PROC_BROWSER_TEST_F(WebRtcGetUserMediaBrowserTest, |
} |
IN_PROC_BROWSER_TEST_F(WebRtcGetUserMediaBrowserTest, |
+ GetDepthStreamAndCallCreateImageBitmap) { |
+ ASSERT_TRUE(embedded_test_server()->Start()); |
+ |
+ GURL url(embedded_test_server()->GetURL("/media/getusermedia.html")); |
+ NavigateToURL(shell(), url); |
+ |
+ ExecuteJavascriptAndWaitForOk(base::StringPrintf( |
+ "%s({video: true});", kGetDepthStreamAndCallCreateImageBitmap)); |
+} |
+ |
+IN_PROC_BROWSER_TEST_F(WebRtcGetUserMediaBrowserTest, |
GetAudioAndVideoStreamAndStop) { |
ASSERT_TRUE(embedded_test_server()->Start()); |