Index: webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc |
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc b/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc |
index 2e8625484a206e563cab274c64326dd738948b47..52f15835d8a2a5c3b81b64561e639ffdbf407af1 100644 |
--- a/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc |
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc |
@@ -359,6 +359,27 @@ TEST(ControllerManagerTest, CreateFromConfigStringAndCheckDefaultOrder) { |
ControllerType::FRAME_LENGTH, ControllerType::BIT_RATE}); |
} |
+TEST(ControllerManagerTest, CreateCharPointFreeConfigAndCheckDefaultOrder) { |
+ audio_network_adaptor::config::ControllerManager config; |
+ |
+ // Following controllers have no characteristic points. |
+ AddChannelControllerConfig(&config); |
+ AddDtxControllerConfig(&config); |
+ AddBitrateControllerConfig(&config); |
+ |
+ ProtoString config_string; |
+ config.SerializeToString(&config_string); |
+ |
+ auto states = CreateControllerManager(config_string); |
+ Controller::NetworkMetrics metrics; |
+ |
+ auto controllers = states.controller_manager->GetSortedControllers(metrics); |
+ CheckControllersOrder( |
+ controllers, |
+ std::vector<ControllerType>{ControllerType::CHANNEL, ControllerType::DTX, |
+ ControllerType::BIT_RATE}); |
+} |
+ |
TEST(ControllerManagerTest, CreateFromConfigStringAndCheckReordering) { |
rtc::ScopedFakeClock fake_clock; |
audio_network_adaptor::config::ControllerManager config; |