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

Side by Side Diff: chrome/browser/media/router/mock_media_router.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue)); 68 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue));
69 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); 69 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id));
70 MOCK_METHOD0(OnUserGesture, void()); 70 MOCK_METHOD0(OnUserGesture, void());
71 MOCK_METHOD5( 71 MOCK_METHOD5(
72 SearchSinks, 72 SearchSinks,
73 void(const MediaSink::Id& sink_id, 73 void(const MediaSink::Id& sink_id,
74 const MediaSource::Id& source_id, 74 const MediaSource::Id& source_id,
75 const std::string& search_input, 75 const std::string& search_input,
76 const std::string& domain, 76 const std::string& domain,
77 const MediaSinkSearchResponseCallback& sink_callback)); 77 const MediaSinkSearchResponseCallback& sink_callback));
78 void OnSinksDiscovered(std::unique_ptr<MediaSinkList> sinks) override {
79 OnSinksDiscoveredInternal(sinks.get());
80 }
81 MOCK_METHOD1(OnSinksDiscoveredInternal, void(MediaSinkList* sinks));
78 MOCK_METHOD1(OnPresentationSessionDetached, 82 MOCK_METHOD1(OnPresentationSessionDetached,
79 void(const MediaRoute::Id& route_id)); 83 void(const MediaRoute::Id& route_id));
80 std::unique_ptr<PresentationConnectionStateSubscription> 84 std::unique_ptr<PresentationConnectionStateSubscription>
81 AddPresentationConnectionStateChangedCallback( 85 AddPresentationConnectionStateChangedCallback(
82 const MediaRoute::Id& route_id, 86 const MediaRoute::Id& route_id,
83 const content::PresentationConnectionStateChangedCallback& callback) 87 const content::PresentationConnectionStateChangedCallback& callback)
84 override { 88 override {
85 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); 89 OnAddPresentationConnectionStateChangedCallbackInvoked(callback);
86 return connection_state_callbacks_.Add(callback); 90 return connection_state_callbacks_.Add(callback);
87 } 91 }
(...skipping 19 matching lines...) Expand all
107 111
108 private: 112 private:
109 base::CallbackList<void( 113 base::CallbackList<void(
110 const content::PresentationConnectionStateChangeInfo&)> 114 const content::PresentationConnectionStateChangeInfo&)>
111 connection_state_callbacks_; 115 connection_state_callbacks_;
112 }; 116 };
113 117
114 } // namespace media_router 118 } // namespace media_router
115 119
116 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ 120 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698