| 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 // Currently fails on Windows bots. http://crbug.com/642294. | |
| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 DeleteFileUnlessTestFailed(actual_files_dir, true); | 798 DeleteFileUnlessTestFailed(actual_files_dir, true); |
| 800 } | 799 } |
| 801 | 800 |
| 802 // The AGC should apply non-zero gain here. | 801 // The AGC should apply non-zero gain here. |
| 803 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, | 802 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, |
| 804 MANUAL_TestAutoGainControlOnLowAudio) { | 803 MANUAL_TestAutoGainControlOnLowAudio) { |
| 805 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( | 804 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( |
| 806 kReferenceFile, kAudioOnlyCallConstraints, "_with_agc")); | 805 kReferenceFile, kAudioOnlyCallConstraints, "_with_agc")); |
| 807 } | 806 } |
| 808 | 807 |
| 809 // The test is failing on the Win7 bot. | |
| 810 // http://crbug.com/625808#c23 | |
| 811 #if defined(OS_WIN) | |
| 812 #define MAYBE_MANUAL_TestAutoGainIsOffWithAudioProcessingOff\ | |
| 813 DISABLED_TestAutoGainIsOffWithAudioProcessingOff | |
| 814 #else | |
| 815 #define MAYBE_MANUAL_TestAutoGainIsOffWithAudioProcessingOff\ | |
| 816 MANUAL_TestAutoGainIsOffWithAudioProcessingOff | |
| 817 #endif | |
| 818 // Since the AGC is off here there should be no gain at all. | 808 // Since the AGC is off here there should be no gain at all. |
| 819 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, | 809 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcAudioQualityBrowserTest, |
| 820 MAYBE_MANUAL_TestAutoGainIsOffWithAudioProcessingOff) { | 810 MANUAL_TestAutoGainIsOffWithAudioProcessingOff) { |
| 821 const char* kAudioCallWithoutAudioProcessing = | 811 const char* kAudioCallWithoutAudioProcessing = |
| 822 "{audio: { mandatory: { echoCancellation: false } } }"; | 812 "{audio: { mandatory: { echoCancellation: false } } }"; |
| 823 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( | 813 ASSERT_NO_FATAL_FAILURE(TestAutoGainControl( |
| 824 kReferenceFile, kAudioCallWithoutAudioProcessing, "_no_agc")); | 814 kReferenceFile, kAudioCallWithoutAudioProcessing, "_no_agc")); |
| 825 } | 815 } |
| OLD | NEW |