Skip to content

Commit

Permalink
Fix a lint issue with MediaResourceGetterTest.java.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sungmann.cho@navercorp.com committed Jun 2, 2014
1 parent a391260 commit 7a8106e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package org.chromium.content.browser;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageManager;
import android.media.MediaMetadataRetriever;
Expand All @@ -23,6 +24,7 @@
/**
* Tests for MediaResourceGetter.
*/
@SuppressLint("SdCardPath")
public class MediaResourceGetterTest extends InstrumentationTestCase {
private static final String TEST_HTTP_URL = "http://example.com";
private static final String TEST_USER_AGENT = // Anyhting, really
Expand Down

0 comments on commit 7a8106e

Please sign in to comment.