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:
parent
2194cbde4b
commit
d35486cb74
Notes:
github-actions[bot]
2025-05-16 19:24:56 +00:00
Author: https://github.com/ayeteadoe
Commit: d35486cb74
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4698
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/R-Goc
7 changed files with 33 additions and 25 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue