Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
permission_handler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
permission_handler
Commits
36777b47
Commit
36777b47
authored
Mar 15, 2021
by
Jan-Derk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
1e17edd9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
permission_handler_platform_interface/test/src/permission_handler_platform_interface_test.dart
+1
-1
permission_handler_platform_interface/test/src/permission_status_test.dart
+0
-1
permission_handler_platform_interface/test/src/permissions_test.dart
+1
-1
permission_handler_platform_interface/test/src/service_status_test.dart
+1
-1
No files found.
permission_handler_platform_interface/test/src/permission_handler_platform_interface_test.dart
View file @
36777b47
...
@@ -95,7 +95,7 @@ class ImplementsPermissionHandlerPlatform implements PermissionHandlerPlatform {
...
@@ -95,7 +95,7 @@ class ImplementsPermissionHandlerPlatform implements PermissionHandlerPlatform {
class
ExtendsPermissionHandlerPlatform
extends
PermissionHandlerPlatform
{}
class
ExtendsPermissionHandlerPlatform
extends
PermissionHandlerPlatform
{}
class
MockPermissionHandlerPlatform
extends
Mock
// ignore: prefer_mixin
class
MockPermissionHandlerPlatform
extends
Mock
with
with
// ignore: prefer_mixin
// ignore: prefer_mixin
MockPlatformInterfaceMixin
MockPlatformInterfaceMixin
...
...
permission_handler_platform_interface/test/src/permission_status_test.dart
View file @
36777b47
...
@@ -18,7 +18,6 @@ void main() {
...
@@ -18,7 +18,6 @@ void main() {
expect
(
values
[
4
],
PermissionStatus
.
permanentlyDenied
);
expect
(
values
[
4
],
PermissionStatus
.
permanentlyDenied
);
});
});
test
(
test
(
// ignore: lines_longer_than_80_chars
// ignore: lines_longer_than_80_chars
'statusByValue should return right index int that corresponds with the right PermissionStatus'
,
'statusByValue should return right index int that corresponds with the right PermissionStatus'
,
...
...
permission_handler_platform_interface/test/src/permissions_test.dart
View file @
36777b47
...
@@ -6,7 +6,7 @@ void main() {
...
@@ -6,7 +6,7 @@ void main() {
()
{
()
{
final
values
=
Permission
.
values
;
final
values
=
Permission
.
values
;
expect
(
values
.
length
,
2
1
);
expect
(
values
.
length
,
2
2
);
});
});
test
(
'check if byValue returns corresponding PermissionGroup value'
,
()
{
test
(
'check if byValue returns corresponding PermissionGroup value'
,
()
{
...
...
permission_handler_platform_interface/test/src/service_status_test.dart
View file @
36777b47
...
@@ -17,7 +17,7 @@ void main() {
...
@@ -17,7 +17,7 @@ void main() {
});
});
test
(
test
(
// ignore: lines_longer_than_80_chars
// ignore: lines_longer_than_80_chars
'statusByValue should return right index int that corresponds with the right PermissionStatus'
,
'statusByValue should return right index int that corresponds with the right PermissionStatus'
,
()
{
()
{
expect
(
ServiceStatusValue
.
statusByValue
(
0
),
ServiceStatus
.
disabled
);
expect
(
ServiceStatusValue
.
statusByValue
(
0
),
ServiceStatus
.
disabled
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment