| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Media Router mock class. Used for testing purposes. | 22 // Media Router mock class. Used for testing purposes. |
| 23 class MockMediaRouter : public MediaRouterBase { | 23 class MockMediaRouter : public MediaRouterBase { |
| 24 public: | 24 public: |
| 25 MockMediaRouter(); | 25 MockMediaRouter(); |
| 26 ~MockMediaRouter() override; | 26 ~MockMediaRouter() override; |
| 27 | 27 |
| 28 MOCK_METHOD7(CreateRoute, | 28 MOCK_METHOD7(CreateRoute, |
| 29 void(const MediaSource::Id& source, | 29 void(const MediaSource::Id& source, |
| 30 const MediaSink::Id& sink_id, | 30 const MediaSink::Id& sink_id, |
| 31 const GURL& origin, | 31 const url::Origin& origin, |
| 32 content::WebContents* web_contents, | 32 content::WebContents* web_contents, |
| 33 const std::vector<MediaRouteResponseCallback>& callbacks, | 33 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 34 base::TimeDelta timeout, | 34 base::TimeDelta timeout, |
| 35 bool incognito)); | 35 bool incognito)); |
| 36 MOCK_METHOD7(JoinRoute, | 36 MOCK_METHOD7(JoinRoute, |
| 37 void(const MediaSource::Id& source, | 37 void(const MediaSource::Id& source, |
| 38 const std::string& presentation_id, | 38 const std::string& presentation_id, |
| 39 const GURL& origin, | 39 const url::Origin& origin, |
| 40 content::WebContents* web_contents, | 40 content::WebContents* web_contents, |
| 41 const std::vector<MediaRouteResponseCallback>& callbacks, | 41 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 42 base::TimeDelta timeout, | 42 base::TimeDelta timeout, |
| 43 bool incognito)); | 43 bool incognito)); |
| 44 MOCK_METHOD7(ConnectRouteByRouteId, | 44 MOCK_METHOD7(ConnectRouteByRouteId, |
| 45 void(const MediaSource::Id& source, | 45 void(const MediaSource::Id& source, |
| 46 const MediaRoute::Id& route_id, | 46 const MediaRoute::Id& route_id, |
| 47 const GURL& origin, | 47 const url::Origin& origin, |
| 48 content::WebContents* web_contents, | 48 content::WebContents* web_contents, |
| 49 const std::vector<MediaRouteResponseCallback>& callbacks, | 49 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 50 base::TimeDelta timeout, | 50 base::TimeDelta timeout, |
| 51 bool incognito)); | 51 bool incognito)); |
| 52 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); | 52 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); |
| 53 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); | 53 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); |
| 54 MOCK_METHOD3(SendRouteMessage, | 54 MOCK_METHOD3(SendRouteMessage, |
| 55 void(const MediaRoute::Id& route_id, | 55 void(const MediaRoute::Id& route_id, |
| 56 const std::string& message, | 56 const std::string& message, |
| 57 const SendRouteMessageCallback& callback)); | 57 const SendRouteMessageCallback& callback)); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 base::CallbackList<void( | 109 base::CallbackList<void( |
| 110 const content::PresentationConnectionStateChangeInfo&)> | 110 const content::PresentationConnectionStateChangeInfo&)> |
| 111 connection_state_callbacks_; | 111 connection_state_callbacks_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace media_router | 114 } // namespace media_router |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 116 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |