Version: 53.0.2745.0
OS: Mac OSX
The SSLCertificateViewerCocoaTest.* tests in the browser_tests target (see chrome/browser/ui/cocoa/certificate_viewer_mac_browsertest.mm) should be refactored so they can be reused to test the certificate viewer for MacViews as seen in https://crbug.com/587239 / and https://crrev.com/1779383002/.
See comment from tapted@ in the CL linked above:
I think all these other headers are in both builds, so the only thing preventing us running this test in both cocoa and views builds is the stuff that manipulates
SSLCertificateViewerCocoa directly.
to run the same tests, you might need to go through WebContentsModalDialogManager::TestApi by reaching into WebContentsModalDialogManager::child_dialogs_ via the test API and grab the gfx::NativeWindow.
Comment 1 by bugdroid1@chromium.org
, Jun 20 2016