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

Unified Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1895813003: Renames TransportController worker_thread to network_thread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/faketransportcontroller.h
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h
index 1ed3fd85e66913b244606b82f8bec443d3cec06d..321537dd59be79b5e3efa2d9349f1c82c7c544a2 100644
--- a/webrtc/p2p/base/faketransportcontroller.h
+++ b/webrtc/p2p/base/faketransportcontroller.h
@@ -511,22 +511,22 @@ class FakeTransportController : public TransportController {
SetIceRole(role);
}
- FakeTransport* GetTransport_w(const std::string& transport_name) {
+ FakeTransport* GetTransport_n(const std::string& transport_name) {
return static_cast<FakeTransport*>(
- TransportController::GetTransport_w(transport_name));
+ TransportController::GetTransport_n(transport_name));
}
void Connect(FakeTransportController* dest) {
- worker_thread()->Invoke<void>(
- rtc::Bind(&FakeTransportController::Connect_w, this, dest));
+ network_thread()->Invoke<void>(
+ rtc::Bind(&FakeTransportController::Connect_n, this, dest));
}
- TransportChannel* CreateTransportChannel_w(const std::string& transport_name,
+ TransportChannel* CreateTransportChannel_n(const std::string& transport_name,
int component) override {
if (fail_create_channel_) {
return nullptr;
}
- return TransportController::CreateTransportChannel_w(transport_name,
+ return TransportController::CreateTransportChannel_n(transport_name,
component);
}
@@ -547,21 +547,21 @@ class FakeTransportController : public TransportController {
}
protected:
- Transport* CreateTransport_w(const std::string& transport_name) override {
+ Transport* CreateTransport_n(const std::string& transport_name) override {
return new FakeTransport(transport_name);
}
- void Connect_w(FakeTransportController* dest) {
+ void Connect_n(FakeTransportController* dest) {
// Simulate the exchange of candidates.
- ConnectChannels_w();
- dest->ConnectChannels_w();
+ ConnectChannels_n();
+ dest->ConnectChannels_n();
for (auto& kv : transports()) {
FakeTransport* transport = static_cast<FakeTransport*>(kv.second);
- transport->SetDestination(dest->GetTransport_w(kv.first));
+ transport->SetDestination(dest->GetTransport_n(kv.first));
}
}
- void ConnectChannels_w() {
+ void ConnectChannels_n() {
TransportDescription faketransport_desc(
std::vector<std::string>(),
rtc::CreateRandomString(cricket::ICE_UFRAG_LENGTH),
« no previous file with comments | « no previous file | webrtc/p2p/base/transportcontroller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698