refactor event system
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include "events/types/download_restored.hpp"
|
||||
#include "events/types/download_resume_added.hpp"
|
||||
#include "events/types/file_upload_completed.hpp"
|
||||
#include "events/types/file_upload_queued.hpp"
|
||||
#include "events/types/filesystem_item_closed.hpp"
|
||||
#include "events/types/filesystem_item_handle_closed.hpp"
|
||||
#include "events/types/filesystem_item_handle_opened.hpp"
|
||||
@ -407,8 +408,7 @@ TEST_F(file_manager_test,
|
||||
download_resume_added::name, [&source_path](const i_event &evt) {
|
||||
const auto &evt2 = dynamic_cast<const download_resume_added &>(evt);
|
||||
EXPECT_STREQ("/test_write_partial_download.txt", evt2.api_path.c_str());
|
||||
EXPECT_STREQ(source_path.c_str(),
|
||||
evt2.get_dest_path().get<std::string>().c_str());
|
||||
EXPECT_STREQ(source_path.c_str(), evt2.dest_path.c_str());
|
||||
});
|
||||
|
||||
event_capture capture({download_resume_added::name},
|
||||
|
Reference in New Issue
Block a user