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

Issue 1212333011: Retrieved Hostlist information from Directory service. (Closed)

Created:
5 years, 5 months ago by tonychun
Modified:
5 years, 5 months ago
Reviewers:
Sergey Ulanov, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding the ChromotingHostListFetcher and its respective unittests. The ChromotingHostListFetcher requests a host list from the Directory service (currently a REST call). The rest call is parsed and creates a ChromotingHostInfo struct instance, which encapsulates important host information. Once the host list of ChromotingHostInfos is created, it is returned to the callback. BUG= Committed: https://crrev.com/e3fe98489be2fe1f9e504fa5c6ac1f2e205fd561 Cr-Commit-Position: refs/heads/master@{#338328}

Patch Set 1 #

Total comments: 75

Patch Set 2 : Added unittests and cleaned up format of C++ code. #

Total comments: 115

Patch Set 3 : Cleaned up fetcher code and added more unit test coverage. #

Total comments: 35

Patch Set 4 : Changed file names to remove ambiguity and cleaned up code. #

Total comments: 26

Patch Set 5 : Cleaned up code and changed DVLOG to VLOG. #

Total comments: 4

Patch Set 6 : Modified DVLOG to LOG and change constant naming in unittest. #

Patch Set 7 : Final clean up. #

Patch Set 8 : Added missing offline_host check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+831 lines, -27 lines) Patch
M remoting/remoting_test.gypi View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M remoting/test/chromoting_test_driver.cc View 1 2 3 4 5 6 7 10 chunks +76 lines, -27 lines 0 comments Download
A remoting/test/host_info.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A remoting/test/host_info.cc View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
A remoting/test/host_list_fetcher.h View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A remoting/test/host_list_fetcher.cc View 1 2 3 4 5 1 chunk +115 lines, -0 lines 0 comments Download
A remoting/test/host_list_fetcher_unittest.cc View 1 2 3 4 5 1 chunk +444 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
tonychun
5 years, 5 months ago (2015-06-30 23:52:14 UTC) #2
joedow
Please run cpplint.py, run clang-format, and add unit tests for next revision. https://codereview.chromium.org/1212333011/diff/1/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc ...
5 years, 5 months ago (2015-07-01 03:39:36 UTC) #3
tonychun
Added unit test for chromoting host list fetcher and cleaned up C++ code. https://codereview.chromium.org/1212333011/diff/1/remoting/test/chromoting_host_info.cc File ...
5 years, 5 months ago (2015-07-06 20:11:51 UTC) #4
joedow
https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc (right): https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc#newcode17 remoting/test/chromoting_host_info.cc:17: ChromotingHostInfo::ChromotingHostInfo(const base::DictionaryValue& item) { instead of item, can you ...
5 years, 5 months ago (2015-07-06 22:19:15 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc (right): https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc#newcode10 remoting/test/chromoting_host_info.cc:10: const char kOnlineStatusResponse[] = "ONLINE"; In general it's not ...
5 years, 5 months ago (2015-07-07 00:01:46 UTC) #7
Sergey Ulanov
I think the description for this CL can be improved. In general it's better to ...
5 years, 5 months ago (2015-07-07 00:06:17 UTC) #8
Sergey Ulanov
On 2015/07/07 00:06:17, Sergey Ulanov wrote: > I think the description for this CL can ...
5 years, 5 months ago (2015-07-07 00:08:36 UTC) #9
tonychun
https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc (right): https://codereview.chromium.org/1212333011/diff/20001/remoting/test/chromoting_host_info.cc#newcode10 remoting/test/chromoting_host_info.cc:10: const char kOnlineStatusResponse[] = "ONLINE"; On 2015/07/07 00:01:45, Sergey ...
5 years, 5 months ago (2015-07-08 03:12:16 UTC) #10
joedow
https://codereview.chromium.org/1212333011/diff/40001/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc (right): https://codereview.chromium.org/1212333011/diff/40001/remoting/test/chromoting_host_info.cc#newcode21 remoting/test/chromoting_host_info.cc:21: // Add TokenUrlPatterns to ChromotingHostInfo comments need to end ...
5 years, 5 months ago (2015-07-08 17:19:08 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/1212333011/diff/40001/remoting/test/chromoting_host_info.cc File remoting/test/chromoting_host_info.cc (right): https://codereview.chromium.org/1212333011/diff/40001/remoting/test/chromoting_host_info.cc#newcode43 remoting/test/chromoting_host_info.cc:43: NOTREACHED(); return false? NOTREACHED is equivalent to DCHECK(false) and ...
5 years, 5 months ago (2015-07-08 19:57:34 UTC) #12
tonychun
I have changed the file names of chromoting_host_info and chromoting_host_list_fetcher to host_info and host_list_fetcher respectively. ...
5 years, 5 months ago (2015-07-08 22:38:16 UTC) #13
Sergey Ulanov
https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc File remoting/test/chromoting_test_driver.cc (right): https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc#newcode159 remoting/test/chromoting_test_driver.cc:159: std::vector<remoting::test::HostInfo>* hostlist, Why do you need to use this ...
5 years, 5 months ago (2015-07-09 01:25:29 UTC) #14
joedow
https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc File remoting/test/chromoting_test_driver.cc (right): https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc#newcode150 remoting/test/chromoting_test_driver.cc:150: DVLOG(1) << "Access Token: " << retrieved_access_token; Can you ...
5 years, 5 months ago (2015-07-09 02:41:19 UTC) #15
tonychun
https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc File remoting/test/chromoting_test_driver.cc (right): https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc#newcode150 remoting/test/chromoting_test_driver.cc:150: DVLOG(1) << "Access Token: " << retrieved_access_token; On 2015/07/09 ...
5 years, 5 months ago (2015-07-09 03:02:46 UTC) #16
joedow
LGTM. Once last few comments are addressed... https://codereview.chromium.org/1212333011/diff/80001/remoting/test/host_list_fetcher.cc File remoting/test/host_list_fetcher.cc (right): https://codereview.chromium.org/1212333011/diff/80001/remoting/test/host_list_fetcher.cc#newcode30 remoting/test/host_list_fetcher.cc:30: DVLOG(2) << ...
5 years, 5 months ago (2015-07-09 03:09:56 UTC) #17
tonychun
https://codereview.chromium.org/1212333011/diff/80001/remoting/test/host_list_fetcher.cc File remoting/test/host_list_fetcher.cc (right): https://codereview.chromium.org/1212333011/diff/80001/remoting/test/host_list_fetcher.cc#newcode30 remoting/test/host_list_fetcher.cc:30: DVLOG(2) << "HostListFetcher::RetrieveHostlist() called"; On 2015/07/09 03:09:56, joedow wrote: ...
5 years, 5 months ago (2015-07-09 17:36:22 UTC) #18
Sergey Ulanov
LGTM, but please see my comments https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc File remoting/test/chromoting_test_driver.cc (right): https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc#newcode286 remoting/test/chromoting_test_driver.cc:286: run_loop->Run(); On 2015/07/09 ...
5 years, 5 months ago (2015-07-09 20:15:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212333011/120001
5 years, 5 months ago (2015-07-09 20:31:06 UTC) #22
tonychun
https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc File remoting/test/chromoting_test_driver.cc (right): https://codereview.chromium.org/1212333011/diff/60001/remoting/test/chromoting_test_driver.cc#newcode286 remoting/test/chromoting_test_driver.cc:286: run_loop->Run(); On 2015/07/09 20:15:14, Sergey Ulanov wrote: > On ...
5 years, 5 months ago (2015-07-09 20:32:34 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/76781) (exceeded global retry quota)
5 years, 5 months ago (2015-07-09 21:08:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212333011/140001
5 years, 5 months ago (2015-07-10 18:38:46 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 5 months ago (2015-07-10 18:45:40 UTC) #29
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 18:47:59 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e3fe98489be2fe1f9e504fa5c6ac1f2e205fd561
Cr-Commit-Position: refs/heads/master@{#338328}

Powered by Google App Engine
This is Rietveld 408576698