NAME=text-strings-android
FILE=-
CMDS=<<EOF
!!../bin/r2flutter -zz bins/android/first 2>/dev/null | sed -n '1,6p'
EOF
EXPECT=<<EOF
0x00000214  165 :app "f91b8b03bf7f30a5e983fd19b23d978dproduct no-code_comments no-dwarf_stack_traces_mode no-lazy_dispatchers dedup_instructions no-tsan arm64 linux no-compressed-pointers"
0x00001660   11 :lib "_Uint16List"
0x00001680   19 :lib "_ExternalInt64Array"
0x000016b0   17 :lib "_handleException2"
0x000016d0    8 :lib "FutureOr"
0x000016f0   18 :app "boolean expression"
EOF
RUN

NAME=verbose-text-strings-android
FILE=-
CMDS=<<EOF
!!../bin/r2flutter -vzz bins/android/first 2>/dev/null | sed -n '1p'
EOF
EXPECT=<<EOF
0x00000214  165 :app "f91b8b03bf7f30a5e983fd19b23d978dproduct no-code_comments no-dwarf_stack_traces_mode no-lazy_dispatchers dedup_instructions no-tsan arm64 linux no-compressed-pointers"
EOF
RUN

NAME=r2-strings-android
FILE=-
CMDS=<<EOF
!!../bin/r2flutter -r -zz bins/android/first 2>/dev/null | head -7
EOF
EXPECT=<<EOF
# Dart Strings
iz+ 0x00000214 165
f str.f91b8b03bf7f30a5e983fd19b23d978dproduct_no_code_comments_no_dwarf_stack_traces_mode_no_lazy_dispatchers_dedup_instructions_no_tsan_arm64_linux_no_compressed_pointers.0x214 165 @ 0x00000214
Cs8 165 @ 0x00000214
iz+ 0x00001660 11
f str._Uint16List.0x1660 11 @ 0x00001660
Cs8 11 @ 0x00001660
EOF
RUN

NAME=quiet-r2-strings-android
FILE=-
CMDS=<<EOF
!!../bin/r2flutter -qrzz bins/android/first 2>/dev/null | head -6
EOF
EXPECT=<<EOF
iz+ 0x00000214 165
f str.f91b8b03bf7f30a5e983fd19b23d978dproduct_no_code_comments_no_dwarf_stack_traces_mode_no_lazy_dispatchers_dedup_instructions_no_tsan_arm64_linux_no_compressed_pointers.0x214 165 @ 0x00000214
Cs8 165 @ 0x00000214
iz+ 0x00001660 11
f str._Uint16List.0x1660 11 @ 0x00001660
Cs8 11 @ 0x00001660
EOF
RUN
