summaryrefslogtreecommitdiffstats
path: root/content/public/common
diff options
context:
space:
mode:
authorguoweis <guoweis@chromium.org>2015-10-12 11:26:17 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-12 18:27:17 +0000
commit8efb6d898f14b510722fe5e7fd9208d719b2dc59 (patch)
treeddb9bfc57cf642af51db5878c321274053379612 /content/public/common
parenta7eadbb1a8b1c18a93a506eaf5de6be208fc2d53 (diff)
downloadchromium_src-8efb6d898f14b510722fe5e7fd9208d719b2dc59.zip
chromium_src-8efb6d898f14b510722fe5e7fd9208d719b2dc59.tar.gz
chromium_src-8efb6d898f14b510722fe5e7fd9208d719b2dc59.tar.bz2
Add test cases for WebRTC IP Permission check.
1. When permission is granted, with the default values, we should gather non-loopback candidates. 2. When permission is denied, iceServers passed in as [], we should not see any candidates. 3. When permission is denied, iceServers not specified, we should see loopback candidates only. 4. When permission is granted, but multiple-routes is not requested, we should see loopback candidates only. BUG=520101 Review URL: https://codereview.chromium.org/1387673002 Cr-Commit-Position: refs/heads/master@{#353562}
Diffstat (limited to 'content/public/common')
-rw-r--r--content/public/common/content_switches.cc10
-rw-r--r--content/public/common/content_switches.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index aa0cc6d..2a98bdb 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -840,6 +840,11 @@ const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption";
// Disables HW encode acceleration for WebRTC.
const char kDisableWebRtcHWEncoding[] = "disable-webrtc-hw-encoding";
+// Disables Multiple routes option for WebRTC. The default behavior is always
+// requesting multiple routes. This is for test cases to mimic the behavior when
+// multiple routes is disabled from user preferences.
+const char kDisableWebRtcMultipleRoutes[] = "disable-webrtc-multiple-routes";
+
// Enables negotiation of DTLS 1.2 for WebRTC.
const char kEnableWebRtcDtls12[] = "enable-webrtc-dtls12";
@@ -849,6 +854,11 @@ const char kEnableWebRtcHWH264Encoding[] = "enable-webrtc-hw-h264-encoding";
// Enables Origin header in Stun messages for WebRTC.
const char kEnableWebRtcStunOrigin[] = "enable-webrtc-stun-origin";
+// Enforce IP Permission check. TODO(guoweis): Remove this once the feature is
+// not under finch and becomes the default.
+const char kEnforceWebRtcIPPermissionCheck[] =
+ "enforce-webrtc-ip-permission-check";
+
// Renderer process parameter for WebRTC Stun probe trial to determine the
// interval. Please see SetupStunProbeTrial in
// chrome_browser_field_trials_desktop.cc for more detail.
diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h
index fe4a2fc..7812dc6 100644
--- a/content/public/common/content_switches.h
+++ b/content/public/common/content_switches.h
@@ -244,9 +244,11 @@ CONTENT_EXPORT extern const char kZygoteProcess[];
CONTENT_EXPORT extern const char kDisableWebRtcHWDecoding[];
CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
CONTENT_EXPORT extern const char kDisableWebRtcHWEncoding[];
+CONTENT_EXPORT extern const char kDisableWebRtcMultipleRoutes[];
CONTENT_EXPORT extern const char kEnableWebRtcDtls12[];
CONTENT_EXPORT extern const char kEnableWebRtcHWH264Encoding[];
CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
+CONTENT_EXPORT extern const char kEnforceWebRtcIPPermissionCheck[];
CONTENT_EXPORT extern const char kWebRtcStunProbeTrialParameter[];
extern const char kWebRtcMaxCaptureFramerate[];
#endif