diff options
author | mcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-09 13:53:32 +0000 |
---|---|---|
committer | mcasas@chromium.org <mcasas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-09 13:53:32 +0000 |
commit | 4669e6887f7c5d95e0c5f9a5346bd29fba0954ca (patch) | |
tree | e6868ecf6a2e6b91d591f3f884f4f9a939ccdba5 /content/browser/media/webrtc_browsertest.cc | |
parent | f6c52338609c76cf8b7b68fafd27834e48d10f90 (diff) | |
download | chromium_src-4669e6887f7c5d95e0c5f9a5346bd29fba0954ca.zip chromium_src-4669e6887f7c5d95e0c5f9a5346bd29fba0954ca.tar.gz chromium_src-4669e6887f7c5d95e0c5f9a5346bd29fba0954ca.tar.bz2 |
Mac Video Capture Device: split VCD into VCD and Factory.
VideoCaptureDeviceMac includes factory and non-factory parts.
This CL splits them into VideoCaptureDeviceMac and
VideoCaptureDeviceFactoryMac. The latter inherits the previous
class' static methods: Create(), GetDeviceNames() and
GetDeviceSupportedFormats().
All video factory code previously in MediaStreamManager is
moved into VideoCaptureFactory. This includes the use
of the flag |kUseFakeDeviceForMediaStream|.
This flag is moved correspondingly into media_switches.cc --
(but note that this flag is still used in MediaStreamManager for
the Fake Audio parts). File media_switches.cc is
included in several test files where the flag is used.
VideoCaptureDeviceTest is splitted as well into:
a) Tests that were exercising only the FakeVCD
(FakeVideoCaptureDeviceTest).
b) All other tests, that use the underlying OS webcam.
This VideoCaptureDeviceTest gets a Factory and uses it
instead of static methods.
A unit test is added to VCDFMac, doing little for the moment
but I'm planning to add support for testing at least the
blacklisting -- req from rsesek@ in another CL.
BUG=288562, 323913, 255552
Review URL: https://codereview.chromium.org/265263004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/media/webrtc_browsertest.cc')
-rw-r--r-- | content/browser/media/webrtc_browsertest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/media/webrtc_browsertest.cc b/content/browser/media/webrtc_browsertest.cc index 69fd5c0..912ec96 100644 --- a/content/browser/media/webrtc_browsertest.cc +++ b/content/browser/media/webrtc_browsertest.cc @@ -16,6 +16,7 @@ #include "content/shell/browser/shell.h" #include "content/test/webrtc_content_browsertest_base.h" #include "media/audio/audio_manager.h" +#include "media/base/media_switches.h" #include "net/test/embedded_test_server/embedded_test_server.h" #if defined(OS_WIN) |