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

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

Issue 1784533004: [Media Router] Add origins to sink query results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 9 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void(const mojo::String& route_id)); 149 void(const mojo::String& route_id));
150 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); 150 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source));
151 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); 151 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source));
152 152
153 private: 153 private:
154 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 154 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
155 }; 155 };
156 156
157 class MockMediaSinksObserver : public MediaSinksObserver { 157 class MockMediaSinksObserver : public MediaSinksObserver {
158 public: 158 public:
159 MockMediaSinksObserver(MediaRouter* router, const MediaSource& source); 159 MockMediaSinksObserver(MediaRouter* router,
160 const MediaSource& source,
161 const GURL& origin);
160 ~MockMediaSinksObserver() override; 162 ~MockMediaSinksObserver() override;
161 163
162 MOCK_METHOD1(OnSinksReceived, void(const std::vector<MediaSink>& sinks)); 164 MOCK_METHOD1(OnSinksReceived, void(const std::vector<MediaSink>& sinks));
163 }; 165 };
164 166
165 class MockMediaRoutesObserver : public MediaRoutesObserver { 167 class MockMediaRoutesObserver : public MediaRoutesObserver {
166 public: 168 public:
167 explicit MockMediaRoutesObserver(MediaRouter* router, 169 explicit MockMediaRoutesObserver(MediaRouter* router,
168 const MediaSource::Id source_id = std::string()); 170 const MediaSource::Id source_id = std::string());
169 ~MockMediaRoutesObserver() override; 171 ~MockMediaRoutesObserver() override;
(...skipping 17 matching lines...) Expand all
187 public: 189 public:
188 MockPresentationConnectionStateChangedCallback(); 190 MockPresentationConnectionStateChangedCallback();
189 ~MockPresentationConnectionStateChangedCallback(); 191 ~MockPresentationConnectionStateChangedCallback();
190 MOCK_METHOD1(Run, 192 MOCK_METHOD1(Run,
191 void(const content::PresentationConnectionStateChangeInfo&)); 193 void(const content::PresentationConnectionStateChangeInfo&));
192 }; 194 };
193 195
194 } // namespace media_router 196 } // namespace media_router
195 197
196 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ 198 #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