Remove dependency on gunit headers in virtualsocketserver.
BUG=7810 Change-Id: I66d9aeaca2dd81c20f78052a15ea3680e23a1501 Reviewed-on: https://chromium-review.googlesource.com/534354 Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#18579}
This commit is contained in:
parent
1ee2125909
commit
6eb03b81bb
@ -19,7 +19,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/gunit.h"
|
||||
#include "webrtc/base/fakeclock.h"
|
||||
#include "webrtc/base/logging.h"
|
||||
#include "webrtc/base/physicalsocketserver.h"
|
||||
#include "webrtc/base/socketaddresspair.h"
|
||||
@ -648,9 +648,8 @@ bool VirtualSocketServer::ProcessMessagesUntilIdle() {
|
||||
while (!msg_queue_->empty()) {
|
||||
if (fake_clock_) {
|
||||
// If using a fake clock, advance it in millisecond increments until the
|
||||
// queue is empty (the SIMULATED_WAIT macro ensures the queue processes
|
||||
// all possible messages each time it's called).
|
||||
SIMULATED_WAIT(false, 1, *fake_clock_);
|
||||
// queue is empty.
|
||||
fake_clock_->AdvanceTime(rtc::TimeDelta::FromMilliseconds(1));
|
||||
} else {
|
||||
// Otherwise, run a normal message loop.
|
||||
Message msg;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user