| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 148 |
| 149 private: | 149 private: |
| 150 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); | 150 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 class MockMediaSinksObserver : public MediaSinksObserver { | 153 class MockMediaSinksObserver : public MediaSinksObserver { |
| 154 public: | 154 public: |
| 155 MockMediaSinksObserver(MediaRouter* router, const MediaSource& source); | 155 MockMediaSinksObserver(MediaRouter* router, |
| 156 const MediaSource& source, |
| 157 const GURL& origin); |
| 156 ~MockMediaSinksObserver() override; | 158 ~MockMediaSinksObserver() override; |
| 157 | 159 |
| 158 MOCK_METHOD1(OnSinksReceived, void(const std::vector<MediaSink>& sinks)); | 160 MOCK_METHOD1(OnSinksReceived, void(const std::vector<MediaSink>& sinks)); |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 class MockMediaRoutesObserver : public MediaRoutesObserver { | 163 class MockMediaRoutesObserver : public MediaRoutesObserver { |
| 162 public: | 164 public: |
| 163 explicit MockMediaRoutesObserver(MediaRouter* router, | 165 explicit MockMediaRoutesObserver(MediaRouter* router, |
| 164 const MediaSource::Id source_id = std::string()); | 166 const MediaSource::Id source_id = std::string()); |
| 165 ~MockMediaRoutesObserver() override; | 167 ~MockMediaRoutesObserver() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 183 public: | 185 public: |
| 184 MockPresentationConnectionStateChangedCallback(); | 186 MockPresentationConnectionStateChangedCallback(); |
| 185 ~MockPresentationConnectionStateChangedCallback(); | 187 ~MockPresentationConnectionStateChangedCallback(); |
| 186 MOCK_METHOD1(Run, | 188 MOCK_METHOD1(Run, |
| 187 void(const content::PresentationConnectionStateChangeInfo&)); | 189 void(const content::PresentationConnectionStateChangeInfo&)); |
| 188 }; | 190 }; |
| 189 | 191 |
| 190 } // namespace media_router | 192 } // namespace media_router |
| 191 | 193 |
| 192 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ | 194 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ |
| OLD | NEW |