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

Issue 2550493003: Add new device ID unit tests to UserMediaClientImpl. (Closed)

Created:
4 years ago by Guido Urdaneta
Modified:
4 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new device ID unit tests to UserMediaClientImpl. Also remove test-specific code path and other minor cleanups. This CL is preparatory for the new spec-compliant MediaStream constraint processing. BUG=657733 Committed: https://crrev.com/d7af8155b1a7a903929b2a932a8a4d807eac487c Cr-Commit-Position: refs/heads/master@{#436320}

Patch Set 1 #

Total comments: 4

Patch Set 2 : hta@'s comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -134 lines) Patch
M content/renderer/media/mock_media_stream_dispatcher.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/media/mock_media_stream_dispatcher.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 3 chunks +45 lines, -71 lines 2 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 21 chunks +214 lines, -55 lines 1 comment Download

Messages

Total messages: 26 (16 generated)
Guido Urdaneta
4 years ago (2016-12-03 10:51:19 UTC) #8
hta - Chromium
Great stuff! I think you can make the tests more readable by using MockConstraintFactory to ...
4 years ago (2016-12-03 12:31:17 UTC) #9
Guido Urdaneta
https://codereview.chromium.org/2550493003/diff/20001/content/renderer/media/user_media_client_impl_unittest.cc File content/renderer/media/user_media_client_impl_unittest.cc (right): https://codereview.chromium.org/2550493003/diff/20001/content/renderer/media/user_media_client_impl_unittest.cc#newcode52 content/renderer/media/user_media_client_impl_unittest.cc:52: return vector; On 2016/12/03 12:31:17, hta - Chromium wrote: ...
4 years ago (2016-12-05 15:06:20 UTC) #11
hta - Chromium
lgtm but would be nice to have a comment about the bug that became obvious ...
4 years ago (2016-12-05 15:54:10 UTC) #14
hbos_chromium
lgtm. I'm curious about if there are integration tests for this, considering tests are done ...
4 years ago (2016-12-05 16:30:32 UTC) #17
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/2550493003/60001
4 years ago (2016-12-05 16:37:34 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years ago (2016-12-05 16:41:54 UTC) #22
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/d7af8155b1a7a903929b2a932a8a4d807eac487c Cr-Commit-Position: refs/heads/master@{#436320}
4 years ago (2016-12-05 16:43:33 UTC) #24
Guido Urdaneta
On 2016/12/05 16:30:32, hbos_chromium wrote: > lgtm. > > I'm curious about if there are ...
4 years ago (2016-12-05 17:23:25 UTC) #25
Guido Urdaneta
4 years ago (2016-12-05 17:23:52 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/2550493003/diff/60001/content/renderer/media/...
File content/renderer/media/user_media_client_impl.cc (right):

https://codereview.chromium.org/2550493003/diff/60001/content/renderer/media/...
content/renderer/media/user_media_client_impl.cc:249:
user_media_request.ownerDocument().frame()));
On 2016/12/05 16:30:31, hbos_chromium wrote:
> I take it that this is still needed even though the other test-specific code
> path was removed?

For some definition of needed :)
It doesn't seem to hurt.

Powered by Google App Engine
This is Rietveld 408576698