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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
16 #include "content/browser/mock_resource_context.h" | |
17 #include "content/browser/renderer_host/media/media_stream_manager.h" | 16 #include "content/browser/renderer_host/media/media_stream_manager.h" |
18 #include "content/browser/renderer_host/media/video_capture_host.h" | 17 #include "content/browser/renderer_host/media/video_capture_host.h" |
19 #include "content/browser/renderer_host/media/video_capture_manager.h" | 18 #include "content/browser/renderer_host/media/video_capture_manager.h" |
20 #include "content/common/media/video_capture_messages.h" | 19 #include "content/common/media/video_capture_messages.h" |
| 20 #include "content/test/mock_resource_context.h" |
21 #include "media/audio/audio_manager.h" | 21 #include "media/audio/audio_manager.h" |
22 #include "media/video/capture/video_capture_types.h" | 22 #include "media/video/capture/video_capture_types.h" |
| 23 #include "net/url_request/url_request_context.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
25 | 26 |
26 using ::testing::_; | 27 using ::testing::_; |
27 using ::testing::AtLeast; | 28 using ::testing::AtLeast; |
28 using ::testing::AnyNumber; | 29 using ::testing::AnyNumber; |
29 using ::testing::DoAll; | 30 using ::testing::DoAll; |
30 using ::testing::InSequence; | 31 using ::testing::InSequence; |
31 using ::testing::Mock; | 32 using ::testing::Mock; |
32 using ::testing::Return; | 33 using ::testing::Return; |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 } | 397 } |
397 | 398 |
398 #ifdef DUMP_VIDEO | 399 #ifdef DUMP_VIDEO |
399 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) { | 400 TEST_F(VideoCaptureHostTest, CaptureAndDumpVideoVga) { |
400 CaptureAndDumpVideo(640, 480, 30); | 401 CaptureAndDumpVideo(640, 480, 30); |
401 } | 402 } |
402 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) { | 403 TEST_F(VideoCaptureHostTest, CaptureAndDump720P) { |
403 CaptureAndDumpVideo(1280, 720, 30); | 404 CaptureAndDumpVideo(1280, 720, 30); |
404 } | 405 } |
405 #endif | 406 #endif |
OLD | NEW |