| 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 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" | 5 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "chrome/browser/media/router/media_source.h" | 8 #include "chrome/browser/media/router/media_source.h" |
| 9 #include "chrome/browser/media/router/media_source_helper.h" | 9 #include "chrome/browser/media/router/media_source_helper.h" |
| 10 #include "chrome/browser/media/router/mock_media_router.h" | 10 #include "chrome/browser/media/router/mock_media_router.h" |
| 11 #include "chrome/browser/media/router/mock_screen_availability_listener.h" | 11 #include "chrome/browser/media/router/mock_screen_availability_listener.h" |
| 12 #include "chrome/browser/media/router/route_request_result.h" | 12 #include "chrome/browser/media/router/route_request_result.h" |
| 13 #include "chrome/browser/media/router/test_helper.h" | 13 #include "chrome/browser/media/router/test_helper.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 16 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
| 17 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
| 18 #include "components/prefs/scoped_user_pref_update.h" | 18 #include "components/prefs/scoped_user_pref_update.h" |
| 19 #include "content/public/browser/presentation_screen_availability_listener.h" | 19 #include "content/public/browser/presentation_screen_availability_listener.h" |
| 20 #include "content/public/browser/presentation_session.h" | |
| 21 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
| 22 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "content/public/common/presentation_session.h" |
| 23 #include "content/public/test/web_contents_tester.h" | 23 #include "content/public/test/web_contents_tester.h" |
| 24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 25 #include "url/origin.h" | 25 #include "url/origin.h" |
| 26 | 26 |
| 27 using ::testing::_; | 27 using ::testing::_; |
| 28 using ::testing::Mock; | 28 using ::testing::Mock; |
| 29 using ::testing::Return; | 29 using ::testing::Return; |
| 30 using ::testing::SaveArg; | 30 using ::testing::SaveArg; |
| 31 using ::testing::StrictMock; | 31 using ::testing::StrictMock; |
| 32 | 32 |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 base::Bind(&MockCreatePresentationConnnectionCallbacks:: | 552 base::Bind(&MockCreatePresentationConnnectionCallbacks:: |
| 553 OnCreateConnectionSuccess, | 553 OnCreateConnectionSuccess, |
| 554 base::Unretained(&mock_create_connection_callbacks)), | 554 base::Unretained(&mock_create_connection_callbacks)), |
| 555 base::Bind( | 555 base::Bind( |
| 556 &MockCreatePresentationConnnectionCallbacks::OnCreateConnectionError, | 556 &MockCreatePresentationConnnectionCallbacks::OnCreateConnectionError, |
| 557 base::Unretained(&mock_create_connection_callbacks))); | 557 base::Unretained(&mock_create_connection_callbacks))); |
| 558 } | 558 } |
| 559 #endif // !defined(OS_ANDROID) | 559 #endif // !defined(OS_ANDROID) |
| 560 | 560 |
| 561 } // namespace media_router | 561 } // namespace media_router |
| OLD | NEW |