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

Unified Diff: chrome/test/media_router/media_router_integration_browsertest.cc

Issue 2108973002: [Media Router] Return NotFoundError on dialog exit if appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, add unit tests, add integration test Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/media_router/media_router_integration_browsertest.cc
diff --git a/chrome/test/media_router/media_router_integration_browsertest.cc b/chrome/test/media_router/media_router_integration_browsertest.cc
index 8e984d62f0c3a075ca5907f951cfdee70e764679..9d3fdfc7cd6bfd2d5c4e4e841c15bbbc4e6129cc 100644
--- a/chrome/test/media_router/media_router_integration_browsertest.cc
+++ b/chrome/test/media_router/media_router_integration_browsertest.cc
@@ -568,4 +568,22 @@ IN_PROC_BROWSER_TEST_F(MediaRouterIntegrationBrowserTest,
CheckStartFailed(web_contents, "AbortError", "Dialog closed.");
}
+IN_PROC_BROWSER_TEST_F(MediaRouterIntegrationBrowserTest,
+ MANUAL_Fail_StartCancelledNoSupportedSinks) {
+ SetTestData(FILE_PATH_LITERAL("no_supported_sinks.json"));
+ OpenTestPage(FILE_PATH_LITERAL("basic_test.html"));
+ content::WebContents* web_contents =
+ browser()->tab_strip_model()->GetActiveWebContents();
+ ASSERT_TRUE(web_contents);
+ content::TestNavigationObserver test_navigation_observer(web_contents, 1);
+ StartSession(web_contents);
+
+ MediaRouterDialogControllerImpl* controller =
+ MediaRouterDialogControllerImpl::GetOrCreateForWebContents(web_contents);
+ EXPECT_TRUE(controller->IsShowingMediaRouterDialog());
+ WaitUntilSinkDiscoveredOnUI();
+ controller->HideMediaRouterDialog();
+ CheckStartFailed(web_contents, "NotFoundError", "No screens found.");
+}
+
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698