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

Issue 2039823002: MacViews: Refactor certificate viewer tests to work for MacViews browser. (Closed)

Created:
4 years, 6 months ago by Patti Lor
Modified:
4 years, 6 months ago
Reviewers:
tapted
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@certview
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Use a generic interface for testing the certificate viewer. Refactor the Mac certificate viewer browser tests to work on a generic interface in preparation for http://crrev.com/1779383002, which refactors the certificate viewer to remove some Cocoa dependencies for the MacViews browser. Additionally, remove unneeded code used to resize/reposition the certificate viewer after switching tabs by ignoring mouse events while the certificate viewer is hidden instead. BUG=613880 Committed: https://crrev.com/63b0c3d1ec281400262336497fa9803841b8469c Cr-Commit-Position: refs/heads/master@{#400627}

Patch Set 1 #

Patch Set 2 : Take into account the number of child windows. #

Total comments: 18

Patch Set 3 : Address review comments. #

Patch Set 4 : Rebase onto master & add ignoreMouseEvents fix for hiding/reshowing the certificate viewer. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -46 lines) Patch
M chrome/browser/ui/cocoa/certificate_viewer_mac.h View 1 2 3 1 chunk +0 lines, -2 lines 2 comments Download
M chrome/browser/ui/cocoa/certificate_viewer_mac.mm View 1 2 3 1 chunk +2 lines, -20 lines 2 comments Download
M chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm View 1 2 3 2 chunks +44 lines, -15 lines 2 comments Download
M chrome/chrome_tests.gypi View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Patti Lor
Hi Trent, PTAL. I wasn't able to use WebContentsModalDialogManager::TestApi to get the child_dialogs_ like you ...
4 years, 6 months ago (2016-06-07 01:52:29 UTC) #2
tapted
https://codereview.chromium.org/2039823002/diff/20001/chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm File chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm (right): https://codereview.chromium.org/2039823002/diff/20001/chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm#newcode31 chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm:31: void CheckCertificateViewerVisibility(gfx::NativeWindow overlay_window, nit: these can just use NSWindow ...
4 years, 6 months ago (2016-06-07 05:33:43 UTC) #3
Patti Lor
Thanks, PTAL! https://codereview.chromium.org/2039823002/diff/20001/chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm File chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm (right): https://codereview.chromium.org/2039823002/diff/20001/chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm#newcode31 chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm:31: void CheckCertificateViewerVisibility(gfx::NativeWindow overlay_window, On 2016/06/07 05:33:43, tapted ...
4 years, 6 months ago (2016-06-08 00:14:38 UTC) #4
tapted
given there's some hold ups on the other CL, we might want to get this ...
4 years, 6 months ago (2016-06-10 03:25:48 UTC) #5
Patti Lor
Rebased back onto master :) I had to add a fix back in for the ...
4 years, 6 months ago (2016-06-17 05:52:34 UTC) #7
tapted
lgtm with some minor tweaks and a Q the fix in https://codereview.chromium.org/2034993002 isn't as nice ...
4 years, 6 months ago (2016-06-17 06:11:34 UTC) #8
Patti Lor
Thanks Trent! Will land now. https://codereview.chromium.org/2039823002/diff/60001/chrome/browser/ui/cocoa/certificate_viewer_mac.h File chrome/browser/ui/cocoa/certificate_viewer_mac.h (right): https://codereview.chromium.org/2039823002/diff/60001/chrome/browser/ui/cocoa/certificate_viewer_mac.h#newcode41 chrome/browser/ui/cocoa/certificate_viewer_mac.h:41: - (NSWindow*)overlayWindow; On 2016/06/17 ...
4 years, 6 months ago (2016-06-20 03:42:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039823002/60001
4 years, 6 months ago (2016-06-20 04:30:40 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-20 05:22:16 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 05:23:35 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/63b0c3d1ec281400262336497fa9803841b8469c
Cr-Commit-Position: refs/heads/master@{#400627}

Powered by Google App Engine
This is Rietveld 408576698