OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 const int default_volume = GetSpeakerVolume(); | 817 const int default_volume = GetSpeakerVolume(); |
818 const int max_volume = GetMaxSpeakerVolume(); | 818 const int max_volume = GetMaxSpeakerVolume(); |
819 EXPECT_EQ(0, audio_device()->SetSpeakerVolume(max_volume)); | 819 EXPECT_EQ(0, audio_device()->SetSpeakerVolume(max_volume)); |
820 int new_volume = GetSpeakerVolume(); | 820 int new_volume = GetSpeakerVolume(); |
821 EXPECT_EQ(new_volume, max_volume); | 821 EXPECT_EQ(new_volume, max_volume); |
822 EXPECT_EQ(0, audio_device()->SetSpeakerVolume(default_volume)); | 822 EXPECT_EQ(0, audio_device()->SetSpeakerVolume(default_volume)); |
823 } | 823 } |
824 | 824 |
825 // Tests that playout can be initiated, started and stopped. No audio callback | 825 // Tests that playout can be initiated, started and stopped. No audio callback |
826 // is registered in this test. | 826 // is registered in this test. |
827 TEST_F(AudioDeviceTest, StartStopPlayout) { | 827 // Flaky on our trybots makes this test unusable. |
| 828 // https://code.google.com/p/webrtc/issues/detail?id=5046 |
| 829 TEST_F(AudioDeviceTest, DISABLED_StartStopPlayout) { |
828 StartPlayout(); | 830 StartPlayout(); |
829 StopPlayout(); | 831 StopPlayout(); |
830 StartPlayout(); | 832 StartPlayout(); |
831 StopPlayout(); | 833 StopPlayout(); |
832 } | 834 } |
833 | 835 |
834 // Tests that recording can be initiated, started and stopped. No audio callback | 836 // Tests that recording can be initiated, started and stopped. No audio callback |
835 // is registered in this test. | 837 // is registered in this test. |
836 TEST_F(AudioDeviceTest, StartStopRecording) { | 838 TEST_F(AudioDeviceTest, StartStopRecording) { |
837 StartRecording(); | 839 StartRecording(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 StopPlayout(); | 1009 StopPlayout(); |
1008 StopRecording(); | 1010 StopRecording(); |
1009 // Verify that the correct number of transmitted impulses are detected. | 1011 // Verify that the correct number of transmitted impulses are detected. |
1010 EXPECT_EQ(latency_audio_stream->num_latency_values(), | 1012 EXPECT_EQ(latency_audio_stream->num_latency_values(), |
1011 static_cast<size_t>( | 1013 static_cast<size_t>( |
1012 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); | 1014 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); |
1013 latency_audio_stream->PrintResults(); | 1015 latency_audio_stream->PrintResults(); |
1014 } | 1016 } |
1015 | 1017 |
1016 } // namespace webrtc | 1018 } // namespace webrtc |
OLD | NEW |