OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/media/router/media_source.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 |
| 8 namespace media_router { |
| 9 |
| 10 class MediaSourceTest : public ::testing::Test { |
| 11 public: |
| 12 MediaSourceTest() {} |
| 13 ~MediaSourceTest() override {} |
| 14 }; |
| 15 |
| 16 TEST_F(MediaSourceTest, IsMirroringMediaSource) { |
| 17 EXPECT_TRUE(IsMirroringMediaSource(ForTabMediaSource(123))); |
| 18 EXPECT_TRUE(IsMirroringMediaSource(ForDesktopMediaSource())); |
| 19 EXPECT_FALSE(IsMirroringMediaSource(ForDialAppMediaSource("DialApp"))); |
| 20 EXPECT_FALSE(IsMirroringMediaSource(ForCastAppMediaSource("CastApp"))); |
| 21 EXPECT_FALSE(IsMirroringMediaSource(ForPresentationUrl("http://url"))); |
| 22 } |
| 23 |
| 24 } // namespace media_router |
| 25 |
OLD | NEW |