| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 scoped_ptr<std::vector<uint8_t>> data, | 60 scoped_ptr<std::vector<uint8_t>> data, |
| 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_CONST_METHOD0(is_mdns_discovery_enabled, bool()); |
| 71 MOCK_METHOD0(EnableMdnsDiscovery, void()); |
| 70 MOCK_METHOD1(OnPresentationSessionDetached, | 72 MOCK_METHOD1(OnPresentationSessionDetached, |
| 71 void(const MediaRoute::Id& route_id)); | 73 void(const MediaRoute::Id& route_id)); |
| 72 scoped_ptr<PresentationConnectionStateSubscription> | 74 scoped_ptr<PresentationConnectionStateSubscription> |
| 73 AddPresentationConnectionStateChangedCallback( | 75 AddPresentationConnectionStateChangedCallback( |
| 74 const MediaRoute::Id& route_id, | 76 const MediaRoute::Id& route_id, |
| 75 const content::PresentationConnectionStateChangedCallback& callback) | 77 const content::PresentationConnectionStateChangedCallback& callback) |
| 76 override { | 78 override { |
| 77 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); | 79 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); |
| 78 return connection_state_callbacks_.Add(callback); | 80 return connection_state_callbacks_.Add(callback); |
| 79 } | 81 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 98 | 100 |
| 99 private: | 101 private: |
| 100 base::CallbackList<void( | 102 base::CallbackList<void( |
| 101 const content::PresentationConnectionStateChangeInfo&)> | 103 const content::PresentationConnectionStateChangeInfo&)> |
| 102 connection_state_callbacks_; | 104 connection_state_callbacks_; |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace media_router | 107 } // namespace media_router |
| 106 | 108 |
| 107 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 109 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |