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

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

Issue 2627463003: Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Add missing dependency for extensions_renderer_resources target Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/create_presentation_connection_request_unittest.cc
diff --git a/chrome/browser/media/router/create_presentation_connection_request_unittest.cc b/chrome/browser/media/router/create_presentation_connection_request_unittest.cc
index 8e71ecb44e563d18f3fe85abf74ed53c6091efe3..6c373b9fb3b43c96dfee422472297bccaf2676fa 100644
--- a/chrome/browser/media/router/create_presentation_connection_request_unittest.cc
+++ b/chrome/browser/media/router/create_presentation_connection_request_unittest.cc
@@ -68,14 +68,14 @@ TEST_F(CreatePresentationConnectionRequestTest, Getters) {
content::PresentationError error(content::PRESENTATION_ERROR_UNKNOWN,
"Unknown error.");
CreatePresentationConnectionRequest request(
- render_frame_host_id_, presentation_urls_, GURL(kFrameUrl),
+ render_frame_host_id_, presentation_urls_, url::Origin(GURL(kFrameUrl)),
base::Bind(&CreatePresentationConnectionRequestTest::FailOnSuccess,
base::Unretained(this)),
base::Bind(&CreatePresentationConnectionRequestTest::OnError,
base::Unretained(this), error));
- PresentationRequest presentation_request(render_frame_host_id_,
- presentation_urls_, GURL(kFrameUrl));
+ PresentationRequest presentation_request(
+ render_frame_host_id_, presentation_urls_, url::Origin(GURL(kFrameUrl)));
EXPECT_TRUE(request.presentation_request().Equals(presentation_request));
// Since we didn't explicitly call Invoke*, the error callback will be
// invoked when |request| is destroyed.
@@ -85,7 +85,7 @@ TEST_F(CreatePresentationConnectionRequestTest, SuccessCallback) {
content::PresentationSessionInfo session_info(presentation_url_,
kPresentationId);
CreatePresentationConnectionRequest request(
- render_frame_host_id_, {presentation_url_}, GURL(kFrameUrl),
+ render_frame_host_id_, {presentation_url_}, url::Origin(GURL(kFrameUrl)),
base::Bind(&CreatePresentationConnectionRequestTest::OnSuccess,
base::Unretained(this), session_info),
base::Bind(&CreatePresentationConnectionRequestTest::FailOnError,
@@ -101,7 +101,7 @@ TEST_F(CreatePresentationConnectionRequestTest, ErrorCallback) {
content::PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED,
"This is an error message");
CreatePresentationConnectionRequest request(
- render_frame_host_id_, presentation_urls_, GURL(kFrameUrl),
+ render_frame_host_id_, presentation_urls_, url::Origin(GURL(kFrameUrl)),
base::Bind(&CreatePresentationConnectionRequestTest::FailOnSuccess,
base::Unretained(this)),
base::Bind(&CreatePresentationConnectionRequestTest::OnError,
« no previous file with comments | « chrome/browser/media/router/create_presentation_connection_request.cc ('k') | chrome/browser/media/router/media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698