OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/browser/renderer_host/media/media_stream_requester.h" | 22 #include "content/browser/renderer_host/media/media_stream_requester.h" |
23 #include "content/browser/renderer_host/media/video_capture_host.h" | 23 #include "content/browser/renderer_host/media/video_capture_host.h" |
24 #include "content/browser/renderer_host/media/video_capture_manager.h" | 24 #include "content/browser/renderer_host/media/video_capture_manager.h" |
25 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
26 #include "content/public/test/mock_resource_context.h" | 26 #include "content/public/test/mock_resource_context.h" |
27 #include "content/public/test/test_browser_context.h" | 27 #include "content/public/test/test_browser_context.h" |
28 #include "content/public/test/test_browser_thread_bundle.h" | 28 #include "content/public/test/test_browser_thread_bundle.h" |
29 #include "content/test/test_content_browser_client.h" | 29 #include "content/test/test_content_browser_client.h" |
30 #include "media/audio/mock_audio_manager.h" | 30 #include "media/audio/mock_audio_manager.h" |
31 #include "media/base/media_switches.h" | 31 #include "media/base/media_switches.h" |
32 #include "media/base/video_capture_types.h" | 32 #include "media/capture/video_capture_types.h" |
33 #include "mojo/public/cpp/bindings/binding.h" | 33 #include "mojo/public/cpp/bindings/binding.h" |
34 #include "net/url_request/url_request_context.h" | 34 #include "net/url_request/url_request_context.h" |
35 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
37 | 37 |
38 using ::testing::_; | 38 using ::testing::_; |
39 using ::testing::AnyNumber; | 39 using ::testing::AnyNumber; |
40 using ::testing::DoAll; | 40 using ::testing::DoAll; |
41 using ::testing::InSequence; | 41 using ::testing::InSequence; |
42 using ::testing::Mock; | 42 using ::testing::Mock; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 StartCapture(); | 352 StartCapture(); |
353 | 353 |
354 // When the session is closed via the stream without stopping capture, the | 354 // When the session is closed via the stream without stopping capture, the |
355 // ENDED event is sent. | 355 // ENDED event is sent. |
356 EXPECT_CALL(*this, OnStateChanged(mojom::VideoCaptureState::ENDED)); | 356 EXPECT_CALL(*this, OnStateChanged(mojom::VideoCaptureState::ENDED)); |
357 CloseSession(); | 357 CloseSession(); |
358 base::RunLoop().RunUntilIdle(); | 358 base::RunLoop().RunUntilIdle(); |
359 } | 359 } |
360 | 360 |
361 } // namespace content | 361 } // namespace content |
OLD | NEW |