tree: 0a5bd813298d13eaf96a2bf95241591e4d3deaa0 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  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. resources/
  14. telemetry/
  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.