| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); | 71 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); |
| 72 MOCK_METHOD0(OnUserGesture, void()); | 72 MOCK_METHOD0(OnUserGesture, void()); |
| 73 MOCK_METHOD5( | 73 MOCK_METHOD5( |
| 74 SearchSinks, | 74 SearchSinks, |
| 75 void(const MediaSink::Id& sink_id, | 75 void(const MediaSink::Id& sink_id, |
| 76 const MediaSource::Id& source_id, | 76 const MediaSource::Id& source_id, |
| 77 const std::string& search_input, | 77 const std::string& search_input, |
| 78 const std::string& domain, | 78 const std::string& domain, |
| 79 const MediaSinkSearchResponseCallback& sink_callback)); | 79 const MediaSinkSearchResponseCallback& sink_callback)); |
| 80 MOCK_METHOD2(ProvideSinks, | 80 MOCK_METHOD2(ProvideSinks, |
| 81 void(const std::string&, const std::vector<MediaSinkInternal>&)); | 81 void(const std::string&, std::vector<MediaSinkInternal>)); |
| 82 MOCK_METHOD1(OnPresentationSessionDetached, | 82 MOCK_METHOD1(OnPresentationSessionDetached, |
| 83 void(const MediaRoute::Id& route_id)); | 83 void(const MediaRoute::Id& route_id)); |
| 84 std::unique_ptr<PresentationConnectionStateSubscription> | 84 std::unique_ptr<PresentationConnectionStateSubscription> |
| 85 AddPresentationConnectionStateChangedCallback( | 85 AddPresentationConnectionStateChangedCallback( |
| 86 const MediaRoute::Id& route_id, | 86 const MediaRoute::Id& route_id, |
| 87 const content::PresentationConnectionStateChangedCallback& callback) | 87 const content::PresentationConnectionStateChangedCallback& callback) |
| 88 override { | 88 override { |
| 89 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); | 89 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); |
| 90 return connection_state_callbacks_.Add(callback); | 90 return connection_state_callbacks_.Add(callback); |
| 91 } | 91 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 base::CallbackList<void( | 119 base::CallbackList<void( |
| 120 const content::PresentationConnectionStateChangeInfo&)> | 120 const content::PresentationConnectionStateChangeInfo&)> |
| 121 connection_state_callbacks_; | 121 connection_state_callbacks_; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace media_router | 124 } // namespace media_router |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 126 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |