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 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 MockMediaRouteProvider(); | 30 MockMediaRouteProvider(); |
31 ~MockMediaRouteProvider() override; | 31 ~MockMediaRouteProvider() override; |
32 | 32 |
33 MOCK_METHOD8(CreateRoute, | 33 MOCK_METHOD8(CreateRoute, |
34 void(const std::string& source_urn, | 34 void(const std::string& source_urn, |
35 const std::string& sink_id, | 35 const std::string& sink_id, |
36 const std::string& presentation_id, | 36 const std::string& presentation_id, |
37 const std::string& origin, | 37 const std::string& origin, |
38 int tab_id, | 38 int tab_id, |
39 int64_t timeout_secs, | 39 base::TimeDelta timeout, |
40 bool incognito, | 40 bool incognito, |
41 const CreateRouteCallback& callback)); | 41 const CreateRouteCallback& callback)); |
42 MOCK_METHOD7(JoinRoute, | 42 MOCK_METHOD7(JoinRoute, |
43 void(const std::string& source_urn, | 43 void(const std::string& source_urn, |
44 const std::string& presentation_id, | 44 const std::string& presentation_id, |
45 const std::string& origin, | 45 const std::string& origin, |
46 int tab_id, | 46 int tab_id, |
47 int64_t timeout_secs, | 47 base::TimeDelta timeout, |
48 bool incognito, | 48 bool incognito, |
49 const JoinRouteCallback& callback)); | 49 const JoinRouteCallback& callback)); |
50 MOCK_METHOD8(ConnectRouteByRouteId, | 50 MOCK_METHOD8(ConnectRouteByRouteId, |
51 void(const std::string& source_urn, | 51 void(const std::string& source_urn, |
52 const std::string& route_id, | 52 const std::string& route_id, |
53 const std::string& presentation_id, | 53 const std::string& presentation_id, |
54 const std::string& origin, | 54 const std::string& origin, |
55 int tab_id, | 55 int tab_id, |
56 int64_t timeout_secs, | 56 base::TimeDelta timeout, |
57 bool incognito, | 57 bool incognito, |
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, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 scoped_refptr<extensions::Extension> extension_; | 144 scoped_refptr<extensions::Extension> extension_; |
145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; | 145 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; |
146 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; | 146 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); | 148 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace media_router | 151 } // namespace media_router |
152 | 152 |
153 #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 |