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

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

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: resolve code review comments from Derek and Mark 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SearchSinks_(sink_id, media_source, search_criteria, callback);
94 } 94 }
95 MOCK_METHOD4(SearchSinks_, 95 MOCK_METHOD4(SearchSinks_,
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 MOCK_METHOD2(ProvideSinks,
101 void(const std::string&, const std::vector<MediaSinkInternal>&));
100 102
101 private: 103 private:
102 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider); 104 DISALLOW_COPY_AND_ASSIGN(MockMediaRouteProvider);
103 }; 105 };
104 106
105 class MockEventPageTracker : public extensions::EventPageTracker { 107 class MockEventPageTracker : public extensions::EventPageTracker {
106 public: 108 public:
107 MockEventPageTracker(); 109 MockEventPageTracker();
108 ~MockEventPageTracker(); 110 ~MockEventPageTracker();
109 111
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 scoped_refptr<extensions::Extension> extension_; 146 scoped_refptr<extensions::Extension> extension_;
145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; 147 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_;
146 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; 148 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); 150 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest);
149 }; 151 };
150 152
151 } // namespace media_router 153 } // namespace media_router
152 154
153 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ 155 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698