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

Unified Diff: webrtc/base/physicalsocketserver_unittest.cc

Issue 2828223002: Delete method MessageQueue::set_socketserver (Closed)
Patch Set: Delete redundant private: Created 3 years, 8 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/base/physicalsocketserver_unittest.cc
diff --git a/webrtc/base/physicalsocketserver_unittest.cc b/webrtc/base/physicalsocketserver_unittest.cc
index de0d485289a9d11f4b54f88b18a585ea0230af6e..38e6223049ed8ee27f09cead72bdb307ebd86b53 100644
--- a/webrtc/base/physicalsocketserver_unittest.cc
+++ b/webrtc/base/physicalsocketserver_unittest.cc
@@ -115,16 +115,17 @@ class PhysicalSocketTest : public SocketTest {
protected:
PhysicalSocketTest()
: server_(new FakePhysicalSocketServer(this)),
- scope_(server_.get()),
+ thread_(server_.get()),
fail_accept_(false),
max_send_size_(-1) {
+ rtc::ThreadManager::Instance()->SetCurrentThread(&thread_);
Taylor Brandstetter 2017/04/28 02:59:34 Doesn't AutoSocketServerThread already do this?
nisse-webrtc 2017/04/28 09:46:52 Good catch, this is a left-older from an earlier v
}
void ConnectInternalAcceptError(const IPAddress& loopback);
void WritableAfterPartialWrite(const IPAddress& loopback);
std::unique_ptr<FakePhysicalSocketServer> server_;
- SocketServerScope scope_;
+ rtc::AutoSocketServerThread thread_;
bool fail_accept_;
int max_send_size_;
};

Powered by Google App Engine
This is Rietveld 408576698