aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 02:33:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 02:44:41 +0300
commita04f97f907dfc41216322dd4fdd8ec41e1debc8a (patch)
tree8e90843a9cf9f6433b4df6350a9963c6ba2060cf /test
parentclang-format: regroup #includes (diff)
downloadwinapi-debug-a04f97f907dfc41216322dd4fdd8ec41e1debc8a.tar.gz
winapi-debug-a04f97f907dfc41216322dd4fdd8ec41e1debc8a.zip
test_lib: test -> test_ns
Diffstat (limited to '')
-rw-r--r--test/call_stack.cpp2
-rw-r--r--test/test_lib.cpp4
-rw-r--r--test/test_lib.hpp4
-rw-r--r--test/unit_tests/dbghelp.cpp2
-rw-r--r--test/unit_tests/fixtures.hpp2
5 files changed, 7 insertions, 7 deletions
diff --git a/test/call_stack.cpp b/test/call_stack.cpp
index e14f744..06b9ed5 100644
--- a/test/call_stack.cpp
+++ b/test/call_stack.cpp
@@ -6,7 +6,7 @@
int main() {
try {
- test::print_call_stack();
+ test_ns::print_call_stack();
} catch (const std::exception& e) {
boost::nowide::cerr << e.what() << '\n';
return 1;
diff --git a/test/test_lib.cpp b/test/test_lib.cpp
index 19c0d32..63e51ad 100644
--- a/test/test_lib.cpp
+++ b/test/test_lib.cpp
@@ -9,7 +9,7 @@
#pragma optimize("", off)
#endif
-namespace test {
+namespace test_ns {
namespace {
void do_print_call_stack() {
@@ -41,4 +41,4 @@ void print_call_stack() {
foo(&do_print_call_stack);
}
-} // namespace test
+} // namespace test_ns
diff --git a/test/test_lib.hpp b/test/test_lib.hpp
index f5fa017..cf7b841 100644
--- a/test/test_lib.hpp
+++ b/test/test_lib.hpp
@@ -4,7 +4,7 @@
#include "test_lib_api.hpp"
-namespace test {
+namespace test_ns {
typedef void (*F)();
@@ -16,4 +16,4 @@ TEST_LIB_API void baz(F);
TEST_LIB_API void print_call_stack();
-} // namespace test
+} // namespace test_ns
diff --git a/test/unit_tests/dbghelp.cpp b/test/unit_tests/dbghelp.cpp
index aab292f..4346bf7 100644
--- a/test/unit_tests/dbghelp.cpp
+++ b/test/unit_tests/dbghelp.cpp
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(enum_symbols) {
BOOST_AUTO_TEST_CASE(call_stack) {
try {
- test::foo(&throw_call_stack);
+ test_ns::foo(&throw_call_stack);
} catch (const pdb::CallStack& call_stack) {
BOOST_TEST(true, "Caught the call stack");
return;
diff --git a/test/unit_tests/fixtures.hpp b/test/unit_tests/fixtures.hpp
index f6571d1..eb7dcc0 100644
--- a/test/unit_tests/fixtures.hpp
+++ b/test/unit_tests/fixtures.hpp
@@ -39,7 +39,7 @@ public:
DbgHelpWithSymbols() { load_test_lib_pdb(); }
static const std::string& get_namespace() {
- static const std::string name{"test"};
+ static const std::string name{"test_ns"};
return name;
}