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

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

Issue 2386633003: [Media Router] Convert MediaRouter to use GURL for presentation URLs. (Closed)
Patch Set: Respond to dcheng@ comment Created 4 years, 2 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/presentation_media_sinks_observer_unittest.cc
diff --git a/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc b/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc
index 926a617b0c84dab31a56496b2126490b2786c89b..e2cad012b0ada5a0f7ee48f737458810a974b6ff 100644
--- a/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc
+++ b/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc
@@ -24,14 +24,14 @@ namespace media_router {
class PresentationMediaSinksObserverTest : public ::testing::Test {
public:
PresentationMediaSinksObserverTest()
- : listener_("http://example.com/presentation.html") {}
+ : listener_(GURL("http://example.com/presentation.html")) {}
~PresentationMediaSinksObserverTest() override {}
void SetUp() override {
EXPECT_CALL(router_, RegisterMediaSinksObserver(_)).WillOnce(Return(true));
observer_.reset(new PresentationMediaSinksObserver(
- &router_, &listener_,
- MediaSourceForPresentationUrl("http://example.com/presentation.html"),
+ &router_, &listener_, MediaSourceForPresentationUrl(
+ GURL("http://example.com/presentation.html")),
GURL("https://google.com")));
EXPECT_TRUE(observer_->Init());
}

Powered by Google App Engine
This is Rietveld 408576698