| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const SendRouteMessageCallback& callback) override { | 61 const SendRouteMessageCallback& callback) override { |
| 62 SendRouteBinaryMessageInternal(route_id, data.get(), callback); | 62 SendRouteBinaryMessageInternal(route_id, data.get(), callback); |
| 63 } | 63 } |
| 64 MOCK_METHOD3(SendRouteBinaryMessageInternal, | 64 MOCK_METHOD3(SendRouteBinaryMessageInternal, |
| 65 void(const MediaRoute::Id& route_id, | 65 void(const MediaRoute::Id& route_id, |
| 66 std::vector<uint8_t>* data, | 66 std::vector<uint8_t>* data, |
| 67 const SendRouteMessageCallback& callback)); | 67 const SendRouteMessageCallback& callback)); |
| 68 MOCK_METHOD1(AddIssue, void(const Issue& issue)); | 68 MOCK_METHOD1(AddIssue, void(const Issue& 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_METHOD10( |
| 72 SearchSinksAndCreateRoute, |
| 73 void(const MediaSource::Id& source_id, |
| 74 const MediaSink::Id& sink_id, |
| 75 const std::string& search_input, |
| 76 const std::string& domain, |
| 77 const GURL& origin, |
| 78 content::WebContents* web_contents, |
| 79 const std::vector<MediaRouteResponseCallback>& route_callbacks, |
| 80 const MediaSinkSearchResponseCallback& sink_callback, |
| 81 base::TimeDelta timeout, |
| 82 bool off_the_record)); |
| 71 MOCK_METHOD1(OnPresentationSessionDetached, | 83 MOCK_METHOD1(OnPresentationSessionDetached, |
| 72 void(const MediaRoute::Id& route_id)); | 84 void(const MediaRoute::Id& route_id)); |
| 73 std::unique_ptr<PresentationConnectionStateSubscription> | 85 std::unique_ptr<PresentationConnectionStateSubscription> |
| 74 AddPresentationConnectionStateChangedCallback( | 86 AddPresentationConnectionStateChangedCallback( |
| 75 const MediaRoute::Id& route_id, | 87 const MediaRoute::Id& route_id, |
| 76 const content::PresentationConnectionStateChangedCallback& callback) | 88 const content::PresentationConnectionStateChangedCallback& callback) |
| 77 override { | 89 override { |
| 78 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); | 90 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); |
| 79 return connection_state_callbacks_.Add(callback); | 91 return connection_state_callbacks_.Add(callback); |
| 80 } | 92 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 99 | 111 |
| 100 private: | 112 private: |
| 101 base::CallbackList<void( | 113 base::CallbackList<void( |
| 102 const content::PresentationConnectionStateChangeInfo&)> | 114 const content::PresentationConnectionStateChangeInfo&)> |
| 103 connection_state_callbacks_; | 115 connection_state_callbacks_; |
| 104 }; | 116 }; |
| 105 | 117 |
| 106 } // namespace media_router | 118 } // namespace media_router |
| 107 | 119 |
| 108 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 120 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |