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

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

Issue 2547703002: [Media Router] Handle multiple Presentation URLs when creating routes (Closed)
Patch Set: rebase Created 4 years 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
Index: chrome/browser/media/router/presentation_request_unittest.cc
diff --git a/chrome/browser/media/router/presentation_request_unittest.cc b/chrome/browser/media/router/presentation_request_unittest.cc
index 9fe5a10afb4dbfb122f9347d70fa487c2482d93a..165b5d078795cfe0747ec25df504d71ebb3bd440 100644
--- a/chrome/browser/media/router/presentation_request_unittest.cc
+++ b/chrome/browser/media/router/presentation_request_unittest.cc
@@ -9,8 +9,9 @@ namespace media_router {
TEST(PresentationRequestTest, Equals) {
GURL frame_url("http://www.site.com/");
- std::vector<GURL> presentation_urls =
- {GURL("http://www.example.com/presentation.html")};
+ std::vector<GURL> presentation_urls = {
+ GURL("http://www.example.com/presentation.html"),
+ GURL("http://www.example.net/alternate.html")};
PresentationRequest request1(RenderFrameHostId(1, 2), presentation_urls,
frame_url);
@@ -23,7 +24,9 @@ TEST(PresentationRequestTest, Equals) {
// Presentation URLs are different.
PresentationRequest request3(
RenderFrameHostId(1, 2),
- {GURL("http://www.example.net/presentation.html")}, frame_url);
+ {GURL("http://www.example.net/presentation.html"),
+ GURL("http://www.example.com/presentation.html")},
+ frame_url);
EXPECT_FALSE(request1.Equals(request3));
// Frame URLs are different.
@@ -33,7 +36,8 @@ TEST(PresentationRequestTest, Equals) {
PresentationRequest request5(
RenderFrameHostId(1, 2),
- {GURL("http://www.example.com/presentation.html")},
+ {GURL("http://www.example.com/presentation.html"),
+ GURL("http://www.example.net/alternate.html")},
GURL("http://www.site.com/"));
EXPECT_TRUE(request1.Equals(request5));
}
« no previous file with comments | « chrome/browser/media/router/presentation_request.h ('k') | chrome/browser/media/router/presentation_service_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698