commit | be21d5c26e5092d25b9ebad76dc16f289d8bcfcf | [log] [tgz] |
---|---|---|
author | Sergey Beliakov <sbeliakov@google.com> | Mon Aug 22 16:11:46 2016 +0100 |
committer | Sergey Beliakov <sbeliakov@google.com> | Thu Sep 08 13:04:33 2016 +0000 |
tree | 651098a963636ca2d79f81634dde4d75e311c592 | |
parent | a2afcdc0c15409f871ce627d0073dec134f960a0 [diff] |
Fix tts tests for Android Wear. All test from android.speech.tts.cts.TextToSpeechTest contained checks for mTts == null except one: testSpeakStop and it was failing on Android Wear, so I added the check to that test as well. Bug: 30901940 Change-Id: I924bb30a1b65a05c9b0ae7499d91b37db3302f9b
diff --git a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java index 43b0fe3..c117745 100644 --- a/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java +++ b/tests/tests/speech/src/android/speech/tts/cts/TextToSpeechTest.java
@@ -144,6 +144,9 @@ } public void testSpeakStop() throws Exception { + if (mTts == null) { + return; + } getTts().stop(); final int iterations = 20; for (int i = 0; i < iterations; i++) {