| OLD | NEW |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const JoinRouteCallback& callback)); | 58 const JoinRouteCallback& callback)); |
| 59 MOCK_METHOD1(DetachRoute, void(const std::string& route_id)); | 59 MOCK_METHOD1(DetachRoute, void(const std::string& route_id)); |
| 60 MOCK_METHOD2(TerminateRoute, void(const std::string& route_id, | 60 MOCK_METHOD2(TerminateRoute, void(const std::string& route_id, |
| 61 const TerminateRouteCallback& callback)); | 61 const TerminateRouteCallback& callback)); |
| 62 MOCK_METHOD1(StartObservingMediaSinks, void(const std::string& source)); | 62 MOCK_METHOD1(StartObservingMediaSinks, void(const std::string& source)); |
| 63 MOCK_METHOD1(StopObservingMediaSinks, void(const std::string& source)); | 63 MOCK_METHOD1(StopObservingMediaSinks, void(const std::string& source)); |
| 64 MOCK_METHOD3(SendRouteMessage, | 64 MOCK_METHOD3(SendRouteMessage, |
| 65 void(const std::string& media_route_id, | 65 void(const std::string& media_route_id, |
| 66 const std::string& message, | 66 const std::string& message, |
| 67 const SendRouteMessageCallback& callback)); | 67 const SendRouteMessageCallback& callback)); |
| 68 void SendRouteBinaryMessage( | 68 MOCK_METHOD3(SendRouteBinaryMessage, |
| 69 const std::string& media_route_id, | |
| 70 const std::vector<uint8_t>& data, | |
| 71 const SendRouteMessageCallback& callback) override { | |
| 72 SendRouteBinaryMessageInternal(media_route_id, data, callback); | |
| 73 } | |
| 74 MOCK_METHOD3(SendRouteBinaryMessageInternal, | |
| 75 void(const std::string& media_route_id, | 69 void(const std::string& media_route_id, |
| 76 const std::vector<uint8_t>& data, | 70 const std::vector<uint8_t>& data, |
| 77 const SendRouteMessageCallback& callback)); | 71 const SendRouteMessageCallback& callback)); |
| 78 MOCK_METHOD1(StartListeningForRouteMessages, | 72 MOCK_METHOD1(StartListeningForRouteMessages, |
| 79 void(const std::string& route_id)); | 73 void(const std::string& route_id)); |
| 80 MOCK_METHOD1(StopListeningForRouteMessages, | 74 MOCK_METHOD1(StopListeningForRouteMessages, |
| 81 void(const std::string& route_id)); | 75 void(const std::string& route_id)); |
| 82 MOCK_METHOD1(OnPresentationSessionDetached, | 76 MOCK_METHOD1(OnPresentationSessionDetached, |
| 83 void(const std::string& route_id)); | 77 void(const std::string& route_id)); |
| 84 MOCK_METHOD1(StartObservingMediaRoutes, void(const std::string& source)); | 78 MOCK_METHOD1(StartObservingMediaRoutes, void(const std::string& source)); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 scoped_refptr<extensions::Extension> extension_; | 138 scoped_refptr<extensions::Extension> extension_; |
| 145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; | 139 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; |
| 146 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; | 140 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; |
| 147 | 141 |
| 148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); | 142 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); |
| 149 }; | 143 }; |
| 150 | 144 |
| 151 } // namespace media_router | 145 } // namespace media_router |
| 152 | 146 |
| 153 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ | 147 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ |
| OLD | NEW |