| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const SendRouteMessageCallback& callback)); | 138 const SendRouteMessageCallback& callback)); |
| 139 MOCK_METHOD2(ListenForRouteMessages, | 139 MOCK_METHOD2(ListenForRouteMessages, |
| 140 void(const mojo::String& route_id, | 140 void(const mojo::String& route_id, |
| 141 const ListenForRouteMessagesCallback& callback)); | 141 const ListenForRouteMessagesCallback& callback)); |
| 142 MOCK_METHOD1(StopListeningForRouteMessages, | 142 MOCK_METHOD1(StopListeningForRouteMessages, |
| 143 void(const mojo::String& route_id)); | 143 void(const mojo::String& route_id)); |
| 144 MOCK_METHOD1(OnPresentationSessionDetached, | 144 MOCK_METHOD1(OnPresentationSessionDetached, |
| 145 void(const mojo::String& route_id)); | 145 void(const mojo::String& route_id)); |
| 146 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); | 146 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); |
| 147 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); | 147 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); |
| 148 MOCK_METHOD0(EnableMdnsDiscovery, void()); |
| 148 | 149 |
| 149 private: | 150 private: |
| 150 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); | 151 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 class MockMediaSinksObserver : public MediaSinksObserver { | 154 class MockMediaSinksObserver : public MediaSinksObserver { |
| 154 public: | 155 public: |
| 155 MockMediaSinksObserver(MediaRouter* router, | 156 MockMediaSinksObserver(MediaRouter* router, |
| 156 const MediaSource& source, | 157 const MediaSource& source, |
| 157 const GURL& origin); | 158 const GURL& origin); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 185 public: | 186 public: |
| 186 MockPresentationConnectionStateChangedCallback(); | 187 MockPresentationConnectionStateChangedCallback(); |
| 187 ~MockPresentationConnectionStateChangedCallback(); | 188 ~MockPresentationConnectionStateChangedCallback(); |
| 188 MOCK_METHOD1(Run, | 189 MOCK_METHOD1(Run, |
| 189 void(const content::PresentationConnectionStateChangeInfo&)); | 190 void(const content::PresentationConnectionStateChangeInfo&)); |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace media_router | 193 } // namespace media_router |
| 193 | 194 |
| 194 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ | 195 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
| OLD | NEW |