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

Unified Diff: chrome/browser/media/router/mock_media_router.h

Issue 1245213002: [MediaRouter] Implement send binary message from PSDImpl to MRPManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated UT to verify the |data| Created 5 years, 5 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/mock_media_router.h
diff --git a/chrome/browser/media/router/mock_media_router.h b/chrome/browser/media/router/mock_media_router.h
index 5bb5b8a9b09078ab7a23331e951eb09afe067e77..3ee7e6b72d5ecf18302f3fd08b68de010131cc56 100644
--- a/chrome/browser/media/router/mock_media_router.h
+++ b/chrome/browser/media/router/mock_media_router.h
@@ -40,6 +40,16 @@ class MockMediaRouter : public MediaRouter {
void(const MediaRoute::Id& route_id,
const std::string& message,
const SendRouteMessageCallback& callback));
+ void SendRouteBinaryMessage(
+ const MediaRoute::Id& route_id,
+ scoped_ptr<std::vector<uint8>> data,
+ const SendRouteMessageCallback& callback) override {
+ SendRouteBinaryMessageInternal(route_id, data.get(), callback);
+ }
+ MOCK_METHOD3(SendRouteBinaryMessageInternal,
+ void(const MediaRoute::Id& route_id,
+ std::vector<uint8>* data,
+ const SendRouteMessageCallback& callback));
MOCK_METHOD2(ListenForRouteMessages,
void(const std::vector<MediaRoute::Id>& route_ids,
const PresentationSessionMessageCallback& message_cb));

Powered by Google App Engine
This is Rietveld 408576698