Index: chrome/browser/media/router/offscreen_presentation_manager.h |
diff --git a/chrome/browser/media/router/offscreen_presentation_manager.h b/chrome/browser/media/router/offscreen_presentation_manager.h |
index 6bef7f743c37f5180c7f1d8fbba347688ef9d09b..e79b86bf060582159a8bb9ed9c25705be1bf0a16 100644 |
--- a/chrome/browser/media/router/offscreen_presentation_manager.h |
+++ b/chrome/browser/media/router/offscreen_presentation_manager.h |
@@ -100,7 +100,7 @@ class OffscreenPresentationManager : public KeyedService { |
// exists. |
// |controller|: Not owned by this class. Ownership is transferred to the |
// presentation receiver via |receiver_callback| passed below. |
- void RegisterOffscreenPresentationController( |
+ virtual void RegisterOffscreenPresentationController( |
const std::string& presentation_id, |
const GURL& presentation_url, |
const RenderFrameHostId& render_frame_id, |
@@ -111,20 +111,20 @@ class OffscreenPresentationManager : public KeyedService { |
// controller that matches the provided arguments. It removes presentation |
// that matches the arguments if the presentation has no receiver_callback and |
// any other pending controller. |
- void UnregisterOffscreenPresentationController( |
+ virtual void UnregisterOffscreenPresentationController( |
const std::string& presentation_id, |
const RenderFrameHostId& render_frame_id); |
// Registers ReceiverConnectionAvailableCallback to presentation |
// with |presentation_id|. |
- void OnOffscreenPresentationReceiverCreated( |
+ virtual void OnOffscreenPresentationReceiverCreated( |
const std::string& presentation_id, |
const GURL& presentation_url, |
const content::ReceiverConnectionAvailableCallback& receiver_callback); |
// Unregisters the ReceiverConnectionAvailableCallback associated with |
// |presentation_id|. |
- void OnOffscreenPresentationReceiverTerminated( |
+ virtual void OnOffscreenPresentationReceiverTerminated( |
const std::string& presentation_id); |
private: |
@@ -184,6 +184,7 @@ class OffscreenPresentationManager : public KeyedService { |
private: |
friend class OffscreenPresentationManagerFactory; |
friend class OffscreenPresentationManagerTest; |
+ friend class MockOffscreenPresentationManager; |
FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
ConnectToOffscreenPresentation); |