Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
cts
Commits
38c4a564
Commit
38c4a564
authored
12 years ago
by
Brian Muramatsu
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "Increase timeout for testSetMaxFileSize test" into jb-mr1-dev
parents
39c16ef7
1375b667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/tests/media/src/android/media/cts/MediaRecorderTest.java
.../tests/media/src/android/media/cts/MediaRecorderTest.java
+2
-2
No files found.
tests/tests/media/src/android/media/cts/MediaRecorderTest.java
View file @
38c4a564
...
...
@@ -48,7 +48,6 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase2<MediaStu
private
static
final
int
RECORD_TIME_LAPSE_MS
=
4000
;
private
static
final
int
RECORD_TIME_LONG_MS
=
20000
;
private
static
final
int
RECORDED_DUR_TOLERANCE_MS
=
1000
;
private
static
final
int
THREE_MINUTES
=
180000
;
private
static
final
int
VIDEO_WIDTH
=
176
;
private
static
final
int
VIDEO_HEIGHT
=
144
;
private
static
final
int
VIDEO_BIT_RATE_IN_BPS
=
128000
;
...
...
@@ -57,6 +56,7 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase2<MediaStu
private
static
final
int
AUDIO_NUM_CHANNELS
=
1
;
private
static
final
int
AUDIO_SAMPLE_RATE_HZ
=
8000
;
private
static
final
long
MAX_FILE_SIZE
=
5000
;
private
static
final
int
MAX_FILE_SIZE_TIMEOUT_MS
=
5
*
60
*
1000
;
private
static
final
int
MAX_DURATION_MSEC
=
2000
;
private
static
final
float
LATITUDE
=
0.0000f
;
private
static
final
float
LONGITUDE
=
-
180.0f
;
...
...
@@ -434,7 +434,7 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase2<MediaStu
// Recording a scene with moving objects would greatly help reduce
// the time for waiting.
if
(!
mMaxFileSizeCond
.
block
(
THREE_MINUTE
S
))
{
if
(!
mMaxFileSizeCond
.
block
(
MAX_FILE_SIZE_TIMEOUT_M
S
))
{
fail
(
"timed out waiting for MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED"
);
}
mMediaRecorder
.
stop
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment