forked from eatvio/eatvio_app
feat(video_calls): ios calle mic fix, infinite loading after accepting call on an oppened app fix, incaming call declining after declining on a different device
This commit is contained in:
23
test/core/device/device_hw_id_provider_test.dart
Normal file
23
test/core/device/device_hw_id_provider_test.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:eatvio_app/core/device/device_hw_id_provider.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
void main() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
test('android install id stays the same for this install', () async {
|
||||
SharedPreferences.setMockInitialValues(<String, Object>{});
|
||||
final preferences = await SharedPreferences.getInstance();
|
||||
|
||||
final first = await DeviceHwIdProvider.androidInstallId(
|
||||
preferences: preferences,
|
||||
);
|
||||
final second = await DeviceHwIdProvider.androidInstallId(
|
||||
preferences: preferences,
|
||||
);
|
||||
|
||||
expect(first.length, greaterThanOrEqualTo(8));
|
||||
expect(second, first);
|
||||
expect(first.contains('-'), isTrue);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user