summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/downloads/HelpersTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/providers/downloads/HelpersTest.java')
-rw-r--r--tests/src/com/android/providers/downloads/HelpersTest.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/src/com/android/providers/downloads/HelpersTest.java b/tests/src/com/android/providers/downloads/HelpersTest.java
index fdd0334c..50f4c44c 100644
--- a/tests/src/com/android/providers/downloads/HelpersTest.java
+++ b/tests/src/com/android/providers/downloads/HelpersTest.java
@@ -32,22 +32,13 @@ public class HelpersTest extends AndroidTestCase {
public void testGetFullPath() throws Exception {
String hint = "file:///com.android.providers.downloads/test";
- // Test that an extension derived from the specified mime type is appended to a filename that
- // does not itself have an extension.
+ // Test that we never change requested filename.
String fileName = Helpers.getFullPath(
hint,
"video/mp4", // MIME type corresponding to file extension .mp4
Downloads.Impl.DESTINATION_FILE_URI,
null);
- assertEquals(hint + ".mp4", fileName);
-
- // Test that the filename extension is replaced by one derived from the specified mime type.
- fileName = Helpers.getFullPath(
- hint + ".shouldbereplaced",
- "video/mp4", // MIME type corresponding to file extension .mp4
- Downloads.Impl.DESTINATION_FILE_URI,
- null);
- assertEquals(hint + ".mp4", fileName);
+ assertEquals(hint, fileName);
}
}