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

Issue 2333343002: Fix issues with rtc_stats_unittests tests so that they can run on bots (Closed)

Created:
4 years, 3 months ago by hbos
Modified:
4 years, 3 months ago
Reviewers:
nisse-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix issues with rtc_stats_unittests tests so that they can run on bots. This target is not run on bots so a couple of issues went under the radar. If we expose the tests and run them on the bots[1] two issues are surfaced which this CL fixes. After this CL lands we can enable this target on the bots without it going red. rtcstats_unittest.cc: Fix const char* string comparison issue by comparing with strcmp instead of equality check. rtcstatscollector_unittest.cc: Fix TSAN issue by constructing ScopedFakeClock before spawning Threads. [1] https://codereview.webrtc.org/2340443002/ BUG=chromium:627816 NOTRY=True Committed: https://crrev.com/fdafab84bc9db9eabdf54b1186c27abfe871801a Cr-Commit-Position: refs/heads/master@{#14215}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -20 lines) Patch
M webrtc/stats/rtcstats_unittest.cc View 1 2 3 chunks +41 lines, -16 lines 0 comments Download
M webrtc/stats/rtcstatscollector_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
hbos
Please take a look, nisse.
4 years, 3 months ago (2016-09-14 07:42:24 UTC) #4
nisse-webrtc
https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc File webrtc/stats/rtcstats_unittest.cc (right): https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc#newcode135 webrtc/stats/rtcstats_unittest.cc:135: EXPECT_EQ(strcmp(*stats.m_static_string, "123"), 0); Makes me think: Do you really ...
4 years, 3 months ago (2016-09-14 07:53:08 UTC) #5
hbos
PTAL nisse. https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc File webrtc/stats/rtcstats_unittest.cc (right): https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc#newcode135 webrtc/stats/rtcstats_unittest.cc:135: EXPECT_EQ(strcmp(*stats.m_static_string, "123"), 0); On 2016/09/14 07:53:07, nisse-webrtc ...
4 years, 3 months ago (2016-09-14 08:21:15 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc File webrtc/stats/rtcstats_unittest.cc (right): https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc#newcode142 webrtc/stats/rtcstats_unittest.cc:142: EXPECT_EQ(*stats.m_sequence_static_string, std::vector<const char*>()); On 2016/09/14 08:21:15, hbos wrote: > ...
4 years, 3 months ago (2016-09-14 08:36:42 UTC) #7
hbos
PTAL nisse https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc File webrtc/stats/rtcstats_unittest.cc (right): https://codereview.webrtc.org/2333343002/diff/20001/webrtc/stats/rtcstats_unittest.cc#newcode142 webrtc/stats/rtcstats_unittest.cc:142: EXPECT_EQ(*stats.m_sequence_static_string, std::vector<const char*>()); On 2016/09/14 08:36:42, nisse-webrtc ...
4 years, 3 months ago (2016-09-14 09:42:49 UTC) #9
nisse-webrtc
lgtm
4 years, 3 months ago (2016-09-14 10:34:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2333343002/80001
4 years, 3 months ago (2016-09-14 10:44:16 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-14 12:44:56 UTC) #14
hbos
Offline bots, everything else green, also these test don't yet execute (just build) on bots, ...
4 years, 3 months ago (2016-09-14 13:00:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2333343002/80001
4 years, 3 months ago (2016-09-14 13:00:47 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 3 months ago (2016-09-14 13:02:16 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 13:02:27 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fdafab84bc9db9eabdf54b1186c27abfe871801a
Cr-Commit-Position: refs/heads/master@{#14215}

Powered by Google App Engine
This is Rietveld 408576698