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

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: move test commands to negative values, and control flow nit 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 #include "testing/gtest/include/gtest/gtest.h"
12
13 namespace content {
14 class InterstitialPage;
15 class WebContents;
16 }
17
18 class GURL;
19 class SecurityInterstitialPage;
20
21 namespace chrome_browser_interstitials {
22
23 bool IsInterstitialDisplayingText(content::InterstitialPage* interstitial,
24 const std::string& text);
25
26 // This class is used for testing the display of IDN names in security
27 // interstitials.
28 class SecurityInterstitialIDNTest : public InProcessBrowserTest {
29 public:
30 // InProcessBrowserTest implementation
31 void SetUpOnMainThread() override;
32
33 // Run a test that creates an interstitial with an IDN request URL
34 // and checks that it is properly decoded.
35 testing::AssertionResult VerifyIDNDecoded() const;
36
37 protected:
38 virtual SecurityInterstitialPage* CreateInterstitial(
39 content::WebContents* contents,
40 const GURL& request_url) const = 0;
41 };
42
43 } // namespace chrome_browser_interstitials
44
45 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698