Make some constants in the bitrate prober configurable.

This lets us change how many bytes and packets goes into the probes, as
well as some other things.

Bug: webrtc:10394
Change-Id: I26bb26a644e6f00366e9275228760c8744d63735
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128424
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27312}
diff --git a/modules/congestion_controller/goog_cc/probe_controller.cc b/modules/congestion_controller/goog_cc/probe_controller.cc
index dfcb7f6..e5a6d1f 100644
--- a/modules/congestion_controller/goog_cc/probe_controller.cc
+++ b/modules/congestion_controller/goog_cc/probe_controller.cc
@@ -73,9 +73,6 @@
 // Never probe higher than configured by OnMaxTotalAllocatedBitrate().
 constexpr char kCappedProbingFieldTrialName[] = "WebRTC-BweCappedProbing";
 
-constexpr char kConfigurableProbingFieldTrialName[] =
-    "WebRTC-Bwe-ConfigurableProbing";
-
 void MaybeLogProbeClusterCreated(RtcEventLog* event_log,
                                  const ProbeClusterConfig& probe) {
   RTC_DCHECK(event_log);
@@ -104,7 +101,7 @@
       {&first_exponential_probe_scale_, &second_exponential_probe_scale_,
        &further_exponential_probe_scale_, &further_probe_threshold,
        &alr_probing_interval_, &alr_probe_scale_},
-      key_value_config->Lookup(kConfigurableProbingFieldTrialName));
+      key_value_config->Lookup("WebRTC-Bwe-ProbingConfiguration"));
 }
 
 ProbeControllerConfig::ProbeControllerConfig(const ProbeControllerConfig&) =
diff --git a/modules/congestion_controller/goog_cc/probe_controller_unittest.cc b/modules/congestion_controller/goog_cc/probe_controller_unittest.cc
index 04dc440..7aba8e1 100644
--- a/modules/congestion_controller/goog_cc/probe_controller_unittest.cc
+++ b/modules/congestion_controller/goog_cc/probe_controller_unittest.cc
@@ -314,7 +314,7 @@
 
 TEST_F(ProbeControllerTest, ConfigurableProbingFieldTrial) {
   test::ScopedFieldTrials trials(
-      "WebRTC-Bwe-ConfigurableProbing/"
+      "WebRTC-Bwe-ProbingConfiguration/"
       "p1:2,p2:5,step_size:3,further_probe_threshold:0.8/");
   probe_controller_.reset(
       new ProbeController(&field_trial_config_, &mock_rtc_event_log));