Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65543476 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by The Android Open Source Project
Browse files

AI 144327: am: CL 144326 Start the thread that initializes the camera for the...

AI 144327: am: CL 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.
  Original author: jmtrivi
  Merged from: //branches/cupcake/...

Automated import of CL 144327
parent 1b01f87b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {