| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const MediaSink::Id& sink_id, | 28 const MediaSink::Id& sink_id, |
| 29 const GURL& origin, | 29 const GURL& origin, |
| 30 content::WebContents* web_contents, | 30 content::WebContents* web_contents, |
| 31 const std::vector<MediaRouteResponseCallback>& callbacks)); | 31 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 32 MOCK_METHOD5(JoinRoute, | 32 MOCK_METHOD5(JoinRoute, |
| 33 void(const MediaSource::Id& source, | 33 void(const MediaSource::Id& source, |
| 34 const std::string& presentation_id, | 34 const std::string& presentation_id, |
| 35 const GURL& origin, | 35 const GURL& origin, |
| 36 content::WebContents* web_contents, | 36 content::WebContents* web_contents, |
| 37 const std::vector<MediaRouteResponseCallback>& callbacks)); | 37 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 38 MOCK_METHOD5(JoinRouteByRouteId, |
| 39 void(const MediaSource::Id& source, |
| 40 const MediaRoute::Id& route_id, |
| 41 const GURL& origin, |
| 42 content::WebContents* web_contents, |
| 43 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 38 MOCK_METHOD1(CloseRoute, void(const MediaRoute::Id& route_id)); | 44 MOCK_METHOD1(CloseRoute, void(const MediaRoute::Id& route_id)); |
| 39 MOCK_METHOD3(SendRouteMessage, | 45 MOCK_METHOD3(SendRouteMessage, |
| 40 void(const MediaRoute::Id& route_id, | 46 void(const MediaRoute::Id& route_id, |
| 41 const std::string& message, | 47 const std::string& message, |
| 42 const SendRouteMessageCallback& callback)); | 48 const SendRouteMessageCallback& callback)); |
| 43 void SendRouteBinaryMessage( | 49 void SendRouteBinaryMessage( |
| 44 const MediaRoute::Id& route_id, | 50 const MediaRoute::Id& route_id, |
| 45 scoped_ptr<std::vector<uint8>> data, | 51 scoped_ptr<std::vector<uint8>> data, |
| 46 const SendRouteMessageCallback& callback) override { | 52 const SendRouteMessageCallback& callback) override { |
| 47 SendRouteBinaryMessageInternal(route_id, data.get(), callback); | 53 SendRouteBinaryMessageInternal(route_id, data.get(), callback); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 void(PresentationSessionMessagesObserver* observer)); | 76 void(PresentationSessionMessagesObserver* observer)); |
| 71 MOCK_METHOD1(RegisterLocalMediaRoutesObserver, | 77 MOCK_METHOD1(RegisterLocalMediaRoutesObserver, |
| 72 void(LocalMediaRoutesObserver* observer)); | 78 void(LocalMediaRoutesObserver* observer)); |
| 73 MOCK_METHOD1(UnregisterLocalMediaRoutesObserver, | 79 MOCK_METHOD1(UnregisterLocalMediaRoutesObserver, |
| 74 void(LocalMediaRoutesObserver* observer)); | 80 void(LocalMediaRoutesObserver* observer)); |
| 75 }; | 81 }; |
| 76 | 82 |
| 77 } // namespace media_router | 83 } // namespace media_router |
| 78 | 84 |
| 79 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 85 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |