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

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

Issue 2477573002: [Presentation API] (3rd) (1-UA) Split PresentationServiceDelegateImpl(PSDImpl) (Closed)
Patch Set: fix windows compile error Created 3 years, 11 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/offscreen_presentation_manager_unittest.cc
diff --git a/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc b/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
index 6af4ab643ba7141a52ae9bf043009ce3f63d1315..4563517006cd4a9903ff0b360b0b288ba1f57b83 100644
--- a/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
+++ b/chrome/browser/media/router/offscreen_presentation_manager_unittest.cc
@@ -26,13 +26,14 @@ class MockReceiverConnectionAvailableCallback {
public:
void OnReceiverConnectionAvailable(
const content::PresentationSessionInfo& session_info,
- content::PresentationConnectionPtr connection_ptr) {
- OnReceiverConnectionAvailableRaw(session_info, connection_ptr);
+ content::PresentationConnectionPtr controller_conn,
+ content::PresentationConnectionRequest receiver_conn_request) {
+ OnReceiverConnectionAvailableRaw(session_info, controller_conn.get());
}
MOCK_METHOD2(OnReceiverConnectionAvailableRaw,
void(const content::PresentationSessionInfo&,
- content::PresentationConnectionPtr));
+ blink::mojom::PresentationConnection*));
};
class OffscreenPresentationManagerTest : public ::testing::Test {
@@ -56,22 +57,25 @@ class OffscreenPresentationManagerTest : public ::testing::Test {
void RegisterController(const std::string& presentation_id,
content::PresentationConnectionPtr controller) {
+ content::PresentationConnectionRequest receiver_conn_request;
manager()->RegisterOffscreenPresentationController(
presentation_id, presentation_url_, render_frame_host_id_,
- std::move(controller));
+ std::move(controller), std::move(receiver_conn_request));
}
void RegisterController(const RenderFrameHostId& render_frame_id,
content::PresentationConnectionPtr controller) {
+ content::PresentationConnectionRequest receiver_conn_request;
manager()->RegisterOffscreenPresentationController(
kPresentationId, presentation_url_, render_frame_id,
- std::move(controller));
+ std::move(controller), std::move(receiver_conn_request));
}
void RegisterController(content::PresentationConnectionPtr controller) {
+ content::PresentationConnectionRequest receiver_conn_request;
manager()->RegisterOffscreenPresentationController(
kPresentationId, presentation_url_, render_frame_host_id_,
- std::move(controller));
+ std::move(controller), std::move(receiver_conn_request));
}
void RegisterReceiver(

Powered by Google App Engine
This is Rietveld 408576698