Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: chrome/test/media_router/media_router_integration_browsertest.h

Issue 2918433002: [Media Router tests] Fix MANUAL_Fail_StartCancelledNoSupportedSinks. (Closed)
Patch Set: Update comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/media_router/media_router_integration_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/media_router/media_router_integration_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698