diff --git a/tracetools/test/test_utils.cpp b/tracetools/test/test_utils.cpp index a0fb10d..455b0a4 100644 --- a/tracetools/test/test_utils.cpp +++ b/tracetools/test/test_utils.cpp @@ -16,9 +16,9 @@ #include #include +#include #include "tracetools/utils.hpp" -#include "test_utils.hpp" class SomeClassWithCallback { @@ -45,13 +45,14 @@ TEST(TestUtils, valid_address_symbol) { std::function)> f = &function_shared; // Address for one with an actual underlying function should be non-zero ASSERT_GT(get_address(f), (void *)0) << "get_address() for function not valid"; - ASSERT_STREQ(get_symbol(get_address(f)), "function_shared(std::shared_ptr)") << "invalid function name"; + ASSERT_STREQ(get_symbol(get_address(f)), "function_shared(std::shared_ptr)") << + "invalid function name"; // Lambda std::function l = [](int num) {return num + 1;}; // Address for an std::function with an underlying lambda should be nullptr ASSERT_EQ(get_address(l), nullptr) << "get_address() for lambda std::function not 0"; - // TODO symbol + // TODO(christophebedard) check symbol // Bind (to member function) SomeClassWithCallback scwc; @@ -62,5 +63,5 @@ TEST(TestUtils, valid_address_symbol) { std::placeholders::_2 ); ASSERT_EQ(get_address(fscwc), nullptr) << "get_address() for std::bind std::function not 0"; - // TODO symbol + // TODO(christophebedard) check symbol }