summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-04-26 21:45:23 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-04-26 21:45:23 +0200
commitf3cb640f1b41a7dc48fdd28664841753bac0ab53 (patch)
treed59ed02f7b10088e47f20bd261ec009154292735
parentMerge "Dump the uncompressed data's SHA1 to debug flaky tests" am: cc8587b508 (diff)
parentMerge "sample_updater: add tests resources" (diff)
downloadandroid_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar.gz
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar.bz2
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar.lz
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar.xz
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.tar.zst
android_bootable_recovery-f3cb640f1b41a7dc48fdd28664841753bac0ab53.zip
-rw-r--r--updater_sample/tests/res/raw/ota_002_package.zipbin0 -> 748 bytes
-rw-r--r--updater_sample/tests/res/raw/update_config_stream_001.json14
-rw-r--r--updater_sample/tests/res/raw/update_config_stream_002.json35
3 files changed, 49 insertions, 0 deletions
diff --git a/updater_sample/tests/res/raw/ota_002_package.zip b/updater_sample/tests/res/raw/ota_002_package.zip
new file mode 100644
index 000000000..3bfe37757
--- /dev/null
+++ b/updater_sample/tests/res/raw/ota_002_package.zip
Binary files differ
diff --git a/updater_sample/tests/res/raw/update_config_stream_001.json b/updater_sample/tests/res/raw/update_config_stream_001.json
new file mode 100644
index 000000000..965f737d7
--- /dev/null
+++ b/updater_sample/tests/res/raw/update_config_stream_001.json
@@ -0,0 +1,14 @@
+{
+ "name": "streaming-001",
+ "url": "http://foo.bar/update.zip",
+ "type": "STREAMING",
+ "streaming_metadata": {
+ "property_files": [
+ {
+ "filename": "payload.bin",
+ "offset": 531,
+ "size": 5012323
+ }
+ ]
+ }
+}
diff --git a/updater_sample/tests/res/raw/update_config_stream_002.json b/updater_sample/tests/res/raw/update_config_stream_002.json
new file mode 100644
index 000000000..36c5722f8
--- /dev/null
+++ b/updater_sample/tests/res/raw/update_config_stream_002.json
@@ -0,0 +1,35 @@
+{
+ "__": "*** Generated using tools/gen_update_config.py ***",
+ "name": "S ota_002",
+ "streaming_metadata": {
+ "property_files": [
+ {
+ "filename": "payload.bin",
+ "offset": 195,
+ "size": 8
+ },
+ {
+ "filename": "payload_properties.txt",
+ "offset": 276,
+ "size": 19
+ },
+ {
+ "filename": "care_map.txt",
+ "offset": 42,
+ "size": 9
+ },
+ {
+ "filename": "compatibility.zip",
+ "offset": 119,
+ "size": 14
+ },
+ {
+ "filename": "metadata",
+ "offset": 375,
+ "size": 9
+ }
+ ]
+ },
+ "type": "STREAMING",
+ "url": "file:///data/sample-ota-packages/ota_002_package.zip"
+}