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

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

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 years, 5 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 19 matching lines...) Expand all
30 MockMediaRouteProvider(); 30 MockMediaRouteProvider();
31 ~MockMediaRouteProvider() override; 31 ~MockMediaRouteProvider() override;
32 32
33 MOCK_METHOD8(CreateRoute, 33 MOCK_METHOD8(CreateRoute,
34 void(const mojo::String& source_urn, 34 void(const mojo::String& source_urn,
35 const mojo::String& sink_id, 35 const mojo::String& sink_id,
36 const mojo::String& presentation_id, 36 const mojo::String& presentation_id,
37 const mojo::String& origin, 37 const mojo::String& origin,
38 int tab_id, 38 int tab_id,
39 int64_t timeout_secs, 39 int64_t timeout_secs,
40 bool off_the_record, 40 bool incognito,
41 const CreateRouteCallback& callback)); 41 const CreateRouteCallback& callback));
42 MOCK_METHOD7(JoinRoute, 42 MOCK_METHOD7(JoinRoute,
43 void(const mojo::String& source_urn, 43 void(const mojo::String& source_urn,
44 const mojo::String& presentation_id, 44 const mojo::String& presentation_id,
45 const mojo::String& origin, 45 const mojo::String& origin,
46 int tab_id, 46 int tab_id,
47 int64_t timeout_secs, 47 int64_t timeout_secs,
48 bool off_the_record, 48 bool incognito,
49 const JoinRouteCallback& callback)); 49 const JoinRouteCallback& callback));
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 incognito,
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_METHOD2(TerminateRoute, void(const mojo::String& route_id, 60 MOCK_METHOD2(TerminateRoute, void(const mojo::String& route_id,
61 const TerminateRouteCallback& callback)); 61 const TerminateRouteCallback& callback));
62 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source)); 62 MOCK_METHOD1(StartObservingMediaSinks, void(const mojo::String& source));
63 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source)); 63 MOCK_METHOD1(StopObservingMediaSinks, void(const mojo::String& source));
64 MOCK_METHOD3(SendRouteMessage, 64 MOCK_METHOD3(SendRouteMessage,
65 void(const mojo::String& media_route_id, 65 void(const mojo::String& media_route_id,
66 const mojo::String& message, 66 const mojo::String& message,
67 const SendRouteMessageCallback& callback)); 67 const SendRouteMessageCallback& callback));
(...skipping 76 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<interfaces::MediaRouteProvider>> binding_; 146 std::unique_ptr<mojo::Binding<interfaces::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