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

Unified Diff: chrome/browser/media/router/mojo/media_router_mojo_test.h

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: Created 3 years, 10 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/mojo/media_router_mojo_test.h
diff --git a/chrome/browser/media/router/mojo/media_router_mojo_test.h b/chrome/browser/media/router/mojo/media_router_mojo_test.h
index 72609c897287e29047a4bb6de154e154f6e61f6f..16f01818d53331fe5c2760c55d90d73d7de000c5 100644
--- a/chrome/browser/media/router/mojo/media_router_mojo_test.h
+++ b/chrome/browser/media/router/mojo/media_router_mojo_test.h
@@ -97,6 +97,12 @@ class MockMediaRouteProvider : public mojom::MediaRouteProvider {
const std::string& media_source,
mojom::SinkSearchCriteriaPtr& search_criteria,
const SearchSinksCallback& callback));
+ void OnSinksDiscovered(
+ std::vector<std::unique_ptr<MediaSink>> sinks) override {
+ OnSinksDiscovered_(sinks);
+ }
+ MOCK_METHOD1(OnSinksDiscovered_,
+ void(const std::vector<std::unique_ptr<MediaSink>>& sinks));
private:
DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);

Powered by Google App Engine
This is Rietveld 408576698