| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const MediaRoute::Id& route_id, | 47 const MediaRoute::Id& route_id, |
| 48 const url::Origin& origin, | 48 const url::Origin& origin, |
| 49 content::WebContents* web_contents, | 49 content::WebContents* web_contents, |
| 50 const std::vector<MediaRouteResponseCallback>& callbacks, | 50 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 51 base::TimeDelta timeout, | 51 base::TimeDelta timeout, |
| 52 bool incognito)); | 52 bool incognito)); |
| 53 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); | 53 MOCK_METHOD1(DetachRoute, void(const MediaRoute::Id& route_id)); |
| 54 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); | 54 MOCK_METHOD1(TerminateRoute, void(const MediaRoute::Id& route_id)); |
| 55 MOCK_METHOD3(SendRouteMessage, | 55 MOCK_METHOD3(SendRouteMessage, |
| 56 void(const MediaRoute::Id& route_id, | 56 void(const MediaRoute::Id& route_id, |
| 57 const std::string& message, | 57 std::string message, |
| 58 const SendRouteMessageCallback& callback)); | 58 const SendRouteMessageCallback& callback)); |
| 59 void SendRouteBinaryMessage( | 59 MOCK_METHOD3(SendRouteBinaryMessage, |
| 60 const MediaRoute::Id& route_id, | |
| 61 std::unique_ptr<std::vector<uint8_t>> data, | |
| 62 const SendRouteMessageCallback& callback) override { | |
| 63 SendRouteBinaryMessageInternal(route_id, data.get(), callback); | |
| 64 } | |
| 65 MOCK_METHOD3(SendRouteBinaryMessageInternal, | |
| 66 void(const MediaRoute::Id& route_id, | 60 void(const MediaRoute::Id& route_id, |
| 67 std::vector<uint8_t>* data, | 61 std::vector<uint8_t> data, |
| 68 const SendRouteMessageCallback& callback)); | 62 const SendRouteMessageCallback& callback)); |
| 69 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue)); | 63 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue)); |
| 70 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); | 64 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); |
| 71 MOCK_METHOD0(OnUserGesture, void()); | 65 MOCK_METHOD0(OnUserGesture, void()); |
| 72 MOCK_METHOD5( | 66 MOCK_METHOD5( |
| 73 SearchSinks, | 67 SearchSinks, |
| 74 void(const MediaSink::Id& sink_id, | 68 void(const MediaSink::Id& sink_id, |
| 75 const MediaSource::Id& source_id, | 69 const MediaSource::Id& source_id, |
| 76 const std::string& search_input, | 70 const std::string& search_input, |
| 77 const std::string& domain, | 71 const std::string& domain, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 108 | 102 |
| 109 private: | 103 private: |
| 110 base::CallbackList<void( | 104 base::CallbackList<void( |
| 111 const content::PresentationConnectionStateChangeInfo&)> | 105 const content::PresentationConnectionStateChangeInfo&)> |
| 112 connection_state_callbacks_; | 106 connection_state_callbacks_; |
| 113 }; | 107 }; |
| 114 | 108 |
| 115 } // namespace media_router | 109 } // namespace media_router |
| 116 | 110 |
| 117 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 111 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |