From bc78e3308f8bf74a8935f9ef8fd28825d6b48c2f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 May 2021 01:33:39 +0300 Subject: move _address functions to winapi::address --- test/unit_tests/call_stack.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/unit_tests') diff --git a/test/unit_tests/call_stack.cpp b/test/unit_tests/call_stack.cpp index 2f022c6..039e8f9 100644 --- a/test/unit_tests/call_stack.cpp +++ b/test/unit_tests/call_stack.cpp @@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(call_stack) { BOOST_TEST_MESSAGE("Call stack:"); for (const auto& addr : call_stack) { pretty.emplace_back(call_stack.pretty_print_address(dbghelp, addr)); - BOOST_TEST_MESSAGE('\t' << winapi::format_address(addr) << ' ' << pretty.back()); + BOOST_TEST_MESSAGE('\t' << winapi::address::format(addr) << ' ' << pretty.back()); } // Second, resolve the symbols: @@ -43,12 +43,12 @@ BOOST_AUTO_TEST_CASE(call_stack) { for (const auto& addr : call_stack) { try { auto symbol = dbghelp.resolve_symbol(addr); - BOOST_TEST_MESSAGE('\t' << winapi::format_address(symbol.get_offline_address()) + BOOST_TEST_MESSAGE('\t' << winapi::address::format(symbol.get_offline_address()) << ' ' << symbol.get_name()); symbols.emplace_back(std::move(symbol)); } catch (const std::system_error& e) { symbols.emplace_back(boost::none); - BOOST_TEST_MESSAGE('\t' << winapi::format_address(addr) + BOOST_TEST_MESSAGE('\t' << winapi::address::format(addr) << " Couldn't resolve symbol: " << e.what()); } } @@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(call_stack) { }; for (const auto& addr : expected) { BOOST_TEST(check(addr), - "Function frame captured: " << winapi::format_address(addr)); + "Function frame captured: " << winapi::address::format(addr)); } } -- cgit v1.2.3