Update the call when the network route changes
so that BWE can be updated promptly.
BUG=webrtc:5726
R=mflodman@webrtc.org, pbos@webrtc.org, pthatcher@google.com, pthatcher@webrtc.org, stefan@webrtc.org
Review URL: https://codereview.webrtc.org/1844773002 .
Cr-Commit-Position: refs/heads/master@{#12432}
diff --git a/webrtc/media/base/fakemediaengine.h b/webrtc/media/base/fakemediaengine.h
index fbd8f4c..24c4106 100644
--- a/webrtc/media/base/fakemediaengine.h
+++ b/webrtc/media/base/fakemediaengine.h
@@ -179,7 +179,7 @@
return ready_to_send_;
}
- NetworkRoute last_network_route() const { return last_network_route_; }
+ rtc::NetworkRoute last_network_route() const { return last_network_route_; }
int num_network_route_changes() const { return num_network_route_changes_; }
void set_num_network_route_changes(int changes) {
num_network_route_changes_ = changes;
@@ -224,7 +224,7 @@
ready_to_send_ = ready;
}
virtual void OnNetworkRouteChanged(const std::string& transport_name,
- const NetworkRoute& network_route) {
+ const rtc::NetworkRoute& network_route) {
last_network_route_ = network_route;
++num_network_route_changes_;
}
@@ -247,7 +247,7 @@
uint32_t send_ssrc_;
std::string rtcp_cname_;
bool ready_to_send_;
- NetworkRoute last_network_route_;
+ rtc::NetworkRoute last_network_route_;
int num_network_route_changes_ = 0;
};