Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Connectivity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Connectivity
Commits
424ef188
Commit
424ef188
authored
1 year ago
by
Motomu Utsumi
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "clearInlineMocks from DevSdkIgnoreRunner after running test" into main
parents
61fba508
05bf4f39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
staticlibs/testutils/devicetests/com/android/testutils/DevSdkIgnoreRunner.kt
+4
-0
4 additions, 0 deletions
...s/devicetests/com/android/testutils/DevSdkIgnoreRunner.kt
with
4 additions
and
0 deletions
staticlibs/testutils/devicetests/com/android/testutils/DevSdkIgnoreRunner.kt
+
4
−
0
View file @
424ef188
...
...
@@ -31,6 +31,7 @@ import org.junit.runner.manipulation.Sorter
import
org.junit.runner.notification.Failure
import
org.junit.runner.notification.RunNotifier
import
org.junit.runners.Parameterized
import
org.mockito.Mockito
/**
* A runner that can skip tests based on the development SDK as defined in [DevSdkIgnoreRule].
...
...
@@ -124,6 +125,9 @@ class DevSdkIgnoreRunner(private val klass: Class<*>) : Runner(), Filterable, So
notifier
.
fireTestFailure
(
Failure
(
leakMonitorDesc
,
IllegalStateException
(
"Unexpected thread changes: $threadsDiff"
)))
}
// Clears up internal state of all inline mocks.
// TODO: Call clearInlineMocks() at the end of each test.
Mockito
.
framework
().
clearInlineMocks
()
notifier
.
fireTestFinished
(
leakMonitorDesc
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment