diff options
Diffstat (limited to 'content/browser/media/webrtc_getusermedia_browsertest.cc')
-rw-r--r-- | content/browser/media/webrtc_getusermedia_browsertest.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/content/browser/media/webrtc_getusermedia_browsertest.cc b/content/browser/media/webrtc_getusermedia_browsertest.cc index 15d9ca5..9d1bb51 100644 --- a/content/browser/media/webrtc_getusermedia_browsertest.cc +++ b/content/browser/media/webrtc_getusermedia_browsertest.cc @@ -77,7 +77,10 @@ namespace content { class WebRtcGetUserMediaBrowserTest: public WebRtcContentBrowserTest { public: - WebRtcGetUserMediaBrowserTest() : trace_log_(NULL) {} + WebRtcGetUserMediaBrowserTest() : trace_log_(NULL) { + // Automatically grant device permission. + AppendUseFakeUIForMediaStreamFlag(); + } ~WebRtcGetUserMediaBrowserTest() override {} void StartTracing() { @@ -743,7 +746,10 @@ class WebRtcConstraintsBrowserTest : public WebRtcContentBrowserTest, public testing::WithParamInterface<UserMediaSizes> { public: - WebRtcConstraintsBrowserTest() : user_media_(GetParam()) {} + WebRtcConstraintsBrowserTest() : user_media_(GetParam()) { + // Automatically grant device permission. + AppendUseFakeUIForMediaStreamFlag(); + } const UserMediaSizes& user_media() const { return user_media_; } private: |