Class org.mozilla.fenix.components.metrics.GleanUsageReportingLifecycleObserverTest
Tests
Test |
Duration |
Result |
ON_DESTROY lifecycle event doesn't affect duration |
0s |
passed |
ON_PAUSE lifecycle event doesn't affect duration |
0.001s |
passed |
before any lifecycle state changes, no pings are submitted |
0s |
passed |
before any lifecycle state changes, no usage reason is set |
0s |
passed |
duration is set to the length of the last foreground session |
0s |
passed |
when duration is not set, don't submit it |
0s |
passed |
when state changed to start, usage ping is sent |
0s |
passed |
when state changed to start, usage reason is set to active |
0.003s |
passed |
when state changed to stop, usage ping is sent |
0s |
passed |
when state changed to stop, usage reason is set to inactive |
0s |
passed |