RUMM-2746 Sync SR touch and screen recorders#1150
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/sdkv2 #1150 +/- ##
=================================================
+ Coverage 82.38% 82.50% +0.13%
=================================================
Files 350 351 +1
Lines 11559 11573 +14
Branches 1980 1983 +3
=================================================
+ Hits 9522 9548 +26
+ Misses 1423 1422 -1
+ Partials 614 603 -11
|
| ) : ViewTreeObserver.OnDrawListener { | ||
| private var currentOrientation = Configuration.ORIENTATION_UNDEFINED | ||
| private val trackedActivity: WeakReference<Activity> = WeakReference(activity) | ||
| private var lastScreenUpdateInNs = System.nanoTime() |
There was a problem hiding this comment.
seems like this field is not used: it is written, but never read.
| forge: Forge | ||
| ) { | ||
| // Given | ||
| val fakeDelayedRunnables = forge.aList(size = forge.anInt(min = 0, max = 10)) { TestRunnable() } |
There was a problem hiding this comment.
having min=0 will make it possible to have empty fakeDelayedRunnables list, leading to the division by zero on the line below. Same for the test below.
There was a problem hiding this comment.
oh damn...yes, I actually had min=1 there at some point I don't know why I changed it back. Nicely spotted.
df93304 to
3bb3bbd
Compare
| } | ||
|
|
||
| companion object { | ||
| private val TEST_MAX_DELAY_THRESHOLD_IN_NS = TimeUnit.SECONDS.toNanos(2) |
There was a problem hiding this comment.
minor: this probably can be even lower to make tests faster
There was a problem hiding this comment.
yup...I hesitated as not to have longer tests, we already have quite a lot but I guess is better than to have flaky ones.
3bb3bbd to
7980e9d
Compare
7980e9d to
c23b880
Compare
What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)