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

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

Issue 1846673002: [Media Router] Conditionally enable mDNS on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Patch-up newly-added test. 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const SendRouteMessageCallback& callback)); 138 const SendRouteMessageCallback& callback));
139 MOCK_METHOD2(ListenForRouteMessages, 139 MOCK_METHOD2(ListenForRouteMessages,
140 void(const mojo::String& route_id, 140 void(const mojo::String& route_id,
141 const ListenForRouteMessagesCallback& callback)); 141 const ListenForRouteMessagesCallback& callback));
142 MOCK_METHOD1(StopListeningForRouteMessages, 142 MOCK_METHOD1(StopListeningForRouteMessages,
143 void(const mojo::String& route_id)); 143 void(const mojo::String& route_id));
144 MOCK_METHOD1(OnPresentationSessionDetached, 144 MOCK_METHOD1(OnPresentationSessionDetached,
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 MOCK_METHOD0(EnableMdnsDiscovery, void());
148 149
149 private: 150 private:
150 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 151 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
151 }; 152 };
152 153
153 class MockMediaSinksObserver : public MediaSinksObserver { 154 class MockMediaSinksObserver : public MediaSinksObserver {
154 public: 155 public:
155 MockMediaSinksObserver(MediaRouter* router, 156 MockMediaSinksObserver(MediaRouter* router,
156 const MediaSource& source, 157 const MediaSource& source,
157 const GURL& origin); 158 const GURL& origin);
(...skipping 27 matching lines...) Expand all
185 public: 186 public:
186 MockPresentationConnectionStateChangedCallback(); 187 MockPresentationConnectionStateChangedCallback();
187 ~MockPresentationConnectionStateChangedCallback(); 188 ~MockPresentationConnectionStateChangedCallback();
188 MOCK_METHOD1(Run, 189 MOCK_METHOD1(Run,
189 void(const content::PresentationConnectionStateChangeInfo&)); 190 void(const content::PresentationConnectionStateChangeInfo&));
190 }; 191 };
191 192
192 } // namespace media_router 193 } // namespace media_router
193 194
194 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_ 195 #endif // CHROME_BROWSER_MEDIA_ROUTER_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/mock_media_router.h ('k') | chrome/browser/ui/webui/media_router/media_router_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698