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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 MOCK_METHOD8(ConnectRouteByRouteId, | 50 MOCK_METHOD8(ConnectRouteByRouteId, |
51 void(const mojo::String& source_urn, | 51 void(const mojo::String& source_urn, |
52 const mojo::String& route_id, | 52 const mojo::String& route_id, |
53 const mojo::String& presentation_id, | 53 const mojo::String& presentation_id, |
54 const mojo::String& origin, | 54 const mojo::String& origin, |
55 int tab_id, | 55 int tab_id, |
56 int64_t timeout_secs, | 56 int64_t timeout_secs, |
57 bool off_the_record, | 57 bool off_the_record, |
58 const JoinRouteCallback& callback)); | 58 const JoinRouteCallback& callback)); |
59 MOCK_METHOD1(DetachRoute, void(const mojo::String& route_id)); | 59 MOCK_METHOD1(DetachRoute, void(const mojo::String& route_id)); |
60 MOCK_METHOD1(TerminateRoute, void(const mojo::String& route_id)); | 60 MOCK_METHOD2(TerminateRoute, void(const mojo::String& route_id, |
| 61 const TerminateRouteCallback& callback)); |
61 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source)); | 62 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source)); |
62 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source)); | 63 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source)); |
63 MOCK_METHOD3(SendRouteMessage, | 64 MOCK_METHOD3(SendRouteMessage, |
64 void(const mojo::String& media_route_id, | 65 void(const mojo::String& media_route_id, |
65 const mojo::String& message, | 66 const mojo::String& message, |
66 const SendRouteMessageCallback& callback)); | 67 const SendRouteMessageCallback& callback)); |
67 void SendRouteBinaryMessage( | 68 void SendRouteBinaryMessage( |
68 const mojo::String& media_route_id, | 69 const mojo::String& media_route_id, |
69 mojo::Array<uint8_t> data, | 70 mojo::Array<uint8_t> data, |
70 const SendRouteMessageCallback& callback) override { | 71 const SendRouteMessageCallback& callback) override { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 scoped_refptr<extensions::Extension> extension_; | 144 scoped_refptr<extensions::Extension> extension_; |
144 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; | 145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; |
145 std::unique_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_; | 146 std::unique_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); | 148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace media_router | 151 } // namespace media_router |
151 | 152 |
152 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ | 153 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ |
OLD | NEW |