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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_test.h

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pseudo sinks and automatic route creation 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_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MOCK_METHOD2(ListenForRouteMessages, 77 MOCK_METHOD2(ListenForRouteMessages,
78 void(const mojo::String& route_id, 78 void(const mojo::String& route_id,
79 const ListenForRouteMessagesCallback& callback)); 79 const ListenForRouteMessagesCallback& callback));
80 MOCK_METHOD1(StopListeningForRouteMessages, 80 MOCK_METHOD1(StopListeningForRouteMessages,
81 void(const mojo::String& route_id)); 81 void(const mojo::String& route_id));
82 MOCK_METHOD1(OnPresentationSessionDetached, 82 MOCK_METHOD1(OnPresentationSessionDetached,
83 void(const mojo::String& route_id)); 83 void(const mojo::String& route_id));
84 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source)); 84 MOCK_METHOD1(StartObservingMediaRoutes, void(const mojo::String& source));
85 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source)); 85 MOCK_METHOD1(StopObservingMediaRoutes, void(const mojo::String& source));
86 MOCK_METHOD0(EnableMdnsDiscovery, void()); 86 MOCK_METHOD0(EnableMdnsDiscovery, void());
87 void SearchSinksAndCreateRoute(
88 const mojo::String& sink_id,
89 const mojo::String& media_source,
90 interfaces::SinkSearchCriteriaPtr search_criteria,
91 const mojo::String& presentation_id,
92 const mojo::String& origin,
93 int32_t tab_id,
94 int64_t timeout_millis,
95 bool off_the_record,
96 const SearchSinksAndCreateRouteCallback& callback) override {
97 SearchSinksAndCreateRoute_(sink_id, media_source, search_criteria,
98 presentation_id, origin, tab_id, timeout_millis,
99 off_the_record, callback);
100 }
101 MOCK_METHOD9(SearchSinksAndCreateRoute_,
102 void(const mojo::String& sink_id,
103 const mojo::String& media_source,
104 interfaces::SinkSearchCriteriaPtr& search_criteria,
105 const mojo::String& presentation_id,
106 const mojo::String& origin,
107 int32_t tab_id,
108 int64_t timeout_millis,
109 bool off_the_record,
110 const SearchSinksAndCreateRouteCallback& callback));
87 111
88 private: 112 private:
89 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 113 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
90 }; 114 };
91 115
92 class MockEventPageTracker : public extensions::EventPageTracker { 116 class MockEventPageTracker : public extensions::EventPageTracker {
93 public: 117 public:
94 MockEventPageTracker(); 118 MockEventPageTracker();
95 ~MockEventPageTracker(); 119 ~MockEventPageTracker();
96 120
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 scoped_refptr<extensions::Extension> extension_; 154 scoped_refptr<extensions::Extension> extension_;
131 scoped_ptr<MediaRouterMojoImpl> mock_media_router_; 155 scoped_ptr<MediaRouterMojoImpl> mock_media_router_;
132 scoped_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_; 156 scoped_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_;
133 157
134 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); 158 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest);
135 }; 159 };
136 160
137 } // namespace media_router 161 } // namespace media_router
138 162
139 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 163 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698