| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 11 #include "chrome/browser/media/media_stream_devices_controller.h" | 11 #include "chrome/browser/media/media_stream_devices_controller.h" |
| 12 #include "chrome/browser/media/webrtc_browsertest_base.h" | 12 #include "chrome/browser/media/webrtc_browsertest_base.h" |
| 13 #include "chrome/browser/media/webrtc_browsertest_common.h" | 13 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_tabstrip.h" | 16 #include "chrome/browser/ui/browser_tabstrip.h" |
| 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 18 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" | |
| 19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 21 #include "chrome/test/base/test_switches.h" | 20 #include "chrome/test/base/test_switches.h" |
| 22 #include "chrome/test/base/ui_test_utils.h" | 21 #include "chrome/test/base/ui_test_utils.h" |
| 23 #include "components/content_settings/core/browser/host_content_settings_map.h" | 22 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 24 #include "components/content_settings/core/common/content_settings_types.h" | 23 #include "components/content_settings/core/common/content_settings_types.h" |
| 25 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
| 26 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
| 27 #include "content/public/common/media_stream_request.h" | 26 #include "content/public/common/media_stream_request.h" |
| 28 #include "content/public/common/origin_util.h" | 27 #include "content/public/common/origin_util.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 IN_PROC_BROWSER_TEST_F(MediaStreamPermissionTest, | 160 IN_PROC_BROWSER_TEST_F(MediaStreamPermissionTest, |
| 162 DenyingCameraDoesNotCauseStickyDenyForMics) { | 161 DenyingCameraDoesNotCauseStickyDenyForMics) { |
| 163 content::WebContents* tab_contents = LoadTestPageInTab(); | 162 content::WebContents* tab_contents = LoadTestPageInTab(); |
| 164 | 163 |
| 165 GetUserMediaWithSpecificConstraintsAndDeny(tab_contents, | 164 GetUserMediaWithSpecificConstraintsAndDeny(tab_contents, |
| 166 kVideoOnlyCallConstraints); | 165 kVideoOnlyCallConstraints); |
| 167 EXPECT_TRUE(GetUserMediaWithSpecificConstraintsAndAccept( | 166 EXPECT_TRUE(GetUserMediaWithSpecificConstraintsAndAccept( |
| 168 tab_contents, kAudioOnlyCallConstraints)); | 167 tab_contents, kAudioOnlyCallConstraints)); |
| 169 } | 168 } |
| OLD | NEW |