Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: webrtc/modules/audio_device/ios/audio_device_unittest_ios.cc

Issue 2595303002: Disables AudioDeviceTest.StartStopPlayout on iOS (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698