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
14 files changed
tree: d74c1b22fa51dd9d281fa016fe110e09d1bd37c1
  1. aconfig/
  2. java/
  3. .clang-format
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. OWNERS
  8. PREUPLOAD.cfg
  9. proguard.flags
  10. README.md
  11. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder