Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/media/chrome_media_stream_infobar_browsertest.cc

Issue 276993002: Revert 269271 "Mac Video Capture Device: split VCD into VCD and ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1984/src/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.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.h" 10 #include "chrome/browser/content_settings/host_content_settings_map.h"
11 #include "chrome/browser/infobars/infobar_service.h" 11 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/browser/media/media_stream_devices_controller.h" 12 #include "chrome/browser/media/media_stream_devices_controller.h"
13 #include "chrome/browser/media/webrtc_browsertest_base.h" 13 #include "chrome/browser/media/webrtc_browsertest_base.h"
14 #include "chrome/browser/media/webrtc_browsertest_common.h" 14 #include "chrome/browser/media/webrtc_browsertest_common.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/browser_tabstrip.h" 17 #include "chrome/browser/ui/browser_tabstrip.h"
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" 18 #include "chrome/browser/ui/tabs/tab_strip_model.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/content_settings_types.h" 20 #include "chrome/common/content_settings_types.h"
21 #include "chrome/test/base/in_process_browser_test.h" 21 #include "chrome/test/base/in_process_browser_test.h"
22 #include "chrome/test/base/test_switches.h" 22 #include "chrome/test/base/test_switches.h"
23 #include "chrome/test/base/ui_test_utils.h" 23 #include "chrome/test/base/ui_test_utils.h"
24 #include "components/infobars/core/infobar.h" 24 #include "components/infobars/core/infobar.h"
25 #include "content/public/browser/notification_service.h" 25 #include "content/public/browser/notification_service.h"
26 #include "content/public/common/media_stream_request.h" 26 #include "content/public/common/media_stream_request.h"
27 #include "content/public/test/browser_test_utils.h" 27 #include "content/public/test/browser_test_utils.h"
28 #include "media/base/media_switches.h"
29 #include "net/test/spawned_test_server/spawned_test_server.h" 28 #include "net/test/spawned_test_server/spawned_test_server.h"
30 29
31 30
32 // MediaStreamInfoBarTest ----------------------------------------------------- 31 // MediaStreamInfoBarTest -----------------------------------------------------
33 32
34 class MediaStreamInfoBarTest : public WebRtcTestBase { 33 class MediaStreamInfoBarTest : public WebRtcTestBase {
35 public: 34 public:
36 MediaStreamInfoBarTest() {} 35 MediaStreamInfoBarTest() {}
37 virtual ~MediaStreamInfoBarTest() {} 36 virtual ~MediaStreamInfoBarTest() {}
38 37
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 IN_PROC_BROWSER_TEST_F(MediaStreamInfoBarTest, 283 IN_PROC_BROWSER_TEST_F(MediaStreamInfoBarTest,
285 MAYBE_DenyingCameraDoesNotCauseStickyDenyForMics) { 284 MAYBE_DenyingCameraDoesNotCauseStickyDenyForMics) {
286 content::WebContents* tab_contents = LoadTestPageInTab(); 285 content::WebContents* tab_contents = LoadTestPageInTab();
287 286
288 // If camera blocking also blocked mics, the second call here would hang. 287 // If camera blocking also blocked mics, the second call here would hang.
289 GetUserMediaWithSpecificConstraintsAndDeny(tab_contents, 288 GetUserMediaWithSpecificConstraintsAndDeny(tab_contents,
290 kVideoOnlyCallConstraints); 289 kVideoOnlyCallConstraints);
291 GetUserMediaWithSpecificConstraintsAndAccept(tab_contents, 290 GetUserMediaWithSpecificConstraintsAndAccept(tab_contents,
292 kAudioOnlyCallConstraints); 291 kAudioOnlyCallConstraints);
293 } 292 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/web_view_browsertest.cc ('k') | chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698