| Index: chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
|
| diff --git a/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc b/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
|
| index 4563517006cd4a9903ff0b360b0b288ba1f57b83..6a6c61d79417cfe76e7bfa60fbda065073bd6c0b 100644
|
| --- a/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
|
| +++ b/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
|
| @@ -298,4 +298,23 @@ TEST_F(OffscreenPresentationManagerTest, TwoPresentations) {
|
| VerifyPresentationsSize(1);
|
| }
|
|
|
| +TEST_F(OffscreenPresentationManagerTest, TestIsOffscreenPresentation) {
|
| + EXPECT_FALSE(manager()->IsOffscreenPresentation(kPresentationId));
|
| + content::PresentationConnectionPtr controller1;
|
| + RegisterController(kPresentationId, std::move(controller1));
|
| + EXPECT_TRUE(manager()->IsOffscreenPresentation(kPresentationId));
|
| +}
|
| +
|
| +TEST_F(OffscreenPresentationManagerTest, TestRegisterAndGetRoute) {
|
| + MediaSource source("source_1");
|
| + MediaRoute route("route_1", source, "sink_1", "", false, "", false);
|
| +
|
| + EXPECT_FALSE(manager()->GetRoute(kPresentationId));
|
| + manager()->RegisterOffscreenPresentationRoute(kPresentationId,
|
| + GURL(kPresentationUrl), route);
|
| + auto* actual_route = manager()->GetRoute(kPresentationId);
|
| + EXPECT_TRUE(actual_route);
|
| + EXPECT_TRUE(route.Equals(*actual_route));
|
| +}
|
| +
|
| } // namespace media_router
|
|
|