Source release 19.4.0

This commit is contained in:
Vicky Min
2024-11-27 00:07:23 +00:00
parent 11c108a8da
commit 22759672a8
72 changed files with 5321 additions and 2622 deletions

View File

@@ -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()) {