π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
test(photos): remove defensive nested-view comparison case
ashil-pilot4c3abb746538
diff --git a/mobile/apps/photos/plugins/ente_crypto/test/uint8_list_equals_test.dart b/mobile/apps/photos/plugins/ente_crypto/test/uint8_list_equals_test.dartindex 624b2adb6b..926363e664 100644--- a/mobile/apps/photos/plugins/ente_crypto/test/uint8_list_equals_test.dart+++ b/mobile/apps/photos/plugins/ente_crypto/test/uint8_list_equals_test.dart@@ -26,28 +26,4 @@ void main() {}}});-- test(- "respects unaligned nested view offsets and excludes surrounding bytes",- () {- final aBacking = Uint8List(40)..fillRange(0, 40, 0x55);- final bBacking = Uint8List(48)..fillRange(0, 48, 0xAA);- final a = Uint8List.sublistView(- Uint8List.sublistView(aBacking, 1),- 2,- 19,- );- final b = Uint8List.sublistView(bBacking, 11, 28);- for (var i = 0; i < a.length; i++) {- a[i] = b[i] = (i * 17) & 255;- }-- expect(uint8ListEquals(a, b), isTrue);- for (final index in [0, 7, 8, 15, 16]) {- b[index] ^= 1;- expect(uint8ListEquals(a, b), isFalse, reason: "View byte $index");- b[index] ^= 1;- }- },- );}