| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 void TearDown() override; | 243 void TearDown() override; |
| 244 | 244 |
| 245 void ProcessEventLoop(); | 245 void ProcessEventLoop(); |
| 246 | 246 |
| 247 void ConnectProviderManagerService(); | 247 void ConnectProviderManagerService(); |
| 248 | 248 |
| 249 const std::string& extension_id() const { return extension_->id(); } | 249 const std::string& extension_id() const { return extension_->id(); } |
| 250 | 250 |
| 251 MediaRouterMojoImpl* router() const { return mock_media_router_.get(); } | 251 MediaRouterMojoImpl* router() const { return mock_media_router_.get(); } |
| 252 | 252 |
| 253 Profile* profile() { return &profile_; } |
| 254 |
| 253 // Mock objects. | 255 // Mock objects. |
| 254 MockMediaRouteProvider mock_media_route_provider_; | 256 MockMediaRouteProvider mock_media_route_provider_; |
| 255 testing::NiceMock<MockEventPageTracker> mock_event_page_tracker_; | |
| 256 | 257 |
| 257 // Mojo proxy object for |mock_media_router_| | 258 // Mojo proxy object for |mock_media_router_| |
| 258 media_router::mojom::MediaRouterPtr media_router_proxy_; | 259 media_router::mojom::MediaRouterPtr media_router_proxy_; |
| 259 | 260 |
| 260 RegisterMediaRouteProviderHandler provide_handler_; | 261 RegisterMediaRouteProviderHandler provide_handler_; |
| 261 | 262 |
| 262 private: | 263 private: |
| 263 content::TestBrowserThreadBundle test_thread_bundle_; | 264 content::TestBrowserThreadBundle test_thread_bundle_; |
| 264 scoped_refptr<extensions::Extension> extension_; | 265 scoped_refptr<extensions::Extension> extension_; |
| 265 TestingProfile profile_; | 266 TestingProfile profile_; |
| 266 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; | 267 std::unique_ptr<MediaRouterMojoImpl> mock_media_router_; |
| 267 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; | 268 std::unique_ptr<mojo::Binding<mojom::MediaRouteProvider>> binding_; |
| 268 | 269 |
| 269 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); | 270 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest); |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 } // namespace media_router | 273 } // namespace media_router |
| 273 | 274 |
| 274 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ | 275 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_TEST_H_ |
| OLD | NEW |