π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Trim memory music tests
ashilkna27050c95771
diff --git a/mobile/apps/photos/test/services/memories/memory_music_controller_test.dart b/mobile/apps/photos/test/services/memories/memory_music_controller_test.dartindex c5a9616517..f6e1c5fc19 100644--- a/mobile/apps/photos/test/services/memories/memory_music_controller_test.dart+++ b/mobile/apps/photos/test/services/memories/memory_music_controller_test.dart@@ -41,10 +41,9 @@ void main() {controller.dispose();});- test("photo memories load, loop, and play their assigned tracks", () async {+ test("photo memories load and play their assigned tracks", () async {await controller.activateMemory("memory-1", currentItemIsVideo: false);- expect(player.looping, isTrue);expect(player.playing, isTrue);await controller.activateMemory("memory-2", currentItemIsVideo: false);@@ -55,17 +54,6 @@ void main() {]);});- test("video items pause music and photos resume it", () async {- await controller.activateMemory("memory-1", currentItemIsVideo: false);-- await controller.activateMemory("memory-1", currentItemIsVideo: true);- expect(player.playing, isFalse);-- await controller.activateMemory("memory-1", currentItemIsVideo: false);- expect(player.playing, isTrue);- expect(player.loadAttempts, 1);- });-test("initial mute state prevents playback", () async {controller.dispose();player = _FakeMemoryMusicPlayer();@@ -103,6 +91,7 @@ void main() {await controller.activateMemory("memory-2", currentItemIsVideo: false);expect(player.playing, isTrue);+ expect(player.attemptedTracks, hasLength(2));});test("newer memory wins when activations overlap", () async {@@ -163,12 +152,10 @@ void main() {class _FakeMemoryMusicPlayer implements MemoryMusicPlayer {final List<MemoryMusicTrack> attemptedTracks = <MemoryMusicTrack>[];final List<MemoryMusicTrack> loadedTracks = <MemoryMusicTrack>[];- bool looping = false;bool playing = false;bool playedImmediately = false;bool pausedImmediately = false;final Set<String> failedTrackIDs = <String>{};- int loadAttempts = 0;int playAttempts = 0;Future<void> Function()? beforeNextLoadCompletes;@@ -177,7 +164,6 @@ class _FakeMemoryMusicPlayer implements MemoryMusicPlayer {@overrideFuture<void> load(MemoryMusicTrack track) async {- loadAttempts++;attemptedTracks.add(track);if (failedTrackIDs.contains(track.id)) {throw StateError("load failed");@@ -186,7 +172,6 @@ class _FakeMemoryMusicPlayer implements MemoryMusicPlayer {final beforeCompleting = beforeNextLoadCompletes;beforeNextLoadCompletes = null;await beforeCompleting?.call();- looping = true;}@overridediff --git a/mobile/apps/photos/test/services/remote_assets_service_test.dart b/mobile/apps/photos/test/services/remote_assets_service_test.dartindex 539c35e185..f61c6d878e 100644--- a/mobile/apps/photos/test/services/remote_assets_service_test.dart+++ b/mobile/apps/photos/test/services/remote_assets_service_test.dart@@ -51,13 +51,6 @@ void main() {expect(await artifact.exists(), isFalse);}expect(await unrelatedFile.exists(), isTrue);- expect(- await RemoteAssetsService.instance.hasAsset(- remotePath,- cacheFileName: cacheFileName,- ),- isFalse,- );await RemoteAssetsService.instance.deleteAsset(remotePath,diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 9f22bb4d0d..4187f98da6 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -2606,9 +2606,6 @@"moveToHiddenAlbum": "Move to hidden album","movingFilesToAlbum": "Moving files to album...","muteAudio": "Mute audio",- "@muteAudio": {- "description": "Tooltip for muting audio in the memories viewer"- },"name": "Name","nDays": "{count} days","@nDays": {@@ -4457,9 +4454,6 @@"unnamedPeopleThrowbackTogether": "Throwback together","unnamedPeopleYouAndThem": "You two","unmuteAudio": "Unmute audio",- "@unmuteAudio": {- "description": "Tooltip for unmuting audio in the memories viewer"- },"unpin": "Unpin","unpinnedCodeMessage": "{code} has been unpinned","@unpinnedCodeMessage": {