Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ internal object AppExitAnrTraceProcessor {
val sanitizedDescription = description.lowercase()

return when {
UserPerceivedAnr.matches(sanitizedDescription) -> UserPerceivedAnr
BackgroundAnr.matches(sanitizedDescription) -> BackgroundAnr
UserPerceivedAnr.matches(sanitizedDescription) -> UserPerceivedAnr
BroadcastReceiver.matches(sanitizedDescription) -> BroadcastReceiver
ServiceAnr.matches(sanitizedDescription) -> ServiceAnr
ContentProvider.matches(sanitizedDescription) -> ContentProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ class FatalIssueReporterProcessorTest {
)
}

@Test
fun persistAppExitReport_whenBgAnrAndInputDispatchingTimeout_shouldMatchAnrReason() {
assertAnrReason(
descriptionFromAppExit =
"bg anr: Input dispatching timed out (85a07c0 " +
"com.acme.app/com.acme.app.MainActivity is not responding. " +
"Waited 5001ms for MotionEvent)\n",
expectedMessage = "Background ANR",
)
}

@Test
fun persistAppExitReport_whenNativeCrash_shouldCreateEmptyErrorModel() {
val description = "Native crash"
Expand Down
Loading