diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-09 03:04:59 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-09 03:04:59 +0200 |
commit | daa86e9024d32d39c1d2617d96dc80a659aec76b (patch) | |
tree | 3ff8ca73b2c609d889b88fd7f147a843fda52579 /updater_sample/tests/src/com/example/android/systemupdatersample/util/FileDownloaderTest.java | |
parent | Merge "updater_sample: add streaming support" (diff) | |
parent | updater_sample: update tools (diff) | |
download | android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar.gz android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar.bz2 android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar.lz android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar.xz android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.tar.zst android_bootable_recovery-daa86e9024d32d39c1d2617d96dc80a659aec76b.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.java | 4 |
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); } } |