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

Issue 949293004: Add media router common classes and unittests. (Closed)

Created:
5 years, 10 months ago by Kevin M
Modified:
5 years, 9 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, media-router+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add media router common classes and unittests. Create makefiles and integrate MR with GN build. Add to GYP build. BUG=460660 R=scherkus@chromium.org,DaleCurtis@chromium.org,xhwang@chromium.org,mfoltz@chromium.org,sky@chromium.org Committed: https://crrev.com/d2f3bea0fef8b99360075e2483461ec075ceb013 Cr-Commit-Position: refs/heads/master@{#320186}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Chunkier CL #

Total comments: 6

Patch Set 3 : Resync with latest changes #

Total comments: 61

Patch Set 4 : Addressed code review feedback #

Patch Set 5 : More typedef=>using conversions. #

Total comments: 19

Patch Set 6 : Code review feedback. #

Total comments: 16

Patch Set 7 : Code review feedback #

Total comments: 52

Patch Set 8 : MediaSource is now a class. #

Patch Set 9 : MediaSource struct is now a class #

Total comments: 21

Patch Set 10 : Code review feedback #

Patch Set 11 : Code review feedback. #

Total comments: 6

Patch Set 12 : XH's LGTM feedback. #

Total comments: 10

Patch Set 13 : Resync with master #

Patch Set 14 : GN target fix. #

Patch Set 15 : Move Media Router sources from common gyp locations to their own files #

Patch Set 16 : Fixed Chromium copyright statement. #

Total comments: 2

