| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ | 5 #ifndef CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| 6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ | 6 #define CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // |web_contents|: The web contents of the test page which invokes the popup | 66 // |web_contents|: The web contents of the test page which invokes the popup |
| 67 // dialog. | 67 // dialog. |
| 68 content::WebContents* OpenMRDialog(content::WebContents* web_contents); | 68 content::WebContents* OpenMRDialog(content::WebContents* web_contents); |
| 69 | 69 |
| 70 bool IsRouteCreatedOnUI(); | 70 bool IsRouteCreatedOnUI(); |
| 71 | 71 |
| 72 // Wait for the route to show up in the UI with a timeout. Fails if the | 72 // Wait for the route to show up in the UI with a timeout. Fails if the |
| 73 // route did not show up before the timeout. | 73 // route did not show up before the timeout. |
| 74 void WaitUntilRouteCreated(); | 74 void WaitUntilRouteCreated(); |
| 75 | 75 |
| 76 // Wait for route creation to timeout. Fails if a route shows up before the |
| 77 // timeout. |
| 78 void WaitUntilRouteCreationTimeout(); |
| 79 |
| 76 private: | 80 private: |
| 77 // Get the full path of the resource file. | 81 // Get the full path of the resource file. |
| 78 // |relative_path|: The relative path to | 82 // |relative_path|: The relative path to |
| 79 // <chromium src>/out/<build config>/media_router/ | 83 // <chromium src>/out/<build config>/media_router/ |
| 80 // browser_test_resources/ | 84 // browser_test_resources/ |
| 81 base::FilePath GetResourceFile( | 85 base::FilePath GetResourceFile( |
| 82 base::FilePath::StringPieceType relative_path) const; | 86 base::FilePath::StringPieceType relative_path) const; |
| 83 | 87 |
| 84 scoped_ptr<content::TestNavigationObserver> test_navigation_observer_; | 88 scoped_ptr<content::TestNavigationObserver> test_navigation_observer_; |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace media_router | 91 } // namespace media_router |
| 88 | 92 |
| 89 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ | 93 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| OLD | NEW |