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

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

Issue 2678123003: Revert of Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Created 3 years, 10 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 16 matching lines...) Expand all
27 27
28 class MockMediaRouteProvider : public mojom::MediaRouteProvider { 28 class MockMediaRouteProvider : public mojom::MediaRouteProvider {
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 url::Origin& origin, 37 const std::string& origin,
38 int tab_id, 38 int tab_id,
39 base::TimeDelta timeout, 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 url::Origin& origin, 45 const std::string& origin,
46 int tab_id, 46 int tab_id,
47 base::TimeDelta timeout, 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 url::Origin& origin, 54 const std::string& origin,
55 int tab_id, 55 int tab_id,
56 base::TimeDelta timeout, 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,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698