|
Extract VideoCaptureDeviceFactory out of VideoCaptureDevice and use for File and FakeVCD.
VideoCaptureDeviceFactory is owned by VideoCaptureManager.
VideoCaptureManager gets a VCDF on construction. This
can be a real devices factory or a test one (Fake/File).
All VCM operations previously static are now made
through the Factory API regardless of the type.
The previous MSM::UseFakeDevice() disappears and
unittests MediaStreamDispatcherHostTest,
MediaStreamManagerTest, VideoCaptureHostTest,
add the --use-fake-device-for-media-stream flag
to command line and depend on MSM reacting to it
via injecting a fake factory to VCM on creation.
Those tests also retrieve a weak reference to the
Fake Factory to manipulate it.
FakeVideoCapture::SetFailNextCreate() and associated
member are removed, unused.
BUG= 323913
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266380
Total comments: 16
Total comments: 18
Total comments: 22
Total comments: 21
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+420 lines, -288 lines) |
Patch |
 |
M |
content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
View
|
1
2
3
4
|
8 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.h
|
View
|
1
2
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_manager_unittest.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host_unittest.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager.h
|
View
|
1
2
3
4
|
6 chunks |
+12 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager.cc
|
View
|
1
2
|
7 chunks |
+9 lines, -56 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/media.gyp
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/fake_video_capture_device.h
|
View
|
1
2
3
|
2 chunks |
+14 lines, -25 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/fake_video_capture_device.cc
|
View
|
1
2
3
|
4 chunks |
+8 lines, -77 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/fake_video_capture_device_factory.h
|
View
|
1
2
3
4
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/fake_video_capture_device_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/file_video_capture_device.h
|
View
|
|
2 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/file_video_capture_device.cc
|
View
|
1
|
3 chunks |
+5 lines, -49 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/file_video_capture_device_factory.h
|
View
|
1
2
3
4
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/file_video_capture_device_factory.cc
|
View
|
1
2
3
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/video_capture_device_factory.h
|
View
|
1
2
3
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
media/video/capture/video_capture_device_factory.cc
|
View
|
1
2
3
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/video/capture/video_capture_device_unittest.cc
|
View
|
1
2
3
|
8 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|