Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: chrome/browser/media/router/test_helper.h

Issue 1838903006: [Media Router] Cherrypick "add sinks to origin list" to beta (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc ('k') | chrome/browser/media/router/test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698