Patch Set 17 : Bring GN files up to date. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -0 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/media/router/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route.h View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route.cc View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route_id.h View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_sink.h View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_sink.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_sink_unittest.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_source_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/media/router/route_id_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/media/router/route_id_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/media/router/route_id_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (16 generated)
Kevin M
5 years, 10 months ago (2015-02-25 01:49:34 UTC) #1
mark a. foltz
lgtm, but it might make sense to start with a slightly larger chunk of code ...
5 years, 10 months ago (2015-02-26 01:00:06 UTC) #2
mark a. foltz
not lgtm Would like to have a discussion around this. I feel like collating these ...
5 years, 10 months ago (2015-02-26 01:11:22 UTC) #3
Kevin M
I talked with imcheng@ about this. He used existing code in the Chromium codebase as ...
5 years, 10 months ago (2015-02-26 01:24:57 UTC) #4
Kevin M
Removed the other reviewers from the R= list until I've restructured the code to mfoltz's ...
5 years, 10 months ago (2015-02-26 01:26:06 UTC) #6
Kevin M
OK, this CL now includes more base classes and should be fully integrated with the ...
5 years, 10 months ago (2015-02-27 00:10:29 UTC) #7
mark a. foltz
Some suggestions to whittle down this patch to the files we know we'll need. media_source.* ...
5 years, 9 months ago (2015-02-27 05:48:10 UTC) #8
Kevin M
https://codereview.chromium.org/949293004/diff/20001/chrome/browser/media/router/media_cast_mode.h File chrome/browser/media/router/media_cast_mode.h (right): https://codereview.chromium.org/949293004/diff/20001/chrome/browser/media/router/media_cast_mode.h#newcode13 chrome/browser/media/router/media_cast_mode.h:13: enum MediaCastMode { On 2015/02/27 05:48:10, mark a. foltz ...
5 years, 9 months ago (2015-02-27 18:42:17 UTC) #9
mark a. foltz
https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc#newcode12 chrome/browser/media/router/media_route.cc:12: const int64 kInvalidRouteRequestId = -1; s/int64/RouteRequestId/ https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc#newcode24 chrome/browser/media/router/media_route.cc:24: state_(MEDIA_ROUTE_STATE_NEW) ...
5 years, 9 months ago (2015-03-02 21:40:10 UTC) #10
DaleCurtis
https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.h File chrome/browser/media/router/media_route.h (right): https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.h#newcode39 chrome/browser/media/router/media_route.h:39: class MediaRoute { You'll likely need EXPORT definitions if ...
5 years, 9 months ago (2015-03-02 23:14:33 UTC) #12
Kevin M
https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc#newcode12 chrome/browser/media/router/media_route.cc:12: const int64 kInvalidRouteRequestId = -1; On 2015/03/02 21:40:08, mark ...
5 years, 9 months ago (2015-03-03 21:53:20 UTC) #13
Kevin M
https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.h File chrome/browser/media/router/media_route.h (right): https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.h#newcode71 chrome/browser/media/router/media_route.h:71: // The description of the media route activity. On ...
5 years, 9 months ago (2015-03-03 22:18:27 UTC) #14
imcheng
drive-by review https://codereview.chromium.org/949293004/diff/80001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/80001/chrome/browser/media/router/media_route.cc#newcode35 chrome/browser/media/router/media_route.cc:35: return media_route_id_ != other.media_route_id_; I think we ...
5 years, 9 months ago (2015-03-03 22:53:10 UTC) #16
Kevin M
https://codereview.chromium.org/949293004/diff/80001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/80001/chrome/browser/media/router/media_route.cc#newcode35 chrome/browser/media/router/media_route.cc:35: return media_route_id_ != other.media_route_id_; On 2015/03/03 22:53:09, imcheng1 wrote: ...
5 years, 9 months ago (2015-03-03 23:28:05 UTC) #17
mark a. foltz
Getting close. Here's a bit of context for my comments about locale: http://stackoverflow.com/questions/26110405/polymer-rtl-text-based-on-an-attribute https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc File ...
5 years, 9 months ago (2015-03-04 06:22:59 UTC) #18
Kevin M
https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/40001/chrome/browser/media/router/media_route.cc#newcode24 chrome/browser/media/router/media_route.cc:24: state_(MEDIA_ROUTE_STATE_NEW) { On 2015/03/04 06:22:58, mark a. foltz wrote: ...
5 years, 9 months ago (2015-03-04 23:33:32 UTC) #19
mark a. foltz
lgtm % a few remaining comments https://codereview.chromium.org/949293004/diff/100001/chrome/browser/media/router/media_route.h File chrome/browser/media/router/media_route.h (right): https://codereview.chromium.org/949293004/diff/100001/chrome/browser/media/router/media_route.h#newcode39 chrome/browser/media/router/media_route.h:39: // needs to ...
5 years, 9 months ago (2015-03-05 16:58:41 UTC) #20
Kevin M
Thanks for the detailed review, Mark. Hello Andrew, Dale, and Xiaohan! Please take a look ...
5 years, 9 months ago (2015-03-05 18:34:18 UTC) #22
xhwang
A lot of nits.... https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route.h File chrome/browser/media/router/media_route.h (right): https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route.h#newcode22 chrome/browser/media/router/media_route.h:22: extern const RouteRequestId kInvalidRouteRequestId; kInvalidRouteRequestId ...
5 years, 9 months ago (2015-03-05 22:28:50 UTC) #23
Kevin M
Thanks Xiaohan. https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route.h File chrome/browser/media/router/media_route.h (right): https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route.h#newcode22 chrome/browser/media/router/media_route.h:22: extern const RouteRequestId kInvalidRouteRequestId; On 2015/03/05 22:28:49, ...
5 years, 9 months ago (2015-03-06 23:12:46 UTC) #24
Kevin M
imcheng/mfoltz, please note the changes to MediaSource.
5 years, 9 months ago (2015-03-06 23:13:12 UTC) #25
xhwang
More nits. Some comments are in PS7. https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route_factory.h File chrome/browser/media/router/media_route_factory.h (right): https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route_factory.h#newcode33 chrome/browser/media/router/media_route_factory.h:33: MediaRoute Create(const ...
5 years, 9 months ago (2015-03-09 17:37:31 UTC) #26
Kevin M
https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route_factory.h File chrome/browser/media/router/media_route_factory.h (right): https://codereview.chromium.org/949293004/diff/120001/chrome/browser/media/router/media_route_factory.h#newcode33 chrome/browser/media/router/media_route_factory.h:33: MediaRoute Create(const MediaSource& media_source, On 2015/03/09 17:37:30, xhwang wrote: ...
5 years, 9 months ago (2015-03-09 23:32:07 UTC) #27
xhwang
lgtm % nits. Thanks for your patience! https://codereview.chromium.org/949293004/diff/200001/chrome/browser/media/router/media_sources.h File chrome/browser/media/router/media_sources.h (right): https://codereview.chromium.org/949293004/diff/200001/chrome/browser/media/router/media_sources.h#newcode6 chrome/browser/media/router/media_sources.h:6: #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCES_H_ ...
5 years, 9 months ago (2015-03-10 04:27:07 UTC) #28
Kevin M
https://codereview.chromium.org/949293004/diff/200001/chrome/browser/media/router/media_sources.h File chrome/browser/media/router/media_sources.h (right): https://codereview.chromium.org/949293004/diff/200001/chrome/browser/media/router/media_sources.h#newcode6 chrome/browser/media/router/media_sources.h:6: #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCES_H_ On 2015/03/10 04:27:07, xhwang wrote: > media_sources.h ...
5 years, 9 months ago (2015-03-10 17:40:04 UTC) #29
imcheng
https://codereview.chromium.org/949293004/diff/220001/chrome/browser/media/router/route_id_manager.h File chrome/browser/media/router/route_id_manager.h (right): https://codereview.chromium.org/949293004/diff/220001/chrome/browser/media/router/route_id_manager.h#newcode22 chrome/browser/media/router/route_id_manager.h:22: class RouteIDManager : public base::NonThreadSafe { Wouldn't it be ...
5 years, 9 months ago (2015-03-10 17:43:33 UTC) #31
mark a. foltz
Mostly comments on comments ;) https://codereview.chromium.org/949293004/diff/220001/chrome/browser/media/router/media_route.cc File chrome/browser/media/router/media_route.cc (right): https://codereview.chromium.org/949293004/diff/220001/chrome/browser/media/router/media_route.cc#newcode28 chrome/browser/media/router/media_route.cc:28: bool MediaRoute::Equals(const MediaRoute& other) ...
5 years, 9 months ago (2015-03-10 20:59:37 UTC) #32
Kevin M
sky or jhawkins, could you review for gyp & GN changes? Thanks.
5 years, 9 months ago (2015-03-10 23:14:17 UTC) #33
Kevin M
5 years, 9 months ago (2015-03-10 23:14:35 UTC) #35
sky
LGTM
5 years, 9 months ago (2015-03-10 23:35:53 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949293004/240001
5 years, 9 months ago (2015-03-10 23:36:58 UTC) #39
Kevin M
+jam@chromium.org, would you mind reviewing the change to /src/BUILD.gn? Thanks!
5 years, 9 months ago (2015-03-10 23:38:19 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/48748)
5 years, 9 months ago (2015-03-11 00:47:27 UTC) #43
jam
lgtm
5 years, 9 months ago (2015-03-11 14:45:50 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949293004/240001
5 years, 9 months ago (2015-03-11 17:08:58 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949293004/260001
5 years, 9 months ago (2015-03-11 17:18:18 UTC) #49
Kevin M
sky@, please take a look - I have moved the Media Router sources and unittests ...
5 years, 9 months ago (2015-03-11 19:17:58 UTC) #51
sky
Fix the following and LGTM https://codereview.chromium.org/949293004/diff/300001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/949293004/diff/300001/chrome/browser/media/router/BUILD.gn#newcode20 chrome/browser/media/router/BUILD.gn:20: "route_id_manager.cc", I don't see ...
5 years, 9 months ago (2015-03-11 19:53:56 UTC) #52
Kevin M
https://codereview.chromium.org/949293004/diff/300001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/949293004/diff/300001/chrome/browser/media/router/BUILD.gn#newcode20 chrome/browser/media/router/BUILD.gn:20: "route_id_manager.cc", On 2015/03/11 19:53:56, sky wrote: > I don't ...
5 years, 9 months ago (2015-03-11 20:47:41 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949293004/320001
5 years, 9 months ago (2015-03-11 20:48:21 UTC) #56
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 9 months ago (2015-03-11 23:42:30 UTC) #57
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 23:43:48 UTC) #58
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/d2f3bea0fef8b99360075e2483461ec075ceb013
Cr-Commit-Position: refs/heads/master@{#320186}

Powered by Google App Engine
This is Rietveld 408576698