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

Unified Diff: webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc

Issue 2717973005: Test field trial group with startswith rather than equals. (Closed)
Patch Set: Added IsEnabled() convenience function Created 3 years, 10 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
Index: webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc
diff --git a/webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc b/webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc
index 23f43b5426caec33e6fe5b5d9de37e5011357e51..e64def43911129f74f7a2b1d775d0a265748c45a 100644
--- a/webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc
+++ b/webrtc/modules/audio_coding/neteq/test/neteq_performance_unittest.cc
@@ -22,7 +22,7 @@ TEST(NetEqPerformanceTest, Run) {
const int kLossPeriod = 10; // Drop every 10th packet.
const double kDriftFactor = 0.1;
int64_t runtime = webrtc::test::NetEqPerformanceTest::Run(
- webrtc::field_trial::FindFullName("WebRTC-QuickPerfTest") == "Enabled"
+ webrtc::field_trial::IsEnabled("WebRTC-QuickPerfTest")
? kQuickSimulationTimeMs
: kSimulationTimeMs,
kLossPeriod, kDriftFactor);
@@ -40,7 +40,7 @@ TEST(NetEqPerformanceTest, RunClean) {
const int kLossPeriod = 0; // No losses.
const double kDriftFactor = 0.0; // No clock drift.
int64_t runtime = webrtc::test::NetEqPerformanceTest::Run(
- webrtc::field_trial::FindFullName("WebRTC-QuickPerfTest") == "Enabled"
+ webrtc::field_trial::IsEnabled("WebRTC-QuickPerfTest")
? kQuickSimulationTimeMs
: kSimulationTimeMs,
kLossPeriod, kDriftFactor);

Powered by Google App Engine
This is Rietveld 408576698