summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-11-11 14:18:35 +0800
committerWu-cheng Li <wuchengli@google.com>2010-11-13 12:04:44 +0800
commit6eabb9b770a7c60cb92aa2e22f360754f32f39f8 (patch)
tree518cc22c29213a0147b37d10b0c667afd7175a6d /tests
parenta2cbd31e81bf6b4a65ade4a5c34c303546d57d8c (diff)
downloadLegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.zip
LegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.tar.gz
LegacyCamera-6eabb9b770a7c60cb92aa2e22f360754f32f39f8.tar.bz2
Close the camera application immediately when media server dies.
Crash the app earlier. Otherwise, the app will crash later in other places and the log is gone. Getting a new Camera object is not good because it's hard for the app to reset the current state. For example, the state can be autofocus, preview, snapshot, recording, saving thumbnail. bug:3178948 Change-Id: Ibb38e6bfe927ed2ab9b87e2ee47044be8b96727b
Diffstat (limited to 'tests')
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index 4960389..0fafb9d 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -214,14 +214,6 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
Log.v(TAG, "value of i :" + i);
getMemoryWriteToLog(output);
}
- //Check if the mediaserver died, if so, exit the test
- if (Camera.mMediaServerDied){
- mOut.write("\nmedia server died\n");
- mOut.flush();
- output.close();
- Camera.mMediaServerDied = false;
- assertTrue("Camera Image Capture", false);
- }
mOut.write(" ," + i);
mOut.flush();
}