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

Issue 1464463004: Componentize Unit Test for gcm_profile_service

Created:
5 years, 1 month ago by Jitu( very slow this week)
Modified:
4 years, 7 months ago
Reviewers:
droger, Nicolas Zea
CC:
chromium-reviews, zea+watch_chromium.org, Abhishek
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize Unit Test for gcm_profile_service Remove the bad dependencies from gcm_profile_service_unittest.cc. BUG=519585

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix comments #

Total comments: 10

Patch Set 3 : Fix comments #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : Fix #

Total comments: 4

Patch Set 6 : Fix comments #

Patch Set 7 : Rebase and fixed dependancy #

Patch Set 8 : Fixed UT crash in GN build #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -312 lines) Patch
D chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 chunk +0 lines, -249 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/gcm_driver/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M components/gcm_driver/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/gcm_profile_service.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_profile_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + components/gcm_driver/gcm_profile_service_unittest.cc View 1 2 3 4 5 6 7 7 chunks +50 lines, -60 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Jitu( very slow this week)
PTAL ... for initial changes. Please let me know how to replace content/browser_thread dependency.
5 years ago (2015-11-24 16:17:57 UTC) #3
droger
https://codereview.chromium.org/1464463004/diff/1/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/1/components/gcm_driver/gcm_profile_service_unittest.cc#newcode84 components/gcm_driver/gcm_profile_service_unittest.cc:84: base::Thread io_thread_; Remove task_runner_ and io_thread_ and use a ...
5 years ago (2015-11-25 09:19:21 UTC) #4
Jitu( very slow this week)
PTAL ! https://codereview.chromium.org/1464463004/diff/1/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/1/components/gcm_driver/gcm_profile_service_unittest.cc#newcode84 components/gcm_driver/gcm_profile_service_unittest.cc:84: base::Thread io_thread_; On 2015/11/25 09:19:20, droger wrote: ...
5 years ago (2015-12-14 13:40:37 UTC) #10
droger
https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode122 components/gcm_driver/gcm_profile_service_unittest.cc:122: client.reset(new TestSigninClient(&prefs_)); If you do this, the client will ...
5 years ago (2015-12-14 13:54:35 UTC) #11
Jitu( very slow this week)
PTAL https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode122 components/gcm_driver/gcm_profile_service_unittest.cc:122: client.reset(new TestSigninClient(&prefs_)); On 2015/12/14 13:54:34, droger wrote: > ...
5 years ago (2015-12-14 14:27:54 UTC) #12
droger
https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/80001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode163 components/gcm_driver/gcm_profile_service_unittest.cc:163: base::ThreadTaskRunnerHandle::Get(), message_loop_.task_runner(), On 2015/12/14 14:27:54, Jitu( very slow this ...
5 years ago (2015-12-14 14:31:47 UTC) #13
Jitu( very slow this week)
PTAL https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode139 components/gcm_driver/gcm_profile_service_unittest.cc:139: new net::TestURLRequestContextGetter(message_loop_.task_runner()); Converting to SingleThreadTaskRunner here gives me ...
5 years ago (2015-12-15 07:59:49 UTC) #14
droger
https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode139 components/gcm_driver/gcm_profile_service_unittest.cc:139: new net::TestURLRequestContextGetter(message_loop_.task_runner()); On 2015/12/15 07:59:49, Jitu( very slow this ...
5 years ago (2015-12-15 14:51:13 UTC) #15
Jitu( very slow this week)
https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode139 components/gcm_driver/gcm_profile_service_unittest.cc:139: new net::TestURLRequestContextGetter(message_loop_.task_runner()); On 2015/12/15 14:51:12, droger wrote: > On ...
5 years ago (2015-12-16 05:41:09 UTC) #16
droger
https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode139 components/gcm_driver/gcm_profile_service_unittest.cc:139: new net::TestURLRequestContextGetter(message_loop_.task_runner()); On 2015/12/16 05:41:09, Jitu( very slow this ...
5 years ago (2015-12-17 10:18:24 UTC) #17
Jitu( very slow this week)
PTAL ! https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/120001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode139 components/gcm_driver/gcm_profile_service_unittest.cc:139: new net::TestURLRequestContextGetter(message_loop_.task_runner()); On 2015/12/17 10:18:24, droger wrote: ...
5 years ago (2015-12-17 11:52:56 UTC) #18
droger
LGTM, thanks. I suggest adding zea as OWNER once you addressed the comments below. https://codereview.chromium.org/1464463004/diff/140001/components/gcm_driver/gcm_profile_service_unittest.cc ...
5 years ago (2015-12-17 13:23:22 UTC) #19
Jitu( very slow this week)
@Zea, PTAL ! https://codereview.chromium.org/1464463004/diff/140001/components/gcm_driver/gcm_profile_service_unittest.cc File components/gcm_driver/gcm_profile_service_unittest.cc (right): https://codereview.chromium.org/1464463004/diff/140001/components/gcm_driver/gcm_profile_service_unittest.cc#newcode118 components/gcm_driver/gcm_profile_service_unittest.cc:118: AccountTrackerService::MIGRATION_NOT_STARTED); On 2015/12/17 13:23:22, droger wrote: ...
5 years ago (2015-12-17 14:02:01 UTC) #21
Nicolas Zea
lgtm
5 years ago (2015-12-17 23:57:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464463004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464463004/160001
5 years ago (2015-12-18 05:22:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/29082) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-18 05:25:28 UTC) #27
Jitu( very slow this week)
5 years ago (2015-12-18 13:35:16 UTC) #28
On 2015/12/18 05:25:28, commit-bot: I haz the power wrote:
> Try jobs failed on following builders:
>   linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
>   linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
>   mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...)

@Droger,

It is failing in DCHECK() in some buildbots.
Below is the error, 
[14986:1803:1218/045513:16431517376621:FATAL:signin_manager_base.cc(35)] Check
failed: client_.

As we passes the null client, it fails here.
So do we need to create a valid signinclient, AccountTrackerService and set it
up.
Or any other way , please suggest me.

Powered by Google App Engine
This is Rietveld 408576698