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

Side by Side Diff: chrome/browser/media/router/mock_media_router.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_MOCK_MEDIA_ROUTER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 scoped_ptr<std::vector<uint8_t>> data, 59 scoped_ptr<std::vector<uint8_t>> data,
60 const SendRouteMessageCallback& callback) override { 60 const SendRouteMessageCallback& callback) override {
61 SendRouteBinaryMessageInternal(route_id, data.get(), callback); 61 SendRouteBinaryMessageInternal(route_id, data.get(), callback);
62 } 62 }
63 MOCK_METHOD3(SendRouteBinaryMessageInternal, 63 MOCK_METHOD3(SendRouteBinaryMessageInternal,
64 void(const MediaRoute::Id& route_id, 64 void(const MediaRoute::Id& route_id,
65 std::vector<uint8_t>* data, 65 std::vector<uint8_t>* data,
66 const SendRouteMessageCallback& callback)); 66 const SendRouteMessageCallback& callback));
67 MOCK_METHOD1(AddIssue, void(const Issue& issue)); 67 MOCK_METHOD1(AddIssue, void(const Issue& issue));
68 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id)); 68 MOCK_METHOD1(ClearIssue, void(const Issue::Id& issue_id));
69 MOCK_METHOD0(OnUserGesture, void());
69 MOCK_METHOD1(OnPresentationSessionDetached, 70 MOCK_METHOD1(OnPresentationSessionDetached,
70 void(const MediaRoute::Id& route_id)); 71 void(const MediaRoute::Id& route_id));
71 scoped_ptr<PresentationConnectionStateSubscription> 72 scoped_ptr<PresentationConnectionStateSubscription>
72 AddPresentationConnectionStateChangedCallback( 73 AddPresentationConnectionStateChangedCallback(
73 const MediaRoute::Id& route_id, 74 const MediaRoute::Id& route_id,
74 const content::PresentationConnectionStateChangedCallback& callback) 75 const content::PresentationConnectionStateChangedCallback& callback)
75 override { 76 override {
76 OnAddPresentationConnectionStateChangedCallbackInvoked(callback); 77 OnAddPresentationConnectionStateChangedCallbackInvoked(callback);
77 return connection_state_callbacks_.Add(callback); 78 return connection_state_callbacks_.Add(callback);
78 } 79 }
(...skipping 16 matching lines...) Expand all
95 96
96 private: 97 private:
97 base::CallbackList<void( 98 base::CallbackList<void(
98 const content::PresentationConnectionStateChangeInfo&)> 99 const content::PresentationConnectionStateChangeInfo&)>
99 connection_state_callbacks_; 100 connection_state_callbacks_;
100 }; 101 };
101 102
102 } // namespace media_router 103 } // namespace media_router
103 104
104 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_ 105 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOCK_MEDIA_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router_mojo_test.cc ('k') | chrome/browser/media/router/test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698