tree: 6c7aaba4d18b46b66f0897820bdc2d4840f08689 [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. OWNERS
  14. README.md
  15. test_media_sinks_observer.cc
  16. 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. Note that running these tests requires a dev build of the Media Router component extension, which isn't open source. The project for upstreaming the component extension is tracked by this bug.

Test classes

  • MediaRouterIntegrationBrowserTest: Tests that Media Router behaves as specified by the Presentation API, and that its dialog is shown as expected. Uses mr.TestProvider (provided the component extension) as the Media Route Provider. 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 the casting functionality of Media Router using the Cast Media Route Provider (provided by the component extension) and an actual Chromecast device.