#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "chrome/browser/certificate_viewer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/webui/certificate_viewer_webui.h"
#include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/base/web_ui_mocha_browser_test.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/cert/x509_util.h"
#include "net/test/test_certificate_data.h"
class CertificateViewerUITest : public WebUIMochaBrowserTest { … };
IN_PROC_BROWSER_TEST_F(CertificateViewerUITest, DialogURL) { … }
IN_PROC_BROWSER_TEST_F(CertificateViewerUITest, CommonName) { … }
IN_PROC_BROWSER_TEST_F(CertificateViewerUITest, Details) { … }
class CertificateViewerUIInvalidCertTest : public CertificateViewerUITest { … };
IN_PROC_BROWSER_TEST_F(CertificateViewerUIInvalidCertTest, InvalidCert) { … }