Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: content/test/content_test_launcher.cc

Issue 10919095: content_browsertests will now use fake webrtc devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_test_launcher.cc
diff --git a/content/test/content_test_launcher.cc b/content/test/content_test_launcher.cc
index 5ab191055bde98f4dab0f44d7fdd21f7914f5d53..8ea54b1151614bd9bb3e4467dd1a2b86e37ebdf6 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);
}
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698