@@ -8,11 +8,11 @@ import 'package:powersync_core/sqlite3_common.dart';
88import 'package:powersync_core/src/sync/protocol.dart' ;
99import 'package:test/test.dart' ;
1010
11- import '../bucket_storage_test.dart' ;
1211import '../server/sync_server/in_memory_sync_server.dart' ;
1312import '../utils/abstract_test_utils.dart' ;
1413import '../utils/in_memory_http.dart' ;
1514import '../utils/test_utils_impl.dart' ;
15+ import 'utils.dart' ;
1616
1717void main () {
1818 _declareTests (
@@ -926,51 +926,3 @@ void _declareTests(String name, SyncOptions options, bool bson) {
926926 });
927927 });
928928}
929-
930- TypeMatcher <SyncStatus > isSyncStatus ({
931- Object ? downloading,
932- Object ? connected,
933- Object ? connecting,
934- Object ? hasSynced,
935- Object ? downloadProgress,
936- }) {
937- var matcher = isA <SyncStatus >();
938- if (downloading != null ) {
939- matcher = matcher.having ((e) => e.downloading, 'downloading' , downloading);
940- }
941- if (connected != null ) {
942- matcher = matcher.having ((e) => e.connected, 'connected' , connected);
943- }
944- if (connecting != null ) {
945- matcher = matcher.having ((e) => e.connecting, 'connecting' , connecting);
946- }
947- if (hasSynced != null ) {
948- matcher = matcher.having ((e) => e.hasSynced, 'hasSynced' , hasSynced);
949- }
950- if (downloadProgress != null ) {
951- matcher = matcher.having (
952- (e) => e.downloadProgress, 'downloadProgress' , downloadProgress);
953- }
954-
955- return matcher;
956- }
957-
958- TypeMatcher <SyncDownloadProgress > isSyncDownloadProgress ({
959- required Object progress,
960- Map <BucketPriority , Object > priorities = const {},
961- }) {
962- var matcher =
963- isA <SyncDownloadProgress >().having ((e) => e, 'untilCompletion' , progress);
964- priorities.forEach ((priority, expected) {
965- matcher = matcher.having (
966- (e) => e.untilPriority (priority), 'untilPriority($priority )' , expected);
967- });
968-
969- return matcher;
970- }
971-
972- TypeMatcher <ProgressWithOperations > progress (int completed, int total) {
973- return isA <ProgressWithOperations >()
974- .having ((e) => e.downloadedOperations, 'completed' , completed)
975- .having ((e) => e.totalOperations, 'total' , total);
976- }
0 commit comments