| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // |web_contents|: The web contents of the test page which invokes the popup | 67 // |web_contents|: The web contents of the test page which invokes the popup |
| 68 // dialog. | 68 // dialog. |
| 69 content::WebContents* GetMRDialog(content::WebContents* web_contents); | 69 content::WebContents* GetMRDialog(content::WebContents* web_contents); |
| 70 | 70 |
| 71 // Checks that the chrome modal dialog does not exist. | 71 // Checks that the chrome modal dialog does not exist. |
| 72 bool IsDialogClosed(content::WebContents* web_contents); | 72 bool IsDialogClosed(content::WebContents* web_contents); |
| 73 void WaitUntilDialogClosed(content::WebContents* web_contents); | 73 void WaitUntilDialogClosed(content::WebContents* web_contents); |
| 74 | 74 |
| 75 void CheckDialogRemainsOpen(content::WebContents* web_contents); | 75 void CheckDialogRemainsOpen(content::WebContents* web_contents); |
| 76 | 76 |
| 77 // Opens "basic_test.html," and starts a presentation. | 77 // Opens "basic_test.html" and asserts that attempting to start a presentation |
| 78 content::WebContents* StartSessionWithTestPageNow(); | 78 // fails with NotFoundError due to no sinks available. |
| 79 void StartSessionAndAssertNotFoundError(); |
| 80 |
| 79 // Opens "basic_test.html," waits for sinks to be available, and starts a | 81 // Opens "basic_test.html," waits for sinks to be available, and starts a |
| 80 // presentation. | 82 // presentation. |
| 81 content::WebContents* StartSessionWithTestPageAndSink(); | 83 content::WebContents* StartSessionWithTestPageAndSink(); |
| 82 | 84 |
| 83 // Opens "basic_test.html," waits for sinks to be available, starts a | 85 // Opens "basic_test.html," waits for sinks to be available, starts a |
| 84 // presentation, and chooses a sink with the name |kTestSinkName|. Also checks | 86 // presentation, and chooses a sink with the name |kTestSinkName|. Also checks |
| 85 // that the presentation has successfully started if |should_succeed| is true. | 87 // that the presentation has successfully started if |should_succeed| is true. |
| 86 content::WebContents* StartSessionWithTestPageAndChooseSink(); | 88 content::WebContents* StartSessionWithTestPageAndChooseSink(); |
| 87 | 89 |
| 88 void OpenTestPage(base::FilePath::StringPieceType file); | 90 void OpenTestPage(base::FilePath::StringPieceType file); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 Browser* browser() override; | 193 Browser* browser() override; |
| 192 | 194 |
| 193 private: | 195 private: |
| 194 Browser* incognito_browser_ = nullptr; | 196 Browser* incognito_browser_ = nullptr; |
| 195 std::string incognito_extension_id_; | 197 std::string incognito_extension_id_; |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace media_router | 200 } // namespace media_router |
| 199 | 201 |
| 200 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ | 202 #endif // CHROME_TEST_MEDIA_ROUTER_MEDIA_ROUTER_INTEGRATION_BROWSERTEST_H_ |
| OLD | NEW |