| 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 "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
| 8 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
| 9 #include "content/public/browser/desktop_media_id.h" | 9 #include "content/public/browser/desktop_media_id.h" |
| 10 #include "media/video/capture/video_capture_types.h" | 10 #include "media/base/video_capture_types.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/aura/client/window_tree_client.h" | 13 #include "ui/aura/client/window_tree_client.h" |
| 14 #include "ui/aura/test/aura_test_helper.h" | 14 #include "ui/aura/test/aura_test_helper.h" |
| 15 #include "ui/aura/test/test_window_delegate.h" | 15 #include "ui/aura/test/test_window_delegate.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/compositor/test/context_factories_for_test.h" | 17 #include "ui/compositor/test/context_factories_for_test.h" |
| 18 #include "ui/wm/core/default_activation_client.h" | 18 #include "ui/wm/core/default_activation_client.h" |
| 19 | 19 |
| 20 using ::testing::_; | 20 using ::testing::_; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 media::VideoCaptureParams capture_params; | 114 media::VideoCaptureParams capture_params; |
| 115 capture_params.requested_format.frame_size.SetSize(640, 480); | 115 capture_params.requested_format.frame_size.SetSize(640, 480); |
| 116 capture_params.requested_format.frame_rate = kFrameRate; | 116 capture_params.requested_format.frame_rate = kFrameRate; |
| 117 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; | 117 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; |
| 118 capture_device->AllocateAndStart(capture_params, client.Pass()); | 118 capture_device->AllocateAndStart(capture_params, client.Pass()); |
| 119 capture_device->StopAndDeAllocate(); | 119 capture_device->StopAndDeAllocate(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace | 122 } // namespace |
| 123 } // namespace content | 123 } // namespace content |
| OLD | NEW |