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

Unified Diff: chrome/browser/media/router/media_route_unittest.cc

Issue 1132903002: [MediaRouter] Add implementation of PresentationServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_route_unittest.cc
diff --git a/chrome/browser/media/router/media_route_unittest.cc b/chrome/browser/media/router/media_route_unittest.cc
index 7c42b6df917327d7a44f1ec7d1684ef7a248bd43..e52b075ed897f04edf864fefb6fea7a5d7bd3f5c 100644
--- a/chrome/browser/media/router/media_route_unittest.cc
+++ b/chrome/browser/media/router/media_route_unittest.cc
@@ -11,32 +11,29 @@ namespace media_router {
// Tests the == operator to ensure that only route ID equality is being checked.
TEST(MediaRouteTest, Equals) {
- MediaRoute route1("routeId1", ForCastAppMediaSource("DialApp"),
- MediaSink("sinkId", "sinkName"),
- "Description", false);
+ MediaRoute route1("routeId1", MediaSourceForCastApp("DialApp"),
+ MediaSink("sinkId", "sinkName"), "Description", false);
// Same as route1 with different sink ID.
- MediaRoute route2("routeId1", ForCastAppMediaSource("DialApp"),
+ MediaRoute route2("routeId1", MediaSourceForCastApp("DialApp"),
MediaSink("differentSinkId", "different sink"),
"Description", false);
EXPECT_TRUE(route1.Equals(route2));
// Same as route1 with different description.
- MediaRoute route3("routeId1", ForCastAppMediaSource("DialApp"),
- MediaSink("sinkId", "sinkName"),
- "differentDescription", false);
+ MediaRoute route3("routeId1", MediaSourceForCastApp("DialApp"),
+ MediaSink("sinkId", "sinkName"), "differentDescription",
+ false);
EXPECT_TRUE(route1.Equals(route3));
// Same as route1 with different is_local.
- MediaRoute route4("routeId1", ForCastAppMediaSource("DialApp"),
- MediaSink("sinkId", "sinkName"),
- "Description", true);
+ MediaRoute route4("routeId1", MediaSourceForCastApp("DialApp"),
+ MediaSink("sinkId", "sinkName"), "Description", true);
EXPECT_TRUE(route1.Equals(route4));
// The ID is different from route1's.
- MediaRoute route5("routeId2", ForCastAppMediaSource("DialApp"),
- MediaSink("sinkId", "sinkName"),
- "Description", false);
+ MediaRoute route5("routeId2", MediaSourceForCastApp("DialApp"),
+ MediaSink("sinkId", "sinkName"), "Description", false);
EXPECT_FALSE(route1.Equals(route5));
}
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698