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

Issue 1401993002: Refactoring DeviceCapabilities unit test. (Closed)

Created:
5 years, 2 months ago by esum
Modified:
5 years, 2 months ago
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Capabilities do not get removed when Validators unregister. Also removing capability value initialization from Register(). This is done separately now. The unit tests were checking the internal dictionary to test the result of capability changes. This is incorrect. They have been changed to use the public GetCapability() accessor. Also adding a GetValidator() method that is currently used in unit tests but also can be useful in future for checking if a Validator is currently registered for a capability. TEST=cast_base_unittests BUG= Committed: https://crrev.com/179e89659c89c0f738286374e6084b77c8c82c14 Cr-Commit-Position: refs/heads/master@{#353945}

Patch Set 1 #

Patch Set 2 : Unregister() does not remove capability. Register() does not take initial value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -165 lines) Patch
M chromecast/base/device_capabilities.h View 1 1 chunk +12 lines, -8 lines 0 comments Download
M chromecast/base/device_capabilities_impl.h View 1 2 chunks +2 lines, -5 lines 0 comments Download
M chromecast/base/device_capabilities_impl.cc View 1 2 chunks +11 lines, -21 lines 0 comments Download
M chromecast/base/device_capabilities_impl_unittest.cc View 1 11 chunks +110 lines, -131 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
esum
Planned set of changes (each change is done in preparation for next): 1) Refactor unit ...
5 years, 2 months ago (2015-10-13 19:42:52 UTC) #2
byungchul
On 2015/10/13 19:42:52, ericsum wrote: > Planned set of changes (each change is done in ...
5 years, 2 months ago (2015-10-13 21:52:20 UTC) #3
esum
On 2015/10/13 21:52:20, byungchul wrote: > On 2015/10/13 19:42:52, ericsum wrote: > > Planned set ...
5 years, 2 months ago (2015-10-13 21:57:02 UTC) #4
esum
On 2015/10/13 21:57:02, ericsum wrote: > On 2015/10/13 21:52:20, byungchul wrote: > > On 2015/10/13 ...
5 years, 2 months ago (2015-10-13 22:08:59 UTC) #5
esum
On 2015/10/13 22:08:59, ericsum wrote: > On 2015/10/13 21:57:02, ericsum wrote: > > On 2015/10/13 ...
5 years, 2 months ago (2015-10-14 00:39:36 UTC) #6
byungchul
lgtm
5 years, 2 months ago (2015-10-14 01:01:24 UTC) #7
halliwell
On 2015/10/14 01:01:24, byungchul wrote: > lgtm rs-lgtm
5 years, 2 months ago (2015-10-14 01:54:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401993002/20001
5 years, 2 months ago (2015-10-14 01:56:18 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-14 02:17:56 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 02:18:38 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/179e89659c89c0f738286374e6084b77c8c82c14
Cr-Commit-Position: refs/heads/master@{#353945}

Powered by Google App Engine
This is Rietveld 408576698