| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const MediaSink::Id& sink_id, | 30 const MediaSink::Id& sink_id, |
| 31 const GURL& origin, | 31 const GURL& origin, |
| 32 content::WebContents* web_contents, | 32 content::WebContents* web_contents, |
| 33 const std::vector<MediaRouteResponseCallback>& callbacks)); | 33 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 34 MOCK_METHOD5(JoinRoute, | 34 MOCK_METHOD5(JoinRoute, |
| 35 void(const MediaSource::Id& source, | 35 void(const MediaSource::Id& source, |
| 36 const std::string& presentation_id, | 36 const std::string& presentation_id, |
| 37 const GURL& origin, | 37 const GURL& origin, |
| 38 content::WebContents* web_contents, | 38 content::WebContents* web_contents, |
| 39 const std::vector<MediaRouteResponseCallback>& callbacks)); | 39 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 40 MOCK_METHOD5(ConnectRouteByRouteId, |
| 41 void(const MediaSource::Id& source, |
| 42 const MediaRoute::Id& route_id, |
| 43 const GURL& origin, |
| 44 content::WebContents* web_contents, |
| 45 const std::vector<MediaRouteResponseCallback>& callbacks)); |
| 40 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); | 46 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); |
| 41 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); | 47 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); |
| 42 MOCK_METHOD3(SendRouteMessage, | 48 MOCK_METHOD3(SendRouteMessage, |
| 43 void(const MediaRoute::Id& route_id, | 49 void(const MediaRoute::Id& route_id, |
| 44 const std::string& message, | 50 const std::string& message, |
| 45 const SendRouteMessageCallback& callback)); | 51 const SendRouteMessageCallback& callback)); |
| 46 void SendRouteBinaryMessage( | 52 void SendRouteBinaryMessage( |
| 47 const MediaRoute::Id& route_id, | 53 const MediaRoute::Id& route_id, |
| 48 scoped_ptr<std::vector<uint8_t>> data, | 54 scoped_ptr<std::vector<uint8_t>> data, |
| 49 const SendRouteMessageCallback& callback) override { | 55 const SendRouteMessageCallback& callback) override { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void(LocalMediaRoutesObserver* observer)); | 95 void(LocalMediaRoutesObserver* observer)); |
| 90 | 96 |
| 91 private: | 97 private: |
| 92 base::CallbackList<void(content::PresentationConnectionState)> | 98 base::CallbackList<void(content::PresentationConnectionState)> |
| 93 connection_state_callbacks_; | 99 connection_state_callbacks_; |
| 94 }; | 100 }; |
| 95 | 101 |
| 96 } // namespace media_router | 102 } // namespace media_router |
| 97 | 103 |
| 98 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 104 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |