DescriptionIntroduce ExpectApproxEq, a helper function that allows making assertions that certain values are equal within the margin of specified relative error.
This is to avoid manually hacking around test failures like:
Expected equality of these values:
expected_pacing_rate
Which is: 10.78 Mbits/s (1.35 Mbytes/s)
sender_->PacingRate(0)
Which is: 10.78 Mbits/s (1.35 Mbytes/s)
Merge internal change: 132613274
R=rch@chromium.org
BUG=
Committed: https://crrev.com/aaa4fe750e44ccb3d46e585abcaa17a976f2bead
Cr-Commit-Position: refs/heads/master@{#418696}
Patch Set 1 #Patch Set 2 : Fix MSVC warnings #
Messages
Total messages: 12 (7 generated)
|