OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/media/capture/desktop_capture_device_aura.h" | 5 #include "content/browser/media/capture/desktop_capture_device_aura.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "content/browser/browser_thread_impl.h" | 14 #include "content/browser/browser_thread_impl.h" |
15 #include "content/public/browser/desktop_media_id.h" | 15 #include "content/public/browser/desktop_media_id.h" |
16 #include "media/base/video_capture_types.h" | 16 #include "media/capture/video_capture_types.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/aura/client/window_parenting_client.h" | 19 #include "ui/aura/client/window_parenting_client.h" |
20 #include "ui/aura/test/aura_test_helper.h" | 20 #include "ui/aura/test/aura_test_helper.h" |
21 #include "ui/aura/test/test_window_delegate.h" | 21 #include "ui/aura/test/test_window_delegate.h" |
22 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
23 #include "ui/compositor/test/context_factories_for_test.h" | 23 #include "ui/compositor/test/context_factories_for_test.h" |
24 #include "ui/wm/core/default_activation_client.h" | 24 #include "ui/wm/core/default_activation_client.h" |
25 | 25 |
26 using ::testing::_; | 26 using ::testing::_; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 media::VideoCaptureParams capture_params; | 153 media::VideoCaptureParams capture_params; |
154 capture_params.requested_format.frame_size.SetSize(640, 480); | 154 capture_params.requested_format.frame_size.SetSize(640, 480); |
155 capture_params.requested_format.frame_rate = kFrameRate; | 155 capture_params.requested_format.frame_rate = kFrameRate; |
156 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; | 156 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; |
157 capture_device->AllocateAndStart(capture_params, std::move(client)); | 157 capture_device->AllocateAndStart(capture_params, std::move(client)); |
158 capture_device->StopAndDeAllocate(); | 158 capture_device->StopAndDeAllocate(); |
159 } | 159 } |
160 | 160 |
161 } // namespace | 161 } // namespace |
162 } // namespace content | 162 } // namespace content |
OLD | NEW |