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/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" | 21 #include "content/public/browser/presentation_session.h" |
22 #include "content/public/common/presentation_constants.h" | 22 #include "content/public/common/presentation_constants.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 "mojo/public/cpp/bindings/string.h" | 27 #include "mojo/public/cpp/bindings/string.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
29 | 29 |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 mock_delegate_.set_screen_availability_listening_supported(false); | 840 mock_delegate_.set_screen_availability_listening_supported(false); |
841 base::RunLoop run_loop; | 841 base::RunLoop run_loop; |
842 EXPECT_CALL(mock_client_, | 842 EXPECT_CALL(mock_client_, |
843 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl))) | 843 OnScreenAvailabilityNotSupported(Eq(kPresentationUrl))) |
844 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); | 844 .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); |
845 ListenForScreenAvailabilityAndWait(kPresentationUrl, false); | 845 ListenForScreenAvailabilityAndWait(kPresentationUrl, false); |
846 run_loop.Run(); | 846 run_loop.Run(); |
847 } | 847 } |
848 | 848 |
849 } // namespace content | 849 } // namespace content |
OLD | NEW |