tree: 9e26648eb8d9be28cf7d1c750c0f47d85e345c53 [path history] [tgz]
  1. resources/
  2. telemetry/
  3. BUILD.gn
  4. DIR_METADATA
  5. media_router_base_browsertest.cc
  6. media_router_base_browsertest.h
  7. media_router_e2e_browsertest.cc
  8. media_router_e2e_browsertest.h
  9. media_router_e2e_ui_browsertest.cc
  10. media_router_integration_browsertest.cc
  11. media_router_integration_browsertest.h
  12. media_router_integration_ui_browsertest.cc
  13. media_router_one_ua_integration_browsertest.cc
  14. media_router_ui_for_test.cc
  15. media_router_ui_for_test.h
  16. OWNERS
  17. README.md
  18. test_media_sinks_observer.cc
  19. 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.