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

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

Issue 2962623002: [Media Router] Clean up OffscreenPresentationManager params. (Closed)
Patch Set: . Created 3 years, 6 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_service_delegate_impl_unittest.cc
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc b/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc
index 87307234eff9797c65f93598caa414b4f21ea27d..61e296e7f42a1d83e44e3760398b102b918742dc 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc
+++ b/chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc
@@ -74,13 +74,13 @@ class MockCreatePresentationConnnectionCallbacks {
class MockOffscreenPresentationManager : public OffscreenPresentationManager {
public:
void RegisterOffscreenPresentationController(
- const std::string& presentation_id,
- const GURL& presentation_url,
+ const content::PresentationInfo& presentation_info,
const RenderFrameHostId& render_frame_id,
content::PresentationConnectionPtr controller,
content::PresentationConnectionRequest,
const MediaRoute& route) override {
- RegisterOffscreenPresentationController(presentation_id, presentation_url,
+ RegisterOffscreenPresentationController(presentation_info.presentation_id,
+ presentation_info.presentation_url,
render_frame_id, route);
}
@@ -92,9 +92,8 @@ class MockOffscreenPresentationManager : public OffscreenPresentationManager {
MOCK_METHOD2(UnregisterOffscreenPresentationController,
void(const std::string& presentation_id,
const RenderFrameHostId& render_frame_id));
- MOCK_METHOD3(OnOffscreenPresentationReceiverCreated,
- void(const std::string& presentation_id,
- const GURL& presentation_url,
+ MOCK_METHOD2(OnOffscreenPresentationReceiverCreated,
+ void(const content::PresentationInfo& presentation_info,
const content::ReceiverConnectionAvailableCallback&
receiver_callback));
MOCK_METHOD1(OnOffscreenPresentationReceiverTerminated,

Powered by Google App Engine
This is Rietveld 408576698