summaryrefslogtreecommitdiffstats
path: root/updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-05-09 03:27:30 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-05-09 03:27:30 +0200
commit13b64beab63fc11222538f805ea0b09564dc6e96 (patch)
tree749cd04441bde8926eaf92df264bd44ef135c6a7 /updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java
parentMerge "updater_sample: add streaming support" am: c23a53c272 am: e88d4682ea (diff)
parentMerge "updater_sample: update tools" am: daa86e9024 (diff)
downloadandroid_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar.gz
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar.bz2
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar.lz
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar.xz
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.tar.zst
android_bootable_recovery-13b64beab63fc11222538f805ea0b09564dc6e96.zip
Diffstat (limited to 'updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java')
-rw-r--r--updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java b/updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java
index 80506ee6d..009610e86 100644
--- a/updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java
+++ b/updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java
@@ -70,11 +70,11 @@ public class FileDownloaderTest {
.toFile();
Files.deleteIfExists(outFile.toPath());
// download a chunk of ota.zip
- FileDownloader downloader = new FileDownloader(url, 160, 8, outFile);
+ FileDownloader downloader = new FileDownloader(url, 1674, 12, outFile);
downloader.download();
String downloadedContent = String.join("\n", Files.readAllLines(outFile.toPath()));
// archive contains text files with uppercase filenames
- assertEquals("CARE_MAP", downloadedContent);
+ assertEquals("CARE_MAP-TXT", downloadedContent);
}
}