[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / test / media_router / media_router_integration_browsertest.h
blob30b426f391672342eb37ea65961231a8ff215fe2
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);
36 void OpenTestPageInNewTab(base::FilePath::StringPieceType file);
38 void SetTestData(base::FilePath::StringPieceType test_data_file);
40 private:
41 // Get the full path of the resource file.
42 // |relative_path|: The relative path to
43 // <chromium src>/out/<build config>/media_router/
44 // browser_test_resources/
45 base::FilePath GetResourceFile(
46 base::FilePath::StringPieceType relative_path) const;
49 } // namespace media_router
51 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_