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.
5 #ifndef CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_
6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_
10 #include "base/debug/stack_trace.h"
11 #include "base/files/file_path.h"
12 #include "chrome/test/media_router/media_router_base_browsertest.h"
14 namespace media_router
{
18 class MediaRouterIntegrationBrowserTest
: public MediaRouterBaseBrowserTest
{
20 MediaRouterIntegrationBrowserTest();
21 ~MediaRouterIntegrationBrowserTest() override
;
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
27 // |sink_id|: The sink id.
28 void ChooseSink(content::WebContents
* web_contents
,
29 const std::string
& sink_id
);
31 // Execute javascript and check the return value.
32 void ExecuteJavaScriptAPI(content::WebContents
* web_contents
,
33 const std::string
& script
);
35 void OpenTestPage(base::FilePath::StringPieceType file
);
38 } // namespace media_router
40 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_