Factor out the TextToSpeech engine initialization to a TextToSpeechTestCase helper class.

This commit is contained in:
Reece H. Dunn
2013-07-28 16:31:48 +01:00
parent 23005243da
commit 4a1743b174
3 changed files with 118 additions and 89 deletions
@@ -31,14 +31,13 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.media.AudioFormat;
import android.speech.tts.TextToSpeech;
import android.test.AndroidTestCase;
import android.util.Log;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.AnyOf.anyOf;
public class SpeechSynthesisTest extends AndroidTestCase
public class SpeechSynthesisTest extends TextToSpeechTestCase
{
public static final Locale af = new Locale("af"); // Afrikaans
public static final Locale afr = new Locale("afr"); // Afrikaans