| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/macros.h" |
| 5 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 6 #include "content/public/browser/web_contents_delegate.h" | 7 #include "content/public/browser/web_contents_delegate.h" |
| 7 #include "content/public/test/browser_test_utils.h" | 8 #include "content/public/test/browser_test_utils.h" |
| 8 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" | 9 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" |
| 9 #include "extensions/test/extension_test_message_listener.h" | 10 #include "extensions/test/extension_test_message_listener.h" |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 // This class intercepts media access request from the embedder. The request | 14 // This class intercepts media access request from the embedder. The request |
| 14 // should be triggered only if the embedder API (from tests) allows the request | 15 // should be triggered only if the embedder API (from tests) allows the request |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 RunTest("testNoListenersImplyDeny"); | 163 RunTest("testNoListenersImplyDeny"); |
| 163 } | 164 } |
| 164 | 165 |
| 165 IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, | 166 IN_PROC_BROWSER_TEST_F(WebViewMediaAccessAPITest, |
| 166 TestNoPreventDefaultImpliesDeny) { | 167 TestNoPreventDefaultImpliesDeny) { |
| 167 LaunchApp("web_view/media_access/deny"); | 168 LaunchApp("web_view/media_access/deny"); |
| 168 RunTest("testNoPreventDefaultImpliesDeny"); | 169 RunTest("testNoPreventDefaultImpliesDeny"); |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace extensions | 172 } // namespace extensions |
| OLD | NEW |