diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-01 21:50:55 +0200 |
---|---|---|
committer | Zhomart Mukhamejanov <zhomart@google.com> | 2018-05-02 21:40:49 +0200 |
commit | da7e23759660ebf76a184e4c4d981f11ef9e2653 (patch) | |
tree | 793aee240bbc3ec4ead128c39a7c25dfa475d078 /updater_sample/tests | |
parent | Merge "Add ScreenRecoveryUI::ShowMenu()." (diff) | |
download | android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar.gz android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar.bz2 android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar.lz android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar.xz android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.tar.zst android_bootable_recovery-da7e23759660ebf76a184e4c4d981f11ef9e2653.zip |
Diffstat (limited to 'updater_sample/tests')
3 files changed, 5 insertions, 5 deletions
diff --git a/updater_sample/tests/res/raw/update_config_stream_001.json b/updater_sample/tests/res/raw/update_config_stream_001.json index a9afd331c..15127cf2c 100644 --- a/updater_sample/tests/res/raw/update_config_stream_001.json +++ b/updater_sample/tests/res/raw/update_config_stream_001.json @@ -6,8 +6,8 @@ "property_files": [ { "filename": "payload.bin", - "offset": 531, - "size": 5012323 + "offset": 195, + "size": 8 } ] } 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 df47c8ca8..dc7ec09e1 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 @@ -73,7 +73,7 @@ public class FileDownloaderTest { FileDownloader downloader = new FileDownloader(url, 160, 8, outFile); downloader.download(); String downloadedContent = String.join("\n", Files.readAllLines(outFile.toPath())); - // Look at tools/create_test_ota.py + // archive contains text files with uppercase filenames assertEquals("CARE_MAP", downloadedContent); } diff --git a/updater_sample/tests/src/com/example/android/systemupdatersample/util/PayloadSpecsTest.java b/updater_sample/tests/src/com/example/android/systemupdatersample/util/PayloadSpecsTest.java index 6f06ca3e1..c13ba5556 100644 --- a/updater_sample/tests/src/com/example/android/systemupdatersample/util/PayloadSpecsTest.java +++ b/updater_sample/tests/src/com/example/android/systemupdatersample/util/PayloadSpecsTest.java @@ -16,8 +16,8 @@ package com.example.android.systemupdatersample.util; -import static com.example.android.systemupdatersample.util.PackagePropertyFiles.PAYLOAD_BINARY_FILE_NAME; -import static com.example.android.systemupdatersample.util.PackagePropertyFiles.PAYLOAD_PROPERTIES_FILE_NAME; +import static com.example.android.systemupdatersample.util.PackageFiles.PAYLOAD_BINARY_FILE_NAME; +import static com.example.android.systemupdatersample.util.PackageFiles.PAYLOAD_PROPERTIES_FILE_NAME; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; |