Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 1969403003: Updating APM unittests on the echo metrics. (Closed)

Created:
4 years, 7 months ago by minyue-webrtc
Modified:
4 years, 7 months ago
Reviewers:
peah-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, the sun, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Updating APM unittests on the echo metrics. There were a series of changes in the calculation of echo metrics. There changes made the existing unittests lose, e.g., EXPECT_EQ become EXPECT_NEAR. It is good time to protect the echo calculation more strictly. The change is not simply generating a new reference file and change EXPECT_NEAR to EXPECT_EQ. It strengthens the test as well. Main changes are 1. the old test only sample a metric at the end of processing, while the new test takes metrics during the call with a certain time interval. This gives a much stronger protection. 2. added protection of a newly added metric, called divergent_filter_fraction. 3. as said, use EXPECT_EQ (actually ASSERT_EQ) instead of EXPECT_NEAR as much as possible, even for float point values. This may be too restrictive. But it can be good to be restrictive at the beginning. BUG= Committed: https://crrev.com/58530ed246b7d87e2208b96ab2c4836adb6fd5d7 Cr-Commit-Position: refs/heads/master@{#12871}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : assert to expect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -65 lines) Patch
M data/audio_processing/output_data_float.pb View 1 Binary file 0 comments Download
M data/audio_processing/output_data_mac.pb View 1 Binary file 0 comments Download
M webrtc/modules/audio_processing/audio_processing_unittest.cc View 1 7 chunks +77 lines, -62 lines 0 comments Download
M webrtc/modules/audio_processing/test/unittest.proto View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
minyue-webrtc
Hi Peah, Would you help review this?
4 years, 7 months ago (2016-05-12 22:03:11 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969403003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969403003/60001
4 years, 7 months ago (2016-05-12 22:10:58 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-12 23:00:16 UTC) #10
peah-webrtc
https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode207 webrtc/modules/audio_processing/audio_processing_unittest.cc:207: ASSERT_EQ(reference.instant(), test.instant); Why not use EXPECT_EQ? Does it make ...
4 years, 7 months ago (2016-05-20 12:21:23 UTC) #11
minyue-webrtc
Thanks for the feedback! Please find my reply inline. https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode207 webrtc/modules/audio_processing/audio_processing_unittest.cc:207: ...
4 years, 7 months ago (2016-05-23 03:19:45 UTC) #12
peah-webrtc
https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode207 webrtc/modules/audio_processing/audio_processing_unittest.cc:207: ASSERT_EQ(reference.instant(), test.instant); On 2016/05/23 03:19:45, minyue-webrtc wrote: > On ...
4 years, 7 months ago (2016-05-23 05:11:53 UTC) #13
peah-webrtc
https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/1969403003/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode2253 webrtc/modules/audio_processing/audio_processing_unittest.cc:2253: #if defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE) On 2016/05/23 03:19:45, minyue-webrtc wrote: > On ...
4 years, 7 months ago (2016-05-23 05:13:09 UTC) #14
minyue-webrtc
Hi, I changed Assert to Expect. See patch set 2.
4 years, 7 months ago (2016-05-23 08:20:17 UTC) #15
peah-webrtc
On 2016/05/23 08:20:17, minyue-webrtc wrote: > Hi, > > I changed Assert to Expect. See ...
4 years, 7 months ago (2016-05-23 11:27:00 UTC) #16
minyue-webrtc
On 2016/05/23 11:27:00, peah-webrtc wrote: > On 2016/05/23 08:20:17, minyue-webrtc wrote: > > Hi, > ...
4 years, 7 months ago (2016-05-24 01:49:56 UTC) #17
minyue-webrtc
On 2016/05/24 01:49:56, minyue-webrtc wrote: > On 2016/05/23 11:27:00, peah-webrtc wrote: > > On 2016/05/23 ...
4 years, 7 months ago (2016-05-24 01:50:07 UTC) #18
peah-webrtc
On 2016/05/24 01:50:07, minyue-webrtc wrote: > On 2016/05/24 01:49:56, minyue-webrtc wrote: > > On 2016/05/23 ...
4 years, 7 months ago (2016-05-24 05:18:59 UTC) #19
peah-webrtc
On 2016/05/24 01:50:07, minyue-webrtc wrote: > On 2016/05/24 01:49:56, minyue-webrtc wrote: > > On 2016/05/23 ...
4 years, 7 months ago (2016-05-24 05:19:00 UTC) #20
minyue-webrtc
On 2016/05/24 05:19:00, peah-webrtc wrote: > On 2016/05/24 01:50:07, minyue-webrtc wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 05:31:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969403003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969403003/80001
4 years, 7 months ago (2016-05-24 05:31:25 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/10357)
4 years, 7 months ago (2016-05-24 06:02:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1969403003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1969403003/80001
4 years, 7 months ago (2016-05-24 12:34:39 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 7 months ago (2016-05-24 12:50:18 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 12:50:40 UTC) #31
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/58530ed246b7d87e2208b96ab2c4836adb6fd5d7
Cr-Commit-Position: refs/heads/master@{#12871}

Powered by Google App Engine
This is Rietveld 408576698