#include "base/command_line.h"
#include "base/strings/stringprintf.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/guest_view/web_view/web_view_apitest.h"
#include "extensions/test/extension_test_message_listener.h"
#include "media/base/media_switches.h"
namespace {
class MockWebContentsDelegate : public content::WebContentsDelegate { … };
}
namespace extensions {
class WebViewMediaAccessAPITest : public WebViewAPITest { … };
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestAllow) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestAllowAndThenDeny) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestAllowAsync) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestAllowTwice) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestCheck) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestDeny) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestDenyThenAllowThrows) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestDenyWithPreventDefault) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, TestNoListenersImplyDeny) { … }
IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest,
TestNoPreventDefaultImpliesDeny) { … }
}