|
|
Created:
4 years, 3 months ago by bzanotti Modified:
4 years, 3 months ago Reviewers:
Roger Tawa OOO till Jul 10th CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd unit tests for Signin Header Helpers.
BUG=649389
Committed: https://crrev.com/1c2ec6ccadd007b2066c8ec575ed346e659cd471
Cr-Commit-Position: refs/heads/master@{#420634}
Patch Set 1 #Patch Set 2 : Refactor and clean up the tests #Patch Set 3 : Better BUILD.gn #
Total comments: 4
Patch Set 4 : Add DCHECK and new test #
Messages
Total messages: 28 (18 generated)
Description was changed from ========== Add unit tests for Signin Header Helpers. BUG= ========== to ========== Add unit tests for Signin Header Helpers. BUG=649389 ==========
The CQ bit was checked by bzanotti@chromium.org to run a CQ dry run
bzanotti@chromium.org changed reviewers: + rogerta@chromium.org
Please take a look. As promised, the unit tests. :)
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
Thanks Benoit :-) All looks good, see below. I think there is a missing test based on our discussion with Dominic. Do you want to ask him if he wants it? I'll give lgtm though since we are in different timezones and maybe my comments don't apply. https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... File components/signin/core/browser/signin_header_helper_unittest.cc (right): https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... components/signin/core/browser/signin_header_helper_unittest.cc:120: TEST_F(SigninHeaderHelperTest, TestMirrorRequestDrive) { Maybe DCHECK that consistency is off at start of test, since enable overrides disable. https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... components/signin/core/browser/signin_header_helper_unittest.cc:176: } According to Dominic, if both the original URL and the redirect URL are not eligible, and the request already contains the header, it should not be stripped. Can we add a test for that?
The CQ bit was checked by bzanotti@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... File components/signin/core/browser/signin_header_helper_unittest.cc (right): https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... components/signin/core/browser/signin_header_helper_unittest.cc:120: TEST_F(SigninHeaderHelperTest, TestMirrorRequestDrive) { On 2016/09/22 19:19:52, Roger Tawa wrote: > Maybe DCHECK that consistency is off at start of test, since enable overrides > disable. I think the CommandLine is reset before each tests, but let's make sure of that. Done. :) https://codereview.chromium.org/2360733002/diff/40001/components/signin/core/... components/signin/core/browser/signin_header_helper_unittest.cc:176: } On 2016/09/22 19:19:52, Roger Tawa wrote: > According to Dominic, if both the original URL and the redirect URL are not > eligible, and the request already contains the header, it should not be > stripped. Can we add a test for that? Done.
The CQ bit was checked by bzanotti@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rogerta@chromium.org Link to the patchset: https://codereview.chromium.org/2360733002/#ps60001 (title: "Add DCHECK and new test")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by bzanotti@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by bzanotti@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Add unit tests for Signin Header Helpers. BUG=649389 ========== to ========== Add unit tests for Signin Header Helpers. BUG=649389 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add unit tests for Signin Header Helpers. BUG=649389 ========== to ========== Add unit tests for Signin Header Helpers. BUG=649389 Committed: https://crrev.com/1c2ec6ccadd007b2066c8ec575ed346e659cd471 Cr-Commit-Position: refs/heads/master@{#420634} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/1c2ec6ccadd007b2066c8ec575ed346e659cd471 Cr-Commit-Position: refs/heads/master@{#420634} |