Refactor EmojiCompat.init(Context)
Added benchmark to run through the entire code path in
EmojiCompat.init(Context).
Change:
benchmark: 1,032 ns 9 allocs CachedEmojiCompatInitBenchmark.actualEmojiCompatContextInit_fromQuickFactory
benchmark: 1,121 ns 9 allocs CachedEmojiCompatInitBenchmark.actualEmojiCompatContextInit_fromQuickFactory_newVersion
Benchmark has high variance and it is unclear if this caused a change.
Even if it did bump, 70ns is acceptable.
No change to early-exit benchmarks.
Test: New benchmark
Bug: b/178035684
Change-Id: I1b43acf2eac5632375f534fa68b2496302d581fd
diff --git a/emoji2/emoji2-benchmark/build.gradle b/emoji2/emoji2-benchmark/build.gradle
index b632e87..c3dd0be 100644
--- a/emoji2/emoji2-benchmark/build.gradle
+++ b/emoji2/emoji2-benchmark/build.gradle
@@ -34,6 +34,9 @@
androidTestImplementation(ANDROIDX_TEST_CORE)
androidTestImplementation(ANDROIDX_TEST_RUNNER)
androidTestImplementation(ANDROIDX_TEST_RULES)
+ androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
+ androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has it"s own MockMaker
+ androidTestImplementation project(':internal-testutils-runtime')
androidTestImplementation(KOTLIN_STDLIB)
}