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_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 const mojo::String& presentation_id, | 90 const mojo::String& presentation_id, |
91 const mojo::String& origin, | 91 const mojo::String& origin, |
92 int tab_id, | 92 int tab_id, |
93 const CreateRouteCallback& callback)); | 93 const CreateRouteCallback& callback)); |
94 MOCK_METHOD5(JoinRoute, | 94 MOCK_METHOD5(JoinRoute, |
95 void(const mojo::String& source_urn, | 95 void(const mojo::String& source_urn, |
96 const mojo::String& presentation_id, | 96 const mojo::String& presentation_id, |
97 const mojo::String& origin, | 97 const mojo::String& origin, |
98 int tab_id, | 98 int tab_id, |
99 const JoinRouteCallback& callback)); | 99 const JoinRouteCallback& callback)); |
100 MOCK_METHOD1(CloseRoute, void(const mojo::String& route_id)); | 100 MOCK_METHOD1(DetachRoute, void(const mojo::String& route_id)); |
| 101 MOCK_METHOD1(TerminateRoute, void(const mojo::String& route_id)); |
101 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source)); | 102 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source)); |
102 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source)); | 103 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source)); |
103 MOCK_METHOD3(SendRouteMessage, | 104 MOCK_METHOD3(SendRouteMessage, |
104 void(const mojo::String& media_route_id, | 105 void(const mojo::String& media_route_id, |
105 const mojo::String& message, | 106 const mojo::String& message, |
106 const SendRouteMessageCallback& callback)); | 107 const SendRouteMessageCallback& callback)); |
107 void SendRouteBinaryMessage( | 108 void SendRouteBinaryMessage( |
108 const mojo::String& media_route_id, | 109 const mojo::String& media_route_id, |
109 mojo::Array<uint8> data, | 110 mojo::Array<uint8> data, |
110 const SendRouteMessageCallback& callback) override { | 111 const SendRouteMessageCallback& callback) override { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 class MockPresentationConnectionStateChangedCallback { | 159 class MockPresentationConnectionStateChangedCallback { |
159 public: | 160 public: |
160 MockPresentationConnectionStateChangedCallback(); | 161 MockPresentationConnectionStateChangedCallback(); |
161 ~MockPresentationConnectionStateChangedCallback(); | 162 ~MockPresentationConnectionStateChangedCallback(); |
162 MOCK_METHOD1(Run, void(content::PresentationConnectionState)); | 163 MOCK_METHOD1(Run, void(content::PresentationConnectionState)); |
163 }; | 164 }; |
164 | 165 |
165 } // namespace media_router | 166 } // namespace media_router |
166 | 167 |
167 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ | 168 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
OLD | NEW |