ai自主改之前
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <web_server/src/detail/Gallery_Frame_Clock.hpp>
|
||||
#include <asio/thread_pool.hpp>
|
||||
#include <chrono>
|
||||
#include <condition_variable>
|
||||
#include <exception>
|
||||
@@ -10,14 +9,13 @@
|
||||
|
||||
namespace aethera::web::detail {
|
||||
TEST(Gallery_Frame_Clock, Produces_One_Monotonic_Absolute_Timeline) {
|
||||
asio::thread_pool pool(1);
|
||||
std::mutex mutex;
|
||||
std::condition_variable condition;
|
||||
std::vector<Plot_Render_Tick> ticks;
|
||||
std::exception_ptr failure;
|
||||
{
|
||||
Gallery_Frame_Clock clock(
|
||||
pool.get_executor(), 100.0,
|
||||
100.0,
|
||||
[&](Plot_Render_Tick tick) {
|
||||
std::lock_guard lock(mutex);
|
||||
ticks.push_back(tick);
|
||||
@@ -59,7 +57,5 @@ TEST(Gallery_Frame_Clock, Produces_One_Monotonic_Absolute_Timeline) {
|
||||
EXPECT_EQ(ticks.size(), stopped_count);
|
||||
}
|
||||
}
|
||||
pool.stop();
|
||||
pool.join();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user