Improve testSetMaxDuration testcase in MediaRecorderTest

The old testcase really tests nothing but some file is recorded.
The new testcase will actually enforce the rule that the recorded
file must has a duration +/- one second for a 20-second recording.

Change-Id: I9431bceada79ae47cbbbd43abf5ee4117ede84fd
1 file changed