aboutsummaryrefslogtreecommitdiff
path: root/test/utils.dart
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-04 14:43:33 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-04 14:43:33 +0530
commitd2789f3ca1a143a5b779304cec103c0c1f851e70 (patch)
tree8c7df448d458981d2b055e20d18923866e221b3c /test/utils.dart
parentc50386437f01bb0177d352c7c7565d86742fa445 (diff)
downloaddaft-launcher-d2789f3ca1a143a5b779304cec103c0c1f851e70.tar.gz
daft-launcher-d2789f3ca1a143a5b779304cec103c0c1f851e70.zip
Adds test cases for homepage for favorite apps and fixes timewidget cases
Diffstat (limited to 'test/utils.dart')
-rw-r--r--test/utils.dart17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/utils.dart b/test/utils.dart
index 0b9d0c7..c122229 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -11,3 +11,20 @@ Widget wrapper(Widget view) {
),
);
}
+
+Future<void> waitFor(Duration duration) { return Future.delayed(duration, () {}); }
+
+Application makeApp(String name, String pkgName) {
+ return Application({
+ 'app_name': name,
+ 'apk_file_path': '/$pkgName.apk',
+ 'package_name': pkgName,
+ 'version_name': '0.0.0',
+ 'version_code': 1,
+ 'data_dir': '/$pkgName/data',
+ 'system_app': false,
+ 'install_time': 0,
+ 'update_time': 0,
+ });
+}
+