Source release 19.4.0
This commit is contained in:
@@ -49,12 +49,12 @@ const std::unordered_set<std::string> kGlobalFilenames = {
|
||||
TestHost::TestHost() : global_storage_(true), per_origin_storage_(false) {
|
||||
Reset();
|
||||
}
|
||||
TestHost::~TestHost() { wvutil::TestSleep::set_callback(nullptr); }
|
||||
TestHost::~TestHost() { wvutil::TestSleep::RemoveCallback(this); }
|
||||
|
||||
void TestHost::Reset() {
|
||||
auto now = std::chrono::system_clock().now();
|
||||
now_ = now.time_since_epoch() / std::chrono::milliseconds(1);
|
||||
wvutil::TestSleep::set_callback(this);
|
||||
wvutil::TestSleep::AddCallback(this);
|
||||
|
||||
// Surprisingly, std::priority_queue has no clear().
|
||||
while (!timers_.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user