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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 TEST_F(AudioDeviceTest, InitTerminate) { | 582 TEST_F(AudioDeviceTest, InitTerminate) { |
583 // Initialization is part of the test fixture. | 583 // Initialization is part of the test fixture. |
584 EXPECT_TRUE(audio_device()->Initialized()); | 584 EXPECT_TRUE(audio_device()->Initialized()); |
585 EXPECT_EQ(0, audio_device()->Terminate()); | 585 EXPECT_EQ(0, audio_device()->Terminate()); |
586 EXPECT_FALSE(audio_device()->Initialized()); | 586 EXPECT_FALSE(audio_device()->Initialized()); |
587 } | 587 } |
588 | 588 |
589 // Tests that playout can be initiated, started and stopped. No audio callback | 589 // Tests that playout can be initiated, started and stopped. No audio callback |
590 // is registered in this test. | 590 // is registered in this test. |
591 TEST_F(AudioDeviceTest, StartStopPlayout) { | 591 // Failing when running on real iOS devices: bugs.webrtc.org/6889. |
| 592 TEST_F(AudioDeviceTest, DISABLED_StartStopPlayout) { |
592 StartPlayout(); | 593 StartPlayout(); |
593 StopPlayout(); | 594 StopPlayout(); |
594 StartPlayout(); | 595 StartPlayout(); |
595 StopPlayout(); | 596 StopPlayout(); |
596 } | 597 } |
597 | 598 |
598 // Tests that recording can be initiated, started and stopped. No audio callback | 599 // Tests that recording can be initiated, started and stopped. No audio callback |
599 // is registered in this test. | 600 // is registered in this test. |
600 TEST_F(AudioDeviceTest, StartStopRecording) { | 601 TEST_F(AudioDeviceTest, StartStopRecording) { |
601 StartRecording(); | 602 StartRecording(); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 StopPlayout(); | 816 StopPlayout(); |
816 StopRecording(); | 817 StopRecording(); |
817 // Verify that the correct number of transmitted impulses are detected. | 818 // Verify that the correct number of transmitted impulses are detected. |
818 EXPECT_EQ(latency_audio_stream->num_latency_values(), | 819 EXPECT_EQ(latency_audio_stream->num_latency_values(), |
819 static_cast<size_t>( | 820 static_cast<size_t>( |
820 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); | 821 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); |
821 latency_audio_stream->PrintResults(); | 822 latency_audio_stream->PrintResults(); |
822 } | 823 } |
823 | 824 |
824 } // namespace webrtc | 825 } // namespace webrtc |
OLD | NEW |