| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 scoped_ptr<std::vector<uint8_t>> data, | 59 scoped_ptr<std::vector<uint8_t>> data, |
| 60 const SendRouteMessageCallback& callback) override { | 60 const SendRouteMessageCallback& callback) override { |
| 61 SendRouteBinaryMessageInternal(route_id, data.get(), callback); | 61 SendRouteBinaryMessageInternal(route_id, data.get(), callback); |
| 62 } | 62 } |
| 63 MOCK_METHOD3(SendRouteBinaryMessageInternal, | 63 MOCK_METHOD3(SendRouteBinaryMessageInternal, |
| 64 void(const MediaRoute::Id& route_id, | 64 void(const MediaRoute::Id& route_id, |
| 65 std::vector<uint8_t>* data, | 65 std::vector<uint8_t>* data, |
| 66 const SendRouteMessageCallback& callback)); | 66 const SendRouteMessageCallback& callback)); |
| 67 MOCK_METHOD1(AddIssue, void(const Issue& issue)); | 67 MOCK_METHOD1(AddIssue, void(const Issue& issue)); |
| 68 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); | 68 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); |
| 69 MOCK_METHOD0(OnUserGesture, void()); |
| 69 MOCK_METHOD1(OnPresentationSessionDetached, | 70 MOCK_METHOD1(OnPresentationSessionDetached, |
| 70 void(const MediaRoute::Id& route_id)); | 71 void(const MediaRoute::Id& route_id)); |
| 71 scoped_ptr<PresentationConnectionStateSubscription> | 72 scoped_ptr<PresentationConnectionStateSubscription> |
| 72 AddPresentationConnectionStateChangedCallback( | 73 AddPresentationConnectionStateChangedCallback( |
| 73 const MediaRoute::Id& route_id, | 74 const MediaRoute::Id& route_id, |
| 74 const content::PresentationConnectionStateChangedCallback& callback) | 75 const content::PresentationConnectionStateChangedCallback& callback) |
| 75 override { | 76 override { |
| 76 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); | 77 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); |
| 77 return connection_state_callbacks_.Add(callback); | 78 return connection_state_callbacks_.Add(callback); |
| 78 } | 79 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 95 | 96 |
| 96 private: | 97 private: |
| 97 base::CallbackList<void( | 98 base::CallbackList<void( |
| 98 const content::PresentationConnectionStateChangeInfo&)> | 99 const content::PresentationConnectionStateChangeInfo&)> |
| 99 connection_state_callbacks_; | 100 connection_state_callbacks_; |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace media_router | 103 } // namespace media_router |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ | 105 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ |
| OLD | NEW |