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 a9c160b2e3f8a692b517e1cb05bfc27b5482b57d..5ba8757e33f1aa9bec7320aa34e343549be67bb2 100644 |
--- a/chrome/browser/media/router/offscreen_presentation_manager.h |
+++ b/chrome/browser/media/router/offscreen_presentation_manager.h |
@@ -99,7 +99,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, |
@@ -110,20 +110,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: |
@@ -183,6 +183,7 @@ class OffscreenPresentationManager : public KeyedService { |
private: |
friend class OffscreenPresentationManagerFactory; |
friend class OffscreenPresentationManagerTest; |
+ friend class MockOffscreenPresentationManager; |
FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
ConnectToOffscreenPresentation); |