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

Issue 221453003: Removing the mock-keychain related bool from GCMStore constructor (Closed)

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

Description

Removing the mock-keychain related bool from GCMStore constructor Removing the first parameter of GCMStore constructor. Adding BuildGCMStore and SetUpForTesting to GCMInternalsBuilder. Moving GCMInternalsBuilder to its own files in gcm/engine/ BUG=342360 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261842 Closing and moving to https://codereview.chromium.org/232113004/ for a fresh code review.

Patch Set 1 #

Patch Set 2 : updating unit_tests #

Patch Set 3 : Adding mock keychain back in gcm_unit_tests #

Patch Set 4 : Rebasing #

Patch Set 5 : Moving all of the encryptor calls from tests to chrome binary #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -88 lines) Patch
A google_apis/gcm/engine/gcm_internals_builder.h View 1 2 3 4 1 chunk +64 lines, -0 lines 6 comments Download
A google_apis/gcm/engine/gcm_internals_builder.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 2 comments Download
M google_apis/gcm/engine/gcm_store_impl.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M google_apis/gcm/engine/gcm_store_impl_unittest.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 1 comment Download
M google_apis/gcm/engine/mcs_client_unittest.cc View 1 2 3 4 3 chunks +5 lines, -10 lines 0 comments Download
M google_apis/gcm/gcm.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.h View 1 2 3 4 3 chunks +2 lines, -22 lines 0 comments Download
M google_apis/gcm/gcm_client_impl.cc View 1 2 3 4 3 chunks +4 lines, -35 lines 0 comments Download
M google_apis/gcm/gcm_client_impl_unittest.cc View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
fgorski
PTAL. Change removes the mock keychain calls.
6 years, 8 months ago (2014-04-01 22:17:31 UTC) #1
Nicolas Zea
LGTM if you're confident this won't affect the trybots/buildbots.
6 years, 8 months ago (2014-04-01 22:38:56 UTC) #2
jianli
lgtm
6 years, 8 months ago (2014-04-01 22:45:03 UTC) #3
fgorski
Nicolas, I am adding the mock keychain back in gcm_unit_tests for the time being. Once ...
6 years, 8 months ago (2014-04-02 17:24:22 UTC) #4
jianli
As long as we make sure that InProcessBrowserTest::SetUp is called, it should be taken care ...
6 years, 8 months ago (2014-04-02 17:28:05 UTC) #5
fgorski
Yeah, that is exactly what Nicolas asked for. It does not work for unit tests. ...
6 years, 8 months ago (2014-04-02 17:32:02 UTC) #6
Nicolas Zea
lgtm
6 years, 8 months ago (2014-04-02 17:42:21 UTC) #7
jianli
On Wed, Apr 2, 2014 at 10:32 AM, <fgorski@chromium.org> wrote: > Yeah, that is exactly ...
6 years, 8 months ago (2014-04-02 17:58:17 UTC) #8
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 8 months ago (2014-04-03 23:30:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fgorski@chromium.org/221453003/40001
6 years, 8 months ago (2014-04-03 23:31:07 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 23:31:17 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/services/gcm/gcm_profile_service_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-03 23:31:18 UTC) #12
fgorski
The CQ bit was checked by fgorski@chromium.org
6 years, 8 months ago (2014-04-04 17:10:11 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/221453003/60001
6 years, 8 months ago (2014-04-04 17:10:13 UTC) #14
commit-bot: I haz the power
Change committed as 261842
6 years, 8 months ago (2014-04-04 19:34:56 UTC) #15
fgorski
A revert of this CL has been created in https://codereview.chromium.org/226223005/ by fgorski@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-08 04:48:14 UTC) #16
fgorski
PTAL, I moved the mock keychain code to chrome binary.
6 years, 8 months ago (2014-04-09 23:23:27 UTC) #17
jianli
6 years, 8 months ago (2014-04-09 23:36:58 UTC) #18
Why can't we append a command line switch in SetUp?

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
File google_apis/gcm/engine/gcm_internals_builder.cc (right):

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.cc:1: // Copyright 2013 The
Chromium Authors. All rights reserved.
2014

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.cc:20:
GCMInternalsBuilder::~GCMInternalsBuilder() {}
nit: empty line above

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
File google_apis/gcm/engine/gcm_internals_builder.h (right):

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:12: #include
"google_apis/gcm/engine/gcm_store.h"
Do we need to include this?

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:13: #include
"google_apis/gcm/engine/mcs_client.h"
ditto

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:15: #include "net/base/net_log.h"
ditto

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:16: #include
"net/url_request/url_request_context_getter.h"
ditto

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:43: const
scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
Do we need forward declaration for SequencedTaskRunner?

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_internals_builder.h:59: bool testing_;
nit: DISALLOW_COPY_AND_ASSIGN

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
File google_apis/gcm/engine/gcm_store_impl_unittest.cc (right):

https://codereview.chromium.org/221453003/diff/80001/google_apis/gcm/engine/g...
google_apis/gcm/engine/gcm_store_impl_unittest.cc:78:
message_loop_.message_loop_proxy()).Pass();
No need to call Pass.

Powered by Google App Engine
This is Rietveld 408576698