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

Side by Side Diff: chrome/test/media_router/test_media_sinks_observer.h

Issue 2627463003: Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Add missing dependency for extensions_renderer_resources target Created 3 years, 10 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 #include <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/media/router/media_sinks_observer.h" 9 #include "chrome/browser/media/router/media_sinks_observer.h"
10 10
11 #ifndef CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_ 11 #ifndef CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
12 #define CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_ 12 #define CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
13 13
14 namespace media_router { 14 namespace media_router {
15 15
16 class MediaRouter; 16 class MediaRouter;
17 17
18 // Test class to implement MediaSinksObserver that receives SinkQueryResults 18 // Test class to implement MediaSinksObserver that receives SinkQueryResults
19 // from Media Router and is used for verification. 19 // from Media Router and is used for verification.
20 class TestMediaSinksObserver : public MediaSinksObserver { 20 class TestMediaSinksObserver : public MediaSinksObserver {
21 public: 21 public:
22 TestMediaSinksObserver(MediaRouter* router, 22 TestMediaSinksObserver(MediaRouter* router,
23 const MediaSource& source, 23 const MediaSource& source,
24 const GURL& origin); 24 const url::Origin& origin);
25 ~TestMediaSinksObserver() override; 25 ~TestMediaSinksObserver() override;
26 26
27 // MediaSinksObserver implementation. 27 // MediaSinksObserver implementation.
28 void OnSinksReceived(const std::vector<MediaSink>& result) override; 28 void OnSinksReceived(const std::vector<MediaSink>& result) override;
29 29
30 // Map of <sink_name, media_sink_object> 30 // Map of <sink_name, media_sink_object>
31 std::map<std::string, const MediaSink> sink_map; 31 std::map<std::string, const MediaSink> sink_map;
32 }; 32 };
33 33
34 } // namespace media_router 34 } // namespace media_router
35 35
36 #endif // CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_ 36 #endif // CHROME_TEST_MEDIA_ROUTER_TEST_MEDIA_SINKS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/test/media_router/media_router_e2e_browsertest.cc ('k') | chrome/test/media_router/test_media_sinks_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698