Remove INJECT_EVENTS permissions from test APKs.
[chromium-blink-merge.git] / chrome / test / media_router / media_router_integration_browsertest.h
blob23c2a5fdff883f78f7d9d35f09500cc99c937c63
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_
8 #include <string>
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 {
16 class MediaRouter;
18 class MediaRouterIntegrationBrowserTest : public MediaRouterBaseBrowserTest {
19 public:
20 MediaRouterIntegrationBrowserTest();
21 ~MediaRouterIntegrationBrowserTest() override;
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);
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_