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

Issue 98173009: GCM Checkin implementation with unit tests and protobufs (Closed)

Created:
6 years, 12 months ago by fgorski
Modified:
6 years, 11 months ago
Reviewers:
Nicolas Zea, jianli
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@gcm-store
Visibility:
Public.

Description

GCM Checkin implementation with unit tests. BUG=284553 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243729

Patch Set 1 #

Patch Set 2 : Adding protobufs, request/response implementation and unit tests #

Total comments: 46

Patch Set 3 : Updates based on CR comments #

Total comments: 4

Patch Set 4 : Adding more tests per code review, fixing copyright notice #

Total comments: 6

Patch Set 5 : Cleaning up the issue of a signed android_id (it should stay uint64) #

Patch Set 6 : Renaming fields, class names and files, updating gyp file. #

Total comments: 22

Patch Set 7 : Rebasing #

Patch Set 8 : Applying feedback, restructuring unit tests, adding todos for the const ref. #

Patch Set 9 : Updating the copyright notice #

Total comments: 8

Patch Set 10 : Final patch with gcm::CheckinRequest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+705 lines, -33 lines) Patch
M chrome/browser/services/gcm/gcm_client_mock.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/gcm_client_mock.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 6 7 9 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
A google_apis/gcm/engine/checkin_request.h View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/checkin_request.cc View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 0 comments Download
A google_apis/gcm/engine/checkin_request_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +260 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm.gyp View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client.h View 1 2 3 4 5 6 7 5 chunks +8 lines, -8 lines 0 comments Download
A google_apis/gcm/protocol/android_checkin.proto View 1 2 3 4 5 6 7 1 chunk +97 lines, -0 lines 0 comments Download
A google_apis/gcm/protocol/checkin.proto View 1 2 3 4 5 6 7 8 9 1 chunk +156 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
fgorski
There are a few includes and fields that I need to clean up, but I ...
6 years, 11 months ago (2014-01-04 00:54:07 UTC) #1
jianli
https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request.cc File google_apis/gcm/engine/gcm_checkin_request.cc (right): https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request.cc#newcode28 google_apis/gcm/engine/gcm_checkin_request.cc:28: const char kRequestDataFormat[] = "application/x-protobuf"; nit: kRequestContentType https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request.cc#newcode98 google_apis/gcm/engine/gcm_checkin_request.cc:98: ...
6 years, 11 months ago (2014-01-04 01:34:09 UTC) #2
Nicolas Zea
https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request.cc File google_apis/gcm/engine/gcm_checkin_request.cc (right): https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request.cc#newcode63 google_apis/gcm/engine/gcm_checkin_request.cc:63: new checkin_proto::AndroidCheckinProto(); you can just do request->mutable_checkin_proto and mutable_allocated_chrome_build ...
6 years, 11 months ago (2014-01-04 01:40:19 UTC) #3
fgorski
PTAL. Nicolas, I think android_id should be of type int64. Is there a reason we ...
6 years, 11 months ago (2014-01-06 20:34:12 UTC) #4
jianli
https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request_unittest.cc File google_apis/gcm/engine/gcm_checkin_request_unittest.cc (right): https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request_unittest.cc#newcode89 google_apis/gcm/engine/gcm_checkin_request_unittest.cc:89: TEST_F(GCMCheckinRequestTest, EmptyResponseBody) { On 2014/01/04 01:34:10, jianli wrote: > ...
6 years, 11 months ago (2014-01-06 21:00:00 UTC) #5
fgorski
Added tests. https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request_unittest.cc File google_apis/gcm/engine/gcm_checkin_request_unittest.cc (right): https://codereview.chromium.org/98173009/diff/70001/google_apis/gcm/engine/gcm_checkin_request_unittest.cc#newcode89 google_apis/gcm/engine/gcm_checkin_request_unittest.cc:89: TEST_F(GCMCheckinRequestTest, EmptyResponseBody) { On 2014/01/06 21:00:01, jianli ...
6 years, 11 months ago (2014-01-06 21:58:03 UTC) #6
jianli
https://codereview.chromium.org/98173009/diff/310001/google_apis/gcm/engine/gcm_checkin_request.h File google_apis/gcm/engine/gcm_checkin_request.h (right): https://codereview.chromium.org/98173009/diff/310001/google_apis/gcm/engine/gcm_checkin_request.h#newcode21 google_apis/gcm/engine/gcm_checkin_request.h:21: class GCM_EXPORT GCMCheckinRequest : public net::URLFetcherDelegate { Name the ...
6 years, 11 months ago (2014-01-06 22:26:33 UTC) #7
fgorski
PTAL. android_id issue solved; classes renamed. https://codereview.chromium.org/98173009/diff/310001/google_apis/gcm/engine/gcm_checkin_request.h File google_apis/gcm/engine/gcm_checkin_request.h (right): https://codereview.chromium.org/98173009/diff/310001/google_apis/gcm/engine/gcm_checkin_request.h#newcode21 google_apis/gcm/engine/gcm_checkin_request.h:21: class GCM_EXPORT GCMCheckinRequest ...
6 years, 11 months ago (2014-01-06 23:15:54 UTC) #8
jianli
lgtm https://codereview.chromium.org/98173009/diff/400001/google_apis/gcm/engine/checkin_request_unittest.cc File google_apis/gcm/engine/checkin_request_unittest.cc (right): https://codereview.chromium.org/98173009/diff/400001/google_apis/gcm/engine/checkin_request_unittest.cc#newcode235 google_apis/gcm/engine/checkin_request_unittest.cc:235: TEST_F(CheckinRequestTest, ResponseValueOfAndroidIdIsZero) { nit: ResponseContainingZeroAndroidId https://codereview.chromium.org/98173009/diff/400001/google_apis/gcm/engine/checkin_request_unittest.cc#newcode254 google_apis/gcm/engine/checkin_request_unittest.cc:254: TEST_F(CheckinRequestTest, ...
6 years, 11 months ago (2014-01-06 23:28:43 UTC) #9
Nicolas Zea
https://codereview.chromium.org/98173009/diff/400001/chrome/browser/services/gcm/gcm_client_mock.h File chrome/browser/services/gcm/gcm_client_mock.h (right): https://codereview.chromium.org/98173009/diff/400001/chrome/browser/services/gcm/gcm_client_mock.h#newcode58 chrome/browser/services/gcm/gcm_client_mock.h:58: void CheckInFinished(std::string username, CheckinInfo checkin_info); nit: this, and all ...
6 years, 11 months ago (2014-01-07 00:41:51 UTC) #10
fgorski
Applied feedback, PTAL https://codereview.chromium.org/98173009/diff/400001/chrome/browser/services/gcm/gcm_client_mock.h File chrome/browser/services/gcm/gcm_client_mock.h (right): https://codereview.chromium.org/98173009/diff/400001/chrome/browser/services/gcm/gcm_client_mock.h#newcode58 chrome/browser/services/gcm/gcm_client_mock.h:58: void CheckInFinished(std::string username, CheckinInfo checkin_info); On ...
6 years, 11 months ago (2014-01-07 23:46:43 UTC) #11
Nicolas Zea
LGTM with nits https://codereview.chromium.org/98173009/diff/700001/google_apis/gcm/engine/checkin_request.h File google_apis/gcm/engine/checkin_request.h (right): https://codereview.chromium.org/98173009/diff/700001/google_apis/gcm/engine/checkin_request.h#newcode20 google_apis/gcm/engine/checkin_request.h:20: // Enables making check-in requests with ...
6 years, 11 months ago (2014-01-08 19:53:36 UTC) #12
fgorski
Updated all. Thanks for review. CQ will try the patch. https://codereview.chromium.org/98173009/diff/700001/google_apis/gcm/engine/checkin_request.h File google_apis/gcm/engine/checkin_request.h (right): https://codereview.chromium.org/98173009/diff/700001/google_apis/gcm/engine/checkin_request.h#newcode20 ...
6 years, 11 months ago (2014-01-08 21:26:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/98173009/790001
6 years, 11 months ago (2014-01-08 21:31:37 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=211562
6 years, 11 months ago (2014-01-08 22:44:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/98173009/790001
6 years, 11 months ago (2014-01-08 23:40:54 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 01:37:13 UTC) #17
Message was sent while issue was closed.
Change committed as 243729

Powered by Google App Engine
This is Rietveld 408576698