| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue)); | 69 MOCK_METHOD1(AddIssue, void(const IssueInfo& issue)); |
| 70 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); | 70 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); |
| 71 MOCK_METHOD0(OnUserGesture, void()); | 71 MOCK_METHOD0(OnUserGesture, void()); |
| 72 MOCK_METHOD5( | 72 MOCK_METHOD5( |
| 73 SearchSinks, | 73 SearchSinks, |
| 74 void(const MediaSink::Id& sink_id, | 74 void(const MediaSink::Id& sink_id, |
| 75 const MediaSource::Id& source_id, | 75 const MediaSource::Id& source_id, |
| 76 const std::string& search_input, | 76 const std::string& search_input, |
| 77 const std::string& domain, | 77 const std::string& domain, |
| 78 const MediaSinkSearchResponseCallback& sink_callback)); | 78 const MediaSinkSearchResponseCallback& sink_callback)); |
| 79 MOCK_METHOD2(ProvideSinks, |
| 80 void(const std::string&, const MediaRouter::MediaSinkList&)); |
| 79 MOCK_METHOD1(OnPresentationSessionDetached, | 81 MOCK_METHOD1(OnPresentationSessionDetached, |
| 80 void(const MediaRoute::Id& route_id)); | 82 void(const MediaRoute::Id& route_id)); |
| 81 std::unique_ptr<PresentationConnectionStateSubscription> | 83 std::unique_ptr<PresentationConnectionStateSubscription> |
| 82 AddPresentationConnectionStateChangedCallback( | 84 AddPresentationConnectionStateChangedCallback( |
| 83 const MediaRoute::Id& route_id, | 85 const MediaRoute::Id& route_id, |
| 84 const content::PresentationConnectionStateChangedCallback& callback) | 86 const content::PresentationConnectionStateChangedCallback& callback) |
| 85 override { | 87 override { |
| 86 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); | 88 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); |
| 87 return connection_state_callbacks_.Add(callback); | 89 return connection_state_callbacks_.Add(callback); |
| 88 } | 90 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 108 | 110 |
| 109 private: | 111 private: |
| 110 base::CallbackList<void( | 112 base::CallbackList<void( |
| 111 const content::PresentationConnectionStateChangeInfo&)> | 113 const content::PresentationConnectionStateChangeInfo&)> |
| 112 connection_state_callbacks_; | 114 connection_state_callbacks_; |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace media_router | 117 } // namespace media_router |
| 116 | 118 |
| 117 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 119 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |