OLD | NEW |
(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_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| 6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/debug/stack_trace.h" |
| 11 #include "chrome/test/media_router/media_router_base_browsertest.h" |
| 12 |
| 13 |
| 14 namespace media_router { |
| 15 |
| 16 class MediaRouter; |
| 17 |
| 18 class MediaRouterIntegrationBrowserTest : public MediaRouterBaseBrowserTest { |
| 19 public: |
| 20 MediaRouterIntegrationBrowserTest(); |
| 21 ~MediaRouterIntegrationBrowserTest() override; |
| 22 |
| 23 protected: |
| 24 // Simulate user action to choose one sink in the popup dialog. |
| 25 // |web_contents|: The web contents of the test page which invokes the popup |
| 26 // dialog. |
| 27 // |sink_id|: The sink id. |
| 28 void ChooseSink(content::WebContents* web_contents, |
| 29 const std::string& sink_id); |
| 30 |
| 31 // Execute javascript and check the return value. |
| 32 void ExecuteJavaScriptAPI(content::WebContents* web_contents, |
| 33 const std::string& script); |
| 34 |
| 35 void OpenTestPage(const std::string& file); |
| 36 }; |
| 37 |
| 38 } // namespace media_router |
| 39 |
| 40 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
OLD | NEW |