commit | ae322c4ddbcb552979fba17a22b931081020014e | [log] [tgz] |
---|---|---|
author | Mark Renouf <mrenouf@google.com> | Wed Sep 13 16:06:05 2023 -0400 |
committer | Mark Renouf <mrenouf@google.com> | Thu Sep 14 11:21:56 2023 -0400 |
tree | d74c1b22fa51dd9d281fa016fe110e09d1bd37c1 | |
parent | a7382f3265d0bb76532b561059e56bafa855542e [diff] |
Injects EventLog, provides FakeEventLog within tests Using Hilt we are able to declaratively replace modules within integration tests. This is the first such instance within IntentResolver. Scope: An InstanceIdSequence in @Singleton scope provides a new InstanceId value to each EventLog created. EventLog is @ActivityScoped or one-per-activity instance. This matches the existing behavior. By adding [TestEventLogModule], all integration tests are now using a FakeEventLog by default (migrated away from 'override data' scheme). Bug: 299610743 Bug: 300157408 Test: atest IntentResolverUnitTests Change-Id: I33d6f4d1241a890ab88b631859652117ce20f7be
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder