Fix a lint issue with MediaResourceGetterTest.java.

Currently, the lint warns against using the hardcoded "sdcard" strings. We
should use Environment.getExternalStorageDirectory().getPath() instead of it,
but the path could be inconsistent depending upon the state of the real or
emulated device upon which we are testing. So this CL adds @SuppressLint to
suppress the warnings.

BUG=327768

Review URL: https://codereview.chromium.org/304633003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274376 0039d316-1c4b-4281-b951-d872f2087c98
parent a3912602
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package org.chromium.content.browser; package org.chromium.content.browser;
import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.media.MediaMetadataRetriever; import android.media.MediaMetadataRetriever;
...@@ -23,6 +24,7 @@ import java.util.Map; ...@@ -23,6 +24,7 @@ import java.util.Map;
/** /**
* Tests for MediaResourceGetter. * Tests for MediaResourceGetter.
*/ */
@SuppressLint("SdCardPath")
public class MediaResourceGetterTest extends InstrumentationTestCase { public class MediaResourceGetterTest extends InstrumentationTestCase {
private static final String TEST_HTTP_URL = "http://example.com"; private static final String TEST_HTTP_URL = "http://example.com";
private static final String TEST_USER_AGENT = // Anyhting, really private static final String TEST_USER_AGENT = // Anyhting, really
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment