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

Side by Side Diff: webrtc/modules/audio_device/android/audio_device_unittest.cc

Issue 1374963003: Disabling AudioDeviceTest.StartStopPlayout on Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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