diff options
| author | Stefan Boberg <[email protected]> | 2025-10-24 19:32:01 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-24 19:32:01 +0200 |
| commit | 4cba4eb3f122c7a1a49b629b1c0656d7f817f001 (patch) | |
| tree | e184821073167f6e81a75193efca91013d7b359b /thirdparty/cpr/test/multiasync_tests.hpp | |
| parent | fixed progress bar when scanning changed local files (#608) (diff) | |
| download | zen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.tar.xz zen-4cba4eb3f122c7a1a49b629b1c0656d7f817f001.zip | |
move cpr in-tree (#605)
* added cpr 1.10.5 in-tree to allow updates to vcpkg without breaking the build
* added asio 1.29.0 in-tree to remove one more vcpkg dependency
* bumped vcpkg to 2024.06.15 to address failure to build due to use of deprecated binaries in vcpkg (404 error: `https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.1.0-1-any.pkg.tar.zst` during build)
Diffstat (limited to 'thirdparty/cpr/test/multiasync_tests.hpp')
| -rw-r--r-- | thirdparty/cpr/test/multiasync_tests.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/thirdparty/cpr/test/multiasync_tests.hpp b/thirdparty/cpr/test/multiasync_tests.hpp new file mode 100644 index 000000000..ee1273d31 --- /dev/null +++ b/thirdparty/cpr/test/multiasync_tests.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <atomic> +#include <condition_variable> +#include <gtest/gtest.h> + +class TestSynchronizationEnv : public testing::Environment { + public: + std::atomic_size_t counter{0}; + std::atomic_bool fn_called{false}; + std::condition_variable test_cv{}; + std::mutex test_cv_mutex{}; + + void Reset() { + counter = 0; + fn_called = false; + } +}; |