| 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/process_util.h" | |
| 8 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 9 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
| 10 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/content_settings/host_content_settings_map.h" | 11 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 13 #include "chrome/browser/infobars/infobar.h" | 12 #include "chrome/browser/infobars/infobar.h" |
| 14 #include "chrome/browser/infobars/infobar_service.h" | 13 #include "chrome/browser/infobars/infobar_service.h" |
| 15 #include "chrome/browser/media/media_stream_infobar_delegate.h" | 14 #include "chrome/browser/media/media_stream_infobar_delegate.h" |
| 16 #include "chrome/browser/media/webrtc_browsertest_common.h" | 15 #include "chrome/browser/media/webrtc_browsertest_common.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 content::WebContents* tab_contents = LoadTestPageInTab(); | 262 content::WebContents* tab_contents = LoadTestPageInTab(); |
| 264 | 263 |
| 265 // If microphone blocking also blocked a AV call, the second call here | 264 // If microphone blocking also blocked a AV call, the second call here |
| 266 // would hang. The requester should only be granted access to the cam though. | 265 // would hang. The requester should only be granted access to the cam though. |
| 267 TestDenyWithSpecificConstraints(tab_contents, kAudioOnlyCallConstraints); | 266 TestDenyWithSpecificConstraints(tab_contents, kAudioOnlyCallConstraints); |
| 268 TestAcceptOnInfobarWithSpecificConstraints(tab_contents, | 267 TestAcceptOnInfobarWithSpecificConstraints(tab_contents, |
| 269 kAudioVideoCallConstraints); | 268 kAudioVideoCallConstraints); |
| 270 | 269 |
| 271 // TODO(phoglund): verify the requester actually only gets video tracks. | 270 // TODO(phoglund): verify the requester actually only gets video tracks. |
| 272 } | 271 } |
| OLD | NEW |