1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibTest: Explicitly export symbols

This commit is contained in:
ayeteadoe 2025-05-12 07:11:19 -07:00 committed by Andrew Kaster
parent 2194cbde4b
commit d35486cb74
Notes: github-actions[bot] 2025-05-16 19:24:56 +00:00
7 changed files with 33 additions and 25 deletions

View file

@ -11,6 +11,7 @@
#include <AK/Function.h>
#include <AK/NonnullRefPtr.h>
#include <AK/RefCounted.h>
#include <LibTest/Export.h>
#include <LibTest/Macros.h>
#include <LibTest/Randomized/RandomnessSource.h>
#include <LibTest/Randomized/Shrink.h>
@ -29,7 +30,7 @@ inline void run_with_randomness_source(Randomized::RandomnessSource source, Test
}
}
class TestCase : public RefCounted<TestCase> {
class TEST_API TestCase : public RefCounted<TestCase> {
public:
TestCase(ByteString const& name, TestFunction&& fn, bool is_benchmark)
: m_name(name)
@ -107,9 +108,8 @@ private:
};
// Helper to hide implementation of TestSuite from users
void add_test_case_to_suite(NonnullRefPtr<TestCase> const& test_case);
void set_suite_setup_function(Function<void()> setup);
TEST_API void add_test_case_to_suite(NonnullRefPtr<TestCase> const& test_case);
TEST_API void set_suite_setup_function(Function<void()> setup);
}
#define TEST_SETUP \