Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Side by Side Diff: chrome/browser/media/router/media_source_unittest.cc

Issue 949293004: Add media router common classes and unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chunkier CL Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698