| 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 "content/browser/renderer_host/media/video_capture_host.h" | 5 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 #if defined(OS_CHROMEOS) | 309 #if defined(OS_CHROMEOS) |
| 310 chromeos::CrasAudioHandler::Shutdown(); | 310 chromeos::CrasAudioHandler::Shutdown(); |
| 311 #endif | 311 #endif |
| 312 } | 312 } |
| 313 | 313 |
| 314 void OpenSession() { | 314 void OpenSession() { |
| 315 const int render_process_id = 1; | 315 const int render_process_id = 1; |
| 316 const int render_frame_id = 1; | 316 const int render_frame_id = 1; |
| 317 const int page_request_id = 1; | 317 const int page_request_id = 1; |
| 318 const GURL security_origin("http://test.com"); | 318 const url::Origin security_origin(GURL("http://test.com")); |
| 319 | 319 |
| 320 ASSERT_TRUE(opened_device_label_.empty()); | 320 ASSERT_TRUE(opened_device_label_.empty()); |
| 321 | 321 |
| 322 // Enumerate video devices. | 322 // Enumerate video devices. |
| 323 StreamDeviceInfoArray devices; | 323 StreamDeviceInfoArray devices; |
| 324 { | 324 { |
| 325 base::RunLoop run_loop; | 325 base::RunLoop run_loop; |
| 326 std::string label = media_stream_manager_->EnumerateDevices( | 326 std::string label = media_stream_manager_->EnumerateDevices( |
| 327 &stream_requester_, | 327 &stream_requester_, |
| 328 render_process_id, | 328 render_process_id, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 #ifdef DUMP_VIDEO | 541 #ifdef DUMP_VIDEO |
| 542 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) { | 542 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) { |
| 543 CaptureAndDumpVideo(640, 480, 30); | 543 CaptureAndDumpVideo(640, 480, 30); |
| 544 } | 544 } |
| 545 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) { | 545 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) { |
| 546 CaptureAndDumpVideo(1280, 720, 30); | 546 CaptureAndDumpVideo(1280, 720, 30); |
| 547 } | 547 } |
| 548 #endif | 548 #endif |
| 549 | 549 |
| 550 } // namespace content | 550 } // namespace content |
| OLD | NEW |