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

Side by Side Diff: net/quic/core/congestion_control/simulation/actor.cc

Issue 2323963002: Implement an event-based simulator for QuicConnection (Closed)
Patch Set: Adding missing files. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 #include "net/quic/core/congestion_control/simulation/actor.h"
2 #include "net/quic/core/congestion_control/simulation/simulator.h"
3
4 namespace net {
5 namespace simulation {
6
7 Actor::Actor(Simulator* simulator, std::string name)
8 : simulator_(simulator),
9 clock_(simulator->GetClock()),
10 name_(std::move(name)) {
11 simulator->AddActor(this);
12 }
13
14 Actor::~Actor() {}
15
16 void Actor::Schedule(QuicTime next_tick) {
17 simulator_->Schedule(this, next_tick);
18 }
19
20 void Actor::Unschedule() {
21 simulator_->Unschedule(this);
22 }
23
24 } // namespace simulation
25 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698