| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <ctime> | 7 #include <ctime> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // segment is significantly different in length compared to the same segment in | 54 // segment is significantly different in length compared to the same segment in |
| 55 // the reference file, there's something fishy going on. | 55 // the reference file, there's something fishy going on. |
| 56 const int kMaxAgcSegmentDiffMs = | 56 const int kMaxAgcSegmentDiffMs = |
| 57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
| 58 // Something is different on Mac; http://crbug.com/477653. | 58 // Something is different on Mac; http://crbug.com/477653. |
| 59 600; | 59 600; |
| 60 #else | 60 #else |
| 61 200; | 61 200; |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 #if defined(OS_LINUX) || defined(OS_MACOSX) | 64 #if defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX) |
| 65 #define MAYBE_WebRtcAudioQualityBrowserTest WebRtcAudioQualityBrowserTest | 65 #define MAYBE_WebRtcAudioQualityBrowserTest WebRtcAudioQualityBrowserTest |
| 66 #else | 66 #else |
| 67 // Not implemented on Android, ChromeOS etc. | 67 // Not implemented on Android, ChromeOS etc. |
| 68 // Disabled on win while bots are configured: http://crbug.com/625808. | |
| 69 #define MAYBE_WebRtcAudioQualityBrowserTest DISABLED_WebRtcAudioQualityBrowserTe
st | 68 #define MAYBE_WebRtcAudioQualityBrowserTest DISABLED_WebRtcAudioQualityBrowserTe
st |
| 70 #endif | 69 #endif |
| 71 | 70 |
| 72 } // namespace | 71 } // namespace |
| 73 | 72 |
| 74 // Test we can set up a WebRTC call and play audio through it. | 73 // Test we can set up a WebRTC call and play audio through it. |
| 75 // | 74 // |
| 76 // If you're not a googler and want to run this test, you need to provide a | 75 // If you're not a googler and want to run this test, you need to provide a |
| 77 // pesq binary for your platform (and sox.exe on windows). Read more on how | 76 // pesq binary for your platform (and sox.exe on windows). Read more on how |
| 78 // resources are managed in chrome/test/data/webrtc/resources/README. | 77 // resources are managed in chrome/test/data/webrtc/resources/README. |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 } | 803 } |
| 805 | 804 |
| 806 // Since the AGC is off here there should be no gain at all. | 805 // Since the AGC is off here there should be no gain at all. |
| 807 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, | 806 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, |
| 808 MANUAL_TestAutoGainIsOffWithAudioProcessingOff) { | 807 MANUAL_TestAutoGainIsOffWithAudioProcessingOff) { |
| 809 const char* kAudioCallWithoutAudioProcessing = | 808 const char* kAudioCallWithoutAudioProcessing = |
| 810 "{audio: { mandatory: { echoCancellation: false } } }"; | 809 "{audio: { mandatory: { echoCancellation: false } } }"; |
| 811 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( | 810 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( |
| 812 kReferenceFile, kAudioCallWithoutAudioProcessing, "_no_agc")); | 811 kReferenceFile, kAudioCallWithoutAudioProcessing, "_no_agc")); |
| 813 } | 812 } |
| OLD | NEW |