Stop using private APIs in tests.

Not sure it's much better, but at least this is public.

Bug: 6202480
Change-Id: If6cda78fbd32cfb068e0b2fcb637914939b044b3
main
Jean Chalard 2012-10-10 20:22:53 +09:00
parent 2752287c42
commit 6ae5e45118
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
// any subsequent post in this queue. However the queue itself is still fully functional!
// If we have a way of resetting "queue.mQuiting" then we can continue using it as normal,
// coming back to this method to run the messages.
MessageQueue queue = looper.getQueue();
MessageQueue queue = Looper.myQueue();
try {
// However there is no way of doing it externally, and mQuiting is private.
// So... get out the big guns.