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

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

Issue 1862913004: [Media Router] Wire through a new MRPM call to update media sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_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 MOCK_METHOD0(StartDiscovery, void());
87 88
88 private: 89 private:
89 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 90 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
90 }; 91 };
91 92
92 class MockEventPageTracker : public extensions::EventPageTracker { 93 class MockEventPageTracker : public extensions::EventPageTracker {
93 public: 94 public:
94 MockEventPageTracker(); 95 MockEventPageTracker();
95 ~MockEventPageTracker(); 96 ~MockEventPageTracker();
96 97
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 scoped_refptr<extensions::Extension> extension_; 131 scoped_refptr<extensions::Extension> extension_;
131 scoped_ptr<MediaRouterMojoImpl> mock_media_router_; 132 scoped_ptr<MediaRouterMojoImpl> mock_media_router_;
132 scoped_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_; 133 scoped_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); 135 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest);
135 }; 136 };
136 137
137 } // namespace media_router 138 } // namespace media_router
138 139
139 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 140 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698