| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "net/third_party/quiche/src/quic/test_tools/simulator/actor.h" |
| #include "net/third_party/quiche/src/quic/test_tools/simulator/simulator.h" |
| Actor::Actor(Simulator* simulator, QuicString name) |
| clock_(simulator->GetClock()), |
| simulator_->AddActor(this); |
| simulator_->RemoveActor(this); |
| void Actor::Schedule(QuicTime next_tick) { |
| simulator_->Schedule(this, next_tick); |
| void Actor::Unschedule() { |
| simulator_->Unschedule(this); |