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

Side by Side Diff: chromecast/browser/test/chromecast_browser_test_helper.h

Issue 2330243002: Add CastMediaBlocker and BrowserTest (Closed)
Patch Set: Use if-else Created 4 years, 3 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
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_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_media_blocker.cc ('k') | chromecast/browser/test/chromecast_browser_test_helper_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698