-
- Downloads
Tests: Refactor GenerateExportHeader test code
Refactor the library code used in the GenerateExportHeader test to use an improved naming convention that more directly identifies what it being tested, making use of namespaces to avoid possible symbol collisions. This also eliminates duplicate cases such as `libshared()` and `libshared_not_exported()` which had the same decoration, and adds consistent pairings of <name>_EXPORT and <name>_DEPRECATED_EXPORT which were missing previously. The data tests from the previous commit are also added to `libstatic` and `libshared_and_static` for consistency. Note that there are no exported members of exported classes, as these are not allowed on Windows.
Showing
- Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp 74 additions, 59 deletionsTests/RunCMake/GenerateExportHeader/exportheader_test.cpp
- Tests/RunCMake/GenerateExportHeader/lib_shared_and_static/libshared_and_static.cpp 40 additions, 25 deletions...portHeader/lib_shared_and_static/libshared_and_static.cpp
- Tests/RunCMake/GenerateExportHeader/lib_shared_and_static/libshared_and_static.h 51 additions, 34 deletions...ExportHeader/lib_shared_and_static/libshared_and_static.h
- Tests/RunCMake/GenerateExportHeader/libshared/libshared.cpp 29 additions, 42 deletionsTests/RunCMake/GenerateExportHeader/libshared/libshared.cpp
- Tests/RunCMake/GenerateExportHeader/libshared/libshared.h 33 additions, 34 deletionsTests/RunCMake/GenerateExportHeader/libshared/libshared.h
- Tests/RunCMake/GenerateExportHeader/libstatic/libstatic.cpp 48 additions, 20 deletionsTests/RunCMake/GenerateExportHeader/libstatic/libstatic.cpp
- Tests/RunCMake/GenerateExportHeader/libstatic/libstatic.h 52 additions, 23 deletionsTests/RunCMake/GenerateExportHeader/libstatic/libstatic.h
Loading
Please register or sign in to comment