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

Side by Side Diff: chrome/test/data/webui/certificate_viewer_ui_test-inl.h

Issue 9150021: Rename WebUI to WebUIImpl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/webui/async_gen.cc ('k') | chrome/test/data/webui/chrome_send_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 #include "chrome/browser/ui/browser_window.h" 6 #include "chrome/browser/ui/browser_window.h"
7 #include "chrome/browser/ui/webui/chrome_web_ui.h" 7 #include "chrome/browser/ui/webui/chrome_web_ui.h"
8 #include "chrome/browser/ui/webui/web_ui_browsertest.h" 8 #include "chrome/browser/ui/webui/web_ui_browsertest.h"
9 #include "chrome/browser/certificate_viewer.h" 9 #include "chrome/browser/certificate_viewer.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "chrome/test/base/test_html_dialog_observer.h" 12 #include "chrome/test/base/test_html_dialog_observer.h"
13 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
14 #include "content/browser/webui/web_ui.h"
15 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/browser/web_ui.h"
16 #include "net/base/test_certificate_data.h" 16 #include "net/base/test_certificate_data.h"
17 #include "net/base/x509_certificate.h" 17 #include "net/base/x509_certificate.h"
18 18
19 // Test framework for chrome/test/data/webui/certificate_viewer_dialog_test.js. 19 // Test framework for chrome/test/data/webui/certificate_viewer_dialog_test.js.
20 class CertificateViewerUITest : public WebUIBrowserTest { 20 class CertificateViewerUITest : public WebUIBrowserTest {
21 public: 21 public:
22 CertificateViewerUITest(); 22 CertificateViewerUITest();
23 virtual ~CertificateViewerUITest(); 23 virtual ~CertificateViewerUITest();
24 24
25 protected: 25 protected:
(...skipping 12 matching lines...) Expand all
38 ASSERT_TRUE(browser()->window()); 38 ASSERT_TRUE(browser()->window());
39 39
40 TestHtmlDialogObserver dialog_observer(this); 40 TestHtmlDialogObserver dialog_observer(this);
41 ::ShowCertificateViewer(browser()->window()->GetNativeHandle(), google_cert); 41 ::ShowCertificateViewer(browser()->window()->GetNativeHandle(), google_cert);
42 content::WebUI* webui = dialog_observer.GetWebUI(); 42 content::WebUI* webui = dialog_observer.GetWebUI();
43 webui->GetWebContents()->GetRenderViewHost()->SetWebUIProperty( 43 webui->GetWebContents()->GetRenderViewHost()->SetWebUIProperty(
44 "expectedUrl", chrome::kChromeUICertificateViewerURL); 44 "expectedUrl", chrome::kChromeUICertificateViewerURL);
45 SetWebUIInstance(webui); 45 SetWebUIInstance(webui);
46 WebUIBrowserTest::SetUpOnMainThread(); 46 WebUIBrowserTest::SetUpOnMainThread();
47 } 47 }
OLDNEW
« no previous file with comments | « chrome/test/data/webui/async_gen.cc ('k') | chrome/test/data/webui/chrome_send_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698