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

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

Issue 2727123002: [Media Router] Custom Controls 1 - Add MediaStatus, MediaRouteController, and mojo interfaces (Closed)
Patch Set: . Created 3 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_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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void(const std::string& route_id)); 83 void(const std::string& route_id));
84 MOCK_METHOD1(StartObservingMediaRoutes, void(const std::string& source)); 84 MOCK_METHOD1(StartObservingMediaRoutes, void(const std::string& source));
85 MOCK_METHOD1(StopObservingMediaRoutes, void(const std::string& source)); 85 MOCK_METHOD1(StopObservingMediaRoutes, void(const std::string& source));
86 MOCK_METHOD0(EnableMdnsDiscovery, void()); 86 MOCK_METHOD0(EnableMdnsDiscovery, void());
87 MOCK_METHOD1(UpdateMediaSinks, void(const std::string& source)); 87 MOCK_METHOD1(UpdateMediaSinks, void(const std::string& source));
88 void SearchSinks( 88 void SearchSinks(
89 const std::string& sink_id, 89 const std::string& sink_id,
90 const std::string& media_source, 90 const std::string& media_source,
91 mojom::SinkSearchCriteriaPtr search_criteria, 91 mojom::SinkSearchCriteriaPtr search_criteria,
92 const SearchSinksCallback& callback) override { 92 const SearchSinksCallback& callback) override {
93 SearchSinks_(sink_id, media_source, search_criteria, callback); 93 SearchSinksInternal(sink_id, media_source, search_criteria, callback);
94 } 94 }
95 MOCK_METHOD4(SearchSinks_, 95 MOCK_METHOD4(SearchSinksInternal,
96 void(const std::string& sink_id, 96 void(const std::string& sink_id,
97 const std::string& media_source, 97 const std::string& media_source,
98 mojom::SinkSearchCriteriaPtr& search_criteria, 98 mojom::SinkSearchCriteriaPtr& search_criteria,
99 const SearchSinksCallback& callback)); 99 const SearchSinksCallback& callback));
100 void CreateMediaRouteController(
101 const std::string& route_id,
102 mojom::MediaControllerRequest media_controller,
103 const CreateMediaRouteControllerCallback& callback) override {
104 CreateMediaRouteControllerInternal(route_id, media_controller, callback);
105 }
106 MOCK_METHOD3(CreateMediaRouteControllerInternal,
107 void(const std::string& route_id,
108 mojom::MediaControllerRequest& media_controller,
109 const CreateMediaRouteControllerCallback& callback));
110 void SetMediaRouteStatusObserver(
111 const std::string& route_id,
112 mojom::MediaStatusObserverPtr observer) override {
113 SetMediaRouteStatusObserverInternal(route_id, observer);
114 }
115 MOCK_METHOD2(SetMediaRouteStatusObserverInternal,
116 void(const std::string& route_id,
117 mojom::MediaStatusObserverPtr& observer));
100 118
101 private: 119 private:
102 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 120 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
103 }; 121 };
104 122
105 class MockEventPageTracker : public extensions::EventPageTracker { 123 class MockEventPageTracker : public extensions::EventPageTracker {
106 public: 124 public:
107 MockEventPageTracker(); 125 MockEventPageTracker();
108 ~MockEventPageTracker(); 126 ~MockEventPageTracker();
109 127
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 scoped_refptr<extensions::Extension> extension_; 162 scoped_refptr<extensions::Extension> extension_;
145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; 163 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_;
146 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; 164 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_;
147 165
148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); 166 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest);
149 }; 167 };
150 168
151 } // namespace media_router 169 } // namespace media_router
152 170
153 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 171 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698