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

Unified Diff: chrome/browser/media/router/presentation_media_sinks_observer_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/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 96166a8b2b1eccc5ac18fc138fbc44b170321803..7e9cc6b4571638a6694d7394c672c6250fbc4aba 100644
--- a/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc
+++ b/chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc
@@ -20,6 +20,10 @@ using testing::Return;
namespace media_router {
+namespace {
+constexpr char kOrigin[] = "https://google.com";
+} // namespace
+
class PresentationMediaSinksObserverTest : public ::testing::Test {
public:
PresentationMediaSinksObserverTest()
@@ -31,7 +35,7 @@ class PresentationMediaSinksObserverTest : public ::testing::Test {
observer_.reset(new PresentationMediaSinksObserver(
&router_, &listener_, MediaSourceForPresentationUrl(
GURL("http://example.com/presentation.html")),
- GURL("https://google.com")));
+ url::Origin(GURL(kOrigin))));
EXPECT_TRUE(observer_->Init());
}
« no previous file with comments | « chrome/browser/media/router/presentation_media_sinks_observer.cc ('k') | chrome/browser/media/router/presentation_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698