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/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 content::WebContents* tab_contents = LoadTestPageInTab(); | 277 content::WebContents* tab_contents = LoadTestPageInTab(); |
279 | 278 |
280 // If microphone blocking also blocked a AV call, the second call here | 279 // If microphone blocking also blocked a AV call, the second call here |
281 // would hang. The requester should only be granted access to the cam though. | 280 // would hang. The requester should only be granted access to the cam though. |
282 TestDenyWithSpecificConstraints(tab_contents, kAudioOnlyCallConstraints); | 281 TestDenyWithSpecificConstraints(tab_contents, kAudioOnlyCallConstraints); |
283 TestAcceptOnInfobarWithSpecificConstraints(tab_contents, | 282 TestAcceptOnInfobarWithSpecificConstraints(tab_contents, |
284 kAudioVideoCallConstraints); | 283 kAudioVideoCallConstraints); |
285 | 284 |
286 // TODO(phoglund): verify the requester actually only gets video tracks. | 285 // TODO(phoglund): verify the requester actually only gets video tracks. |
287 } | 286 } |
OLD | NEW |