summaryrefslogtreecommitdiffstats
path: root/content/test/content_test_launcher.cc
diff options
context:
space:
mode:
authorphoglund@chromium.org <phoglund@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-09 12:00:24 +0000
committerphoglund@chromium.org <phoglund@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-09 12:00:24 +0000
commit13f43f18b6de6999addb4f7f4ff8a1017570e996 (patch)
treef3469ae4d94f6eacd32ff9383485ece45e17d5f2 /content/test/content_test_launcher.cc
parent21a0b805858e25ca56074f37625108baa15eccb4 (diff)
downloadchromium_src-13f43f18b6de6999addb4f7f4ff8a1017570e996.zip
chromium_src-13f43f18b6de6999addb4f7f4ff8a1017570e996.tar.gz
chromium_src-13f43f18b6de6999addb4f7f4ff8a1017570e996.tar.bz2
content_browsertests will now use fake webrtc devices.
BUG= Review URL: https://chromiumcodereview.appspot.com/10919095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/content_test_launcher.cc')
-rw-r--r--content/test/content_test_launcher.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/test/content_test_launcher.cc b/content/test/content_test_launcher.cc
index 5ab1910..8ea54b1 100644
--- a/content/test/content_test_launcher.cc
+++ b/content/test/content_test_launcher.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/test/test_suite.h"
+#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/public/app/content_main.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/content_test_suite_base.h"
@@ -134,6 +135,10 @@ class ContentTestLauncherDelegate : public test_launcher::TestLauncherDelegate {
} // namespace content
int main(int argc, char** argv) {
+ // Always use fake WebRTC devices in this binary since we want to be able
+ // to test WebRTC even if we don't have any devices on the system.
+ media_stream::MediaStreamManager::AlwaysUseFakeDevice();
+
content::ContentTestLauncherDelegate launcher_delegate;
return test_launcher::LaunchTests(&launcher_delegate, argc, argv);
}