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

Issue 2805903002: Fix races in MediaStream video constraints tests. (Closed)

Created:
3 years, 8 months ago by Guido Urdaneta
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix races in MediaStream video constraints tests. The tests raced because each test case was changing a global flag potentially in parallel. Instead of having separate test cases that each set the flag, have separate tests objects for each value of the flag, and set the flag in the constructor to avoid races. BUG=709112 TBR=hbos@chromium.org Review-Url: https://codereview.chromium.org/2805903002 Cr-Commit-Position: refs/heads/master@{#462928} Committed: https://chromium.googlesource.com/chromium/src/+/cf4aa356378e931692ed10abbe78d2fddbca60b2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+955 lines, -713 lines) Patch
M content/renderer/media/media_stream_video_capturer_source.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_capturer_source_unittest.cc View 10 chunks +244 lines, -179 lines 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 49 chunks +408 lines, -469 lines 0 comments Download
M content/renderer/media/media_stream_video_track_unittest.cc View 5 chunks +229 lines, -33 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_video_webrtc_sink_unittest.cc View 3 chunks +73 lines, -32 lines 0 comments Download

Messages

Total messages: 12 (9 generated)
Guido Urdaneta
Hi, PTAL
3 years, 8 months ago (2017-04-07 17:25:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805903002/1
3 years, 8 months ago (2017-04-07 17:31:10 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 18:20:31 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/cf4aa356378e931692ed10abbe78...

Powered by Google App Engine
This is Rietveld 408576698