2121#pragma once
2222
2323#include < string>
24- #include < SofaPython3 /config.h>
24+ #include < SofaPython3Testing /config.h>
2525#include < sofa/testing/BaseTest.h>
2626
2727#include < filesystem>
@@ -33,7 +33,7 @@ namespace sofapython3
3333using sofa::testing::BaseTest;
3434
3535// / a Python_test is defined by a python filepath and optional arguments
36- struct SOFAPYTHON3_API PythonTestData
36+ struct SOFAPYTHON3_TESTING_API PythonTestData
3737{
3838 PythonTestData (std::string filepath, std::string testgroup, std::vector<std::string> arguments)
3939 : filepath(std::move(filepath)), arguments(std::move(arguments)), testgroup{std::move (testgroup)} {}
@@ -48,10 +48,10 @@ struct SOFAPYTHON3_API PythonTestData
4848// / test.all_tests/2, where GetParam() = /path/to/file.py with args {1,2,3}
4949// / instead of the defautl googletest printer that output things like the following:
5050// / test.all_tests/2, where GetParam() = 56-byte object <10-48 EC-37 18-56 00-00 67-00-00-00>
51- void SOFAPYTHON3_API PrintTo (const PythonTestData& d, ::std::ostream* os);
51+ void SOFAPYTHON3_TESTING_API PrintTo (const PythonTestData& d, ::std::ostream* os);
5252
5353// / A test written in python (but not as a sofa class to perform unitary testing on python functions)
54- class SOFAPYTHON3_API PythonTest : public BaseTest,
54+ class SOFAPYTHON3_TESTING_API PythonTest : public BaseTest,
5555 public ::testing::WithParamInterface<PythonTestData>
5656{
5757public:
@@ -67,7 +67,7 @@ class SOFAPYTHON3_API PythonTest : public BaseTest,
6767
6868 // / This function is called by gtest to generate the test from the filename. This is nice
6969 // / As this allows to do mytest --gtest_filter=*MySomething*
70- static std::string getTestName (const testing::TestParamInfo<PythonTestData>& p)
70+ static std::string getTestName (const :: testing::TestParamInfo<PythonTestData>& p)
7171 {
7272 if (p.param .arguments .size ()==0 )
7373 return std::to_string (p.index )+" _" +p.param .testgroup +path (p.param .filepath ).stem ().string ();
0 commit comments