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

Side by Side Diff: media/audio/android/audio_android_unittest.cc

Issue 286023005: Disable AudioAndroidOutputTest.StartOutputStreamCallbacksNonDefaultParameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« 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 // 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 "base/android/build_info.h" 5 #include "base/android/build_info.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 TEST_F(AudioAndroidOutputTest, StartOutputStreamCallbacks) { 827 TEST_F(AudioAndroidOutputTest, StartOutputStreamCallbacks) {
828 GetDefaultOutputStreamParametersOnAudioThread(); 828 GetDefaultOutputStreamParametersOnAudioThread();
829 StartOutputStreamCallbacks(audio_output_parameters()); 829 StartOutputStreamCallbacks(audio_output_parameters());
830 } 830 }
831 831
832 // Start output streaming using non default output parameters and ensure that 832 // Start output streaming using non default output parameters and ensure that
833 // the callback sequence is sane. The only change we make in this test is to 833 // the callback sequence is sane. The only change we make in this test is to
834 // select a 10ms buffer size instead of the default size and to open up the 834 // select a 10ms buffer size instead of the default size and to open up the
835 // device in mono. 835 // device in mono.
836 // TODO(henrika): possibly add support for more variations. 836 // TODO(henrika): possibly add support for more variations.
837 TEST_F(AudioAndroidOutputTest, StartOutputStreamCallbacksNonDefaultParameters) { 837 TEST_F(AudioAndroidOutputTest, DISABLED_StartOutputStreamCallbacksNonDefaultPara meters) {
838 GetDefaultOutputStreamParametersOnAudioThread(); 838 GetDefaultOutputStreamParametersOnAudioThread();
839 AudioParameters params(audio_output_parameters().format(), 839 AudioParameters params(audio_output_parameters().format(),
840 CHANNEL_LAYOUT_MONO, 840 CHANNEL_LAYOUT_MONO,
841 audio_output_parameters().sample_rate(), 841 audio_output_parameters().sample_rate(),
842 audio_output_parameters().bits_per_sample(), 842 audio_output_parameters().bits_per_sample(),
843 audio_output_parameters().sample_rate() / 100); 843 audio_output_parameters().sample_rate() / 100);
844 StartOutputStreamCallbacks(params); 844 StartOutputStreamCallbacks(params);
845 } 845 }
846 846
847 // Play out a PCM file segment in real time and allow the user to verify that 847 // Play out a PCM file segment in real time and allow the user to verify that
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20)); 979 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20));
980 printf("\n"); 980 printf("\n");
981 StopAndCloseAudioOutputStreamOnAudioThread(); 981 StopAndCloseAudioOutputStreamOnAudioThread();
982 StopAndCloseAudioInputStreamOnAudioThread(); 982 StopAndCloseAudioInputStreamOnAudioThread();
983 } 983 }
984 984
985 INSTANTIATE_TEST_CASE_P(AudioAndroidInputTest, AudioAndroidInputTest, 985 INSTANTIATE_TEST_CASE_P(AudioAndroidInputTest, AudioAndroidInputTest,
986 testing::ValuesIn(RunAudioRecordInputPathTests())); 986 testing::ValuesIn(RunAudioRecordInputPathTests()));
987 987
988 } // namespace media 988 } // namespace media
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