AI 144326: Start the thread that initializes the camera for the test under lock to make sure the monitor is notified after it has started waiting.

BUG=1731117

Automated import of CL 144326
This commit is contained in:
Jean-Michel Trivi
2009-04-02 16:11:58 -07:00
committed by The Android Open Source Project
parent 7c3b6285c3
commit 36951ab6c2

View File

@@ -228,8 +228,8 @@ public class CameraTest extends ActivityInstrumentationTestCase<MediaFrameworkTe
*/
@LargeTest
public void testTakePicture() throws Exception {
initializeMessageLooper();
synchronized (lock) {
initializeMessageLooper();
try {
lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
} catch(Exception e) {
@@ -250,8 +250,8 @@ public class CameraTest extends ActivityInstrumentationTestCase<MediaFrameworkTe
*/
@LargeTest
public void testCheckPreview() throws Exception {
initializeMessageLooper();
synchronized (lock) {
initializeMessageLooper();
try {
lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
} catch(Exception e) {