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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 const SendRouteMessageCallback& callback)); | 143 const SendRouteMessageCallback& callback)); |
144 MOCK_METHOD2(ListenForRouteMessages, | 144 MOCK_METHOD2(ListenForRouteMessages, |
145 void(const mojo::String& route_id, | 145 void(const mojo::String& route_id, |
146 const ListenForRouteMessagesCallback& callback)); | 146 const ListenForRouteMessagesCallback& callback)); |
147 MOCK_METHOD1(StopListeningForRouteMessages, | 147 MOCK_METHOD1(StopListeningForRouteMessages, |
148 void(const mojo::String& route_id)); | 148 void(const mojo::String& route_id)); |
149 MOCK_METHOD1(OnPresentationSessionDetached, | 149 MOCK_METHOD1(OnPresentationSessionDetached, |
150 void(const mojo::String& route_id)); | 150 void(const mojo::String& route_id)); |
151 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); | 151 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); |
152 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); | 152 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); |
| 153 MOCK_METHOD0(EnableMdnsDiscovery, void()); |
153 | 154 |
154 private: | 155 private: |
155 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); | 156 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); |
156 }; | 157 }; |
157 | 158 |
158 class MockMediaSinksObserver : public MediaSinksObserver { | 159 class MockMediaSinksObserver : public MediaSinksObserver { |
159 public: | 160 public: |
160 MockMediaSinksObserver(MediaRouter* router, | 161 MockMediaSinksObserver(MediaRouter* router, |
161 const MediaSource& source, | 162 const MediaSource& source, |
162 const GURL& origin); | 163 const GURL& origin); |
(...skipping 27 matching lines...) Expand all Loading... |
190 public: | 191 public: |
191 MockPresentationConnectionStateChangedCallback(); | 192 MockPresentationConnectionStateChangedCallback(); |
192 ~MockPresentationConnectionStateChangedCallback(); | 193 ~MockPresentationConnectionStateChangedCallback(); |
193 MOCK_METHOD1(Run, | 194 MOCK_METHOD1(Run, |
194 void(const content::PresentationConnectionStateChangeInfo&)); | 195 void(const content::PresentationConnectionStateChangeInfo&)); |
195 }; | 196 }; |
196 | 197 |
197 } // namespace media_router | 198 } // namespace media_router |
198 | 199 |
199 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ | 200 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
OLD | NEW |