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

Side by Side Diff: chrome/browser/interstitials/security_interstitial_page_test_utils.h

Issue 1000333003: Properly decode IDN in interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward-declare GURL Created 5 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_TEST_UTILS_H_
6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_TEST_UTILS_H_
7
8 #include <string>
9
10 #include "chrome/test/base/in_process_browser_test.h"
11
12 namespace content {
13 class InterstitialPage;
14 class WebContents;
15 }
16
17 class GURL;
18 class SecurityInterstitialPage;
19
20 namespace chrome_browser_interstitials {
21
22 bool IsInterstitialDisplayingText(content::InterstitialPage* interstitial,
23 const std::string& text);
24
25 // This class is used for testing the display of IDN names in security
26 // interstitials.
27 class SecurityInterstitialIDNTest : public InProcessBrowserTest {
28 public:
29 // InProcessBrowserTest implementation
30 void SetUpOnMainThread() override;
31
32 // Run a test that creates an interstitial with an IDN request URL
33 // and checks that it is properly decoded.
34 void TestIDN();
meacer 2015/03/24 23:16:59 const method?
meacer 2015/03/24 23:16:59 You can also return an AssertionResult here. E.g.
estark 2015/03/25 00:45:25 Done.
estark 2015/03/25 00:45:25 Done. (Question: is the purpose of returning an A
meacer 2015/03/25 01:08:39 In this case, yes I think it's slight more readabl
estark 2015/03/25 04:23:49 Makes sense, thanks!
35
36 protected:
37 virtual SecurityInterstitialPage* CreateInterstitial(
38 content::WebContents* contents,
39 const GURL& request_url) = 0;
meacer 2015/03/24 23:16:59 const method?
estark 2015/03/25 00:45:25 Done.
40 };
41
42 } // namespace chrome_browser_interstitials
43
44 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698