Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
ea61a2ce
Commit
ea61a2ce
authored
1 year ago
by
Jeff DeCew
Committed by
Android (Google) Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "SysuiTestCase now has SetFlagsRule use default values." into main
parents
9fa0df53
95535358
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
packages/SystemUI/tests/utils/src/com/android/systemui/SysuiTestCase.java
+2
-5
2 additions, 5 deletions
...I/tests/utils/src/com/android/systemui/SysuiTestCase.java
with
2 additions
and
5 deletions
packages/SystemUI/tests/utils/src/com/android/systemui/SysuiTestCase.java
+
2
−
5
View file @
ea61a2ce
...
...
@@ -15,7 +15,7 @@
*/
package
com.android.systemui
;
import
static
com
.
android
.
systemui
.
Flags
.
FLAG_EXAMPLE_FLAG
;
import
static
android
.
platform
.
test
.
flag
.
junit
.
SetFlagsRule
.
DefaultInitValueType
.
DEVICE_DEFAULT
;
import
static
org
.
mockito
.
Mockito
.
spy
;
import
static
org
.
mockito
.
Mockito
.
when
;
...
...
@@ -65,7 +65,7 @@ public abstract class SysuiTestCase {
new
AndroidXAnimatorIsolationRule
();
@Rule
public
final
SetFlagsRule
mSetFlagsRule
=
new
SetFlagsRule
();
public
final
SetFlagsRule
mSetFlagsRule
=
new
SetFlagsRule
(
DEVICE_DEFAULT
);
@Rule
public
SysuiTestableContext
mContext
=
new
SysuiTestableContext
(
...
...
@@ -88,9 +88,6 @@ public abstract class SysuiTestCase {
if
(
isRobolectricTest
())
{
mContext
=
mContext
.
createDefaultDisplayContext
();
}
// Set the value of a single gantry flag inside the com.android.systemui package to
// ensure all flags in that package are faked (and thus require a value to be set).
mSetFlagsRule
.
disableFlags
(
FLAG_EXAMPLE_FLAG
);
mSysuiDependency
=
new
SysuiTestDependency
(
mContext
,
shouldFailOnLeakedReceiver
());
mDependency
=
mSysuiDependency
.
install
();
mRealInstrumentation
=
InstrumentationRegistry
.
getInstrumentation
();
...
...
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