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:
Bjorn Mellem 2017-06-13 15:07:41 -07:00 committed by Commit Bot
parent 1ee2125909
commit 6eb03b81bb

View File

@ -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;