summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Shan Emily Lau <yslau@google.com>2009-09-16 18:15:38 -0700
committerYu Shan Emily Lau <yslau@google.com>2009-09-16 18:19:41 -0700
commit8bbfc4bc3dc0527b8954ecb7ceee1d774386e81e (patch)
tree66b71314473d950e927a4676ef96805dac4fe526
parentf082286de4246d18fb1f1059442522efa4b9891c (diff)
downloadLegacyCamera-8bbfc4bc3dc0527b8954ecb7ceee1d774386e81e.zip
LegacyCamera-8bbfc4bc3dc0527b8954ecb7ceee1d774386e81e.tar.gz
LegacyCamera-8bbfc4bc3dc0527b8954ecb7ceee1d774386e81e.tar.bz2
modified: tests/src/com/android/camera/stress/ImageCapture.java
Modify the test for the new UI.
-rwxr-xr-xtests/src/com/android/camera/stress/ImageCapture.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java
index d4c7550..33f373d 100755
--- a/tests/src/com/android/camera/stress/ImageCapture.java
+++ b/tests/src/com/android/camera/stress/ImageCapture.java
@@ -30,6 +30,7 @@ import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
+import android.content.Intent;
/**
* Junit / Instrumentation test case for camera test
*
@@ -245,9 +246,9 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> {
mOut.write("No of loops :" + TOTAL_NUMBER_OF_VIDEOCAPTURE + "\n");
mOut.write("loop: ");
// Switch to the video mode
- inst.sendKeyDownUpSync(KeyEvent.KEYCODE_MENU);
- inst.sendKeyDownUpSync(KeyEvent.KEYCODE_DPAD_CENTER);
-
+ Intent intent = new Intent();
+ intent.setClassName("com.android.camera",
+ "com.android.camera.VideoCamera");
for (int i = 0; i < TOTAL_NUMBER_OF_VIDEOCAPTURE; i++) {
Thread.sleep(WAIT_FOR_PREVIEW);
// record a video