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

Unified Diff: chrome/browser/media/router/test_helper.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/test_helper.h
diff --git a/chrome/browser/media/router/test_helper.h b/chrome/browser/media/router/test_helper.h
index ba5a47787e8b624aedce8884dd3ec92ac5c56e6a..edabcfca3192c0a53be5a86f73d7641d874aace8 100644
--- a/chrome/browser/media/router/test_helper.h
+++ b/chrome/browser/media/router/test_helper.h
@@ -61,6 +61,16 @@ class MockMediaRouteProvider : public interfaces::MediaRouteProvider {
void(const mojo::String& media_route_id,
const mojo::String& message,
const SendRouteMessageCallback& callback));
+ void SendRouteBinaryMessage(
+ const mojo::String& media_route_id,
+ mojo::Array<uint8> data,
+ const SendRouteMessageCallback& callback) override {
+ SendRouteBinaryMessageInternal(media_route_id, data.storage(), callback);
+ }
+ MOCK_METHOD3(SendRouteBinaryMessageInternal,
+ void(const mojo::String& media_route_id,
+ const std::vector<uint8>& data,
+ const SendRouteMessageCallback& callback));
void ListenForRouteMessages(mojo::Array<mojo::String> route_ids,
const ListenForRouteMessagesCallback& callback) {
ListenForRouteMessagesInteral(route_ids.storage(), callback);

Powered by Google App Engine
This is Rietveld 408576698