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

Unified Diff: content/browser/renderer_host/media/media_stream_device_settings.h

Issue 7314022: Adding possibility to bypass MediaStream UI to be able to rununit tests on server. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 5 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 | « no previous file | content/browser/renderer_host/media/media_stream_device_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/media_stream_device_settings.h
===================================================================
--- content/browser/renderer_host/media/media_stream_device_settings.h (revision 91703)
+++ content/browser/renderer_host/media/media_stream_device_settings.h (working copy)
@@ -58,6 +58,11 @@
void AvailableDevices(const std::string& label, MediaStreamType stream_type,
const StreamDeviceInfoArray& devices);
+ // Used for testing only. This function is called to use faked UI, which is
+ // needed for server based tests. The first non-opened device(s) will be
+ // picked.
+ void UseFakeUI();
+
private:
struct SettingsRequest;
@@ -66,6 +71,8 @@
typedef std::map<std::string, SettingsRequest*> SettingsRequests;
SettingsRequests requests_;
+ bool use_fake_ui_;
+
DISALLOW_COPY_AND_ASSIGN(MediaStreamDeviceSettings);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_device_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698