OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ | 5 #ifndef CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ |
6 #define CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ | 6 #define CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 namespace chromecast { | 16 namespace chromecast { |
17 namespace shell { | 17 namespace shell { |
18 | 18 |
19 class ChromecastBrowserTestHelper { | 19 class ChromecastBrowserTestHelper { |
20 public: | 20 public: |
21 // Creates an implementation of ChromecastBrowserTestHelper. Allows public | 21 // Creates an implementation of ChromecastBrowserTestHelper. Allows public |
22 // and internal builds to instantiate different implementations. | 22 // and internal builds to instantiate different implementations. |
23 static std::unique_ptr<ChromecastBrowserTestHelper> Create(); | 23 static std::unique_ptr<ChromecastBrowserTestHelper> Create(); |
24 | 24 |
25 virtual ~ChromecastBrowserTestHelper() {} | 25 virtual ~ChromecastBrowserTestHelper() {} |
26 virtual content::WebContents* NavigateToURL(const GURL& url) = 0; | 26 virtual content::WebContents* NavigateToURL(const GURL& url) = 0; |
| 27 virtual void BlockMediaLoading(bool block) = 0; |
27 }; | 28 }; |
28 | 29 |
29 } // namespace shell | 30 } // namespace shell |
30 } // namespace chromecast | 31 } // namespace chromecast |
31 | 32 |
32 #endif // CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ | 33 #endif // CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_HELPER_H_ |
OLD | NEW |