tree: 1654062b2e1bd52f1a757accf48813ef5673e50d [path history] [tgz]
  1. resources/
  2. telemetry/
  3. BUILD.gn
  4. media_router_base_browsertest.cc
  5. media_router_base_browsertest.h
  6. media_router_e2e_browsertest.cc
  7. media_router_e2e_browsertest.h
  8. media_router_e2e_ui_browsertest.cc
  9. media_router_integration_browsertest.cc
  10. media_router_integration_browsertest.h
  11. media_router_integration_ui_browsertest.cc
  12. media_router_one_ua_integration_browsertest.cc
  13. media_router_ui_for_test.cc
  14. media_router_ui_for_test.h
  15. OWNERS
  16. README.md
  17. test_media_sinks_observer.cc
  18. test_media_sinks_observer.h
chrome/test/media_router/README.md

Media Router Integration and E2E Browser Tests

This directory contains the integration and end-to-end browser tests for Media Router. The Media Router uses various Media Route Providers to connect to different types of displays.

Media Route Providers

The tests are run with one of two component extensions:

  • The open source Media Router component extension in chrome/browser/resources/media_router/extension includes a mock Media Route Provider, mr.TestProvider.
  • The closed source Media Router external component extension includes the Cast Media Route Provider.

Tests

  • MediaRouterIntegrationBrowserTest: Tests that Media Router behaves as specified by the Presentation API, and that its dialog is shown as expected using the test provider mr.TestProvider. Test cases that specifically test the functionalities of the Media Router dialog are in media_router_integration_ui_browsertest.cc.

  • MediaRouterIntegrationIncognitoBrowserTest: Same as MediaRouterIntegrationBrowserTest, except for that the tests are run using an incognito profile.

  • MediaRouterE2EBrowserTest: Tests Chromecast-specific functionality of Media Router using the Cast Media Route Provider. Requires installing the Media Router external component extension and an actual Chromecast device.

  • MediaRouterIntegrationOneUABrowserTest: Tests that the Presentation API can be used to start presentations using offscreen tabs, and that basic Presentation API usage with offscreen tabs is working.

  • MediaRouterIntegrationOneUANoReceiverBrowserTest: Tests Presentation API behavior when there is no compatible presentation receiver for the requested URL.