summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-05-30 18:51:09 +0800
committerWu-cheng Li <wuchengli@google.com>2011-05-30 19:16:05 +0800
commit91b5b4ebf8776ace64534d6395cd4a133efdca86 (patch)
treee72b119fb511992e16702617fd188bb54641cbee /tests
parentb9286870d56f085e74b0142eaa138bb83b5e0eb3 (diff)
downloadLegacyCamera-91b5b4ebf8776ace64534d6395cd4a133efdca86.zip
LegacyCamera-91b5b4ebf8776ace64534d6395cd4a133efdca86.tar.gz
LegacyCamera-91b5b4ebf8776ace64534d6395cd4a133efdca86.tar.bz2
Fix testExtraSizeLimit test.
If the size limit is too small, sometimes MediaRecorder stop will fail. Change the quality to low and increase the size limit. bug:4495097 Change-Id: I75ef15cc4b7f34d00b16eb4df821b0275d55d972
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/camera/functional/VideoCaptureIntentTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/camera/functional/VideoCaptureIntentTest.java b/tests/src/com/android/camera/functional/VideoCaptureIntentTest.java
index b2a007e..3b2ca1e 100644
--- a/tests/src/com/android/camera/functional/VideoCaptureIntentTest.java
+++ b/tests/src/com/android/camera/functional/VideoCaptureIntentTest.java
@@ -153,11 +153,12 @@ public class VideoCaptureIntentTest extends ActivityInstrumentationTestCase2 <Vi
@LargeTest
public void testExtraSizeLimit() throws Exception {
mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp");
- final long sizeLimit = 10000; // bytes
+ final long sizeLimit = 500000; // bytes
Uri uri = Uri.fromFile(mFile);
mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit);
+ mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up
setActivityIntent(mIntent);
getActivity();