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

Issue 2123273003: Introduce FakeChromeIdentity and FakeChromeIdentityService. (Closed)

Created:
4 years, 5 months ago by bzanotti
Modified:
4 years, 5 months ago
Reviewers:
sdefresne, msarda
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce FakeChromeIdentity and FakeChromeIdentityService. By using those two fakes, unit tests won't have to depends on the fake of the downstream implementations. This gives a better abstraction and removes one of the dependencies for upstreaming. BUG=626233 Committed: https://crrev.com/ba5e2399f383c6ec18e90e741183bff56204d683 Cr-Commit-Position: refs/heads/master@{#404372}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Remove GetIdentityWithEmail #

Total comments: 6

Patch Set 3 : Nits #

Patch Set 4 : Add missing dependency on gmock #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -2 lines) Patch
M ios/provider/ios_provider_chrome.gyp View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ios/public/provider/chrome/browser/BUILD.gn View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
A ios/public/provider/chrome/browser/signin/fake_chrome_identity.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A ios/public/provider/chrome/browser/signin/fake_chrome_identity.mm View 1 1 chunk +54 lines, -0 lines 0 comments Download
A ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.mm View 1 1 chunk +90 lines, -0 lines 0 comments Download
M ios/public/provider/chrome/browser/test_chrome_browser_provider.mm View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
bzanotti
Mihai: Please take a look. Sylvain: Please do an OWNERS review of the non-signin provider ...
4 years, 5 months ago (2016-07-07 11:29:49 UTC) #2
msarda
https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h File ios/public/provider/chrome/browser/signin/fake_chrome_identity.h (right): https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h#newcode13 ios/public/provider/chrome/browser/signin/fake_chrome_identity.h:13: // Returns a new fake ChromeIdentity based on |email|, ...
4 years, 5 months ago (2016-07-07 11:58:06 UTC) #3
sdefresne
https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h File ios/public/provider/chrome/browser/signin/fake_chrome_identity.h (right): https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h#newcode14 ios/public/provider/chrome/browser/signin/fake_chrome_identity.h:14: // The hashedGaiaID will be derived from |name|. nit: ...
4 years, 5 months ago (2016-07-07 12:12:40 UTC) #4
bzanotti
PTAL https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h File ios/public/provider/chrome/browser/signin/fake_chrome_identity.h (right): https://codereview.chromium.org/2123273003/diff/1/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h#newcode13 ios/public/provider/chrome/browser/signin/fake_chrome_identity.h:13: // Returns a new fake ChromeIdentity based on ...
4 years, 5 months ago (2016-07-07 12:48:12 UTC) #5
sdefresne
lgtm https://codereview.chromium.org/2123273003/diff/20001/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h File ios/public/provider/chrome/browser/signin/fake_chrome_identity.h (right): https://codereview.chromium.org/2123273003/diff/20001/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h#newcode14 ios/public/provider/chrome/browser/signin/fake_chrome_identity.h:14: // The |hashedGaiaID| will be derived from |name|. ...
4 years, 5 months ago (2016-07-07 12:58:02 UTC) #6
bzanotti
https://codereview.chromium.org/2123273003/diff/20001/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h File ios/public/provider/chrome/browser/signin/fake_chrome_identity.h (right): https://codereview.chromium.org/2123273003/diff/20001/ios/public/provider/chrome/browser/signin/fake_chrome_identity.h#newcode14 ios/public/provider/chrome/browser/signin/fake_chrome_identity.h:14: // The |hashedGaiaID| will be derived from |name|. On ...
4 years, 5 months ago (2016-07-07 13:09:32 UTC) #7
msarda
lgtm
4 years, 5 months ago (2016-07-07 13:28:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123273003/40001
4 years, 5 months ago (2016-07-07 17:59:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/32295)
4 years, 5 months ago (2016-07-07 18:27:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123273003/40001
4 years, 5 months ago (2016-07-08 07:48:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123273003/60001
4 years, 5 months ago (2016-07-08 08:00:59 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-08 14:23:42 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 14:23:49 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 14:25:59 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba5e2399f383c6ec18e90e741183bff56204d683
Cr-Commit-Position: refs/heads/master@{#404372}

Powered by Google App Engine
This is Rietveld 408576698