| 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 "content/browser/presentation/presentation_service_impl.h" | 5 #include "content/browser/presentation/presentation_service_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/test/test_timeouts.h" | 18 #include "base/test/test_timeouts.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "content/public/browser/presentation_service_delegate.h" | 20 #include "content/public/browser/presentation_service_delegate.h" |
| 21 #include "content/public/browser/presentation_session.h" | |
| 22 #include "content/public/common/presentation_constants.h" | 21 #include "content/public/common/presentation_constants.h" |
| 22 #include "content/public/common/presentation_session.h" |
| 23 #include "content/test/test_render_frame_host.h" | 23 #include "content/test/test_render_frame_host.h" |
| 24 #include "content/test/test_render_view_host.h" | 24 #include "content/test/test_render_view_host.h" |
| 25 #include "content/test/test_web_contents.h" | 25 #include "content/test/test_web_contents.h" |
| 26 #include "mojo/public/cpp/bindings/interface_ptr.h" | 26 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
| 28 | 28 |
| 29 using ::testing::_; | 29 using ::testing::_; |
| 30 using ::testing::ByRef; | 30 using ::testing::ByRef; |
| 31 using ::testing::Eq; | 31 using ::testing::Eq; |
| 32 using ::testing::InvokeWithoutArgs; | 32 using ::testing::InvokeWithoutArgs; |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 mock_delegate_.set_screen_availability_listening_supported(false); | 865 mock_delegate_.set_screen_availability_listening_supported(false); |
| 866 base::RunLoop run_loop; | 866 base::RunLoop run_loop; |
| 867 EXPECT_CALL(mock_client_, | 867 EXPECT_CALL(mock_client_, |
| 868 OnScreenAvailabilityNotSupported(presentation_url1_)) | 868 OnScreenAvailabilityNotSupported(presentation_url1_)) |
| 869 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); | 869 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); |
| 870 ListenForScreenAvailabilityAndWait(presentation_url1_, false); | 870 ListenForScreenAvailabilityAndWait(presentation_url1_, false); |
| 871 run_loop.Run(); | 871 run_loop.Run(); |
| 872 } | 872 } |
| 873 | 873 |
| 874 } // namespace content | 874 } // namespace content |
| OLD | NEW |