mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Moves static methods from class String to the namespace string
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#include "src/utils/string.h"
|
||||
|
||||
|
||||
using modsecurity::utils::String;
|
||||
using modsecurity_test::UnitTest;
|
||||
using modsecurity_test::ModSecurityTest;
|
||||
using modsecurity_test::ModSecurityTestResults;
|
||||
@@ -91,7 +90,8 @@ void perform_unit_test(ModSecurityTest<UnitTest> *test, UnitTest *t,
|
||||
|
||||
if (test->m_automake_output) {
|
||||
std::cout << t->name << " "
|
||||
<< String::toHexIfNeeded(t->input) << std::endl;
|
||||
<< modsecurity::utils::string::toHexIfNeeded(t->input)
|
||||
<< std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -27,9 +27,6 @@
|
||||
#include "src/utils/string.h"
|
||||
|
||||
|
||||
using modsecurity::utils::String;
|
||||
|
||||
|
||||
namespace modsecurity_test {
|
||||
|
||||
|
||||
@@ -112,9 +109,11 @@ std::string UnitTest::print() {
|
||||
i << this->obtained << "\"" << std::endl;
|
||||
}
|
||||
if (this->output != this->obtainedOutput) {
|
||||
i << "Expecting: \"" << String::toHexIfNeeded(this->output);
|
||||
i << "Expecting: \"";
|
||||
i << modsecurity::utils::string::toHexIfNeeded(this->output);
|
||||
i << "\" - returned: \"";
|
||||
i << String::toHexIfNeeded(this->obtainedOutput) << "\"";
|
||||
i << modsecurity::utils::string::toHexIfNeeded(this->obtainedOutput);
|
||||
i << "\"";
|
||||
i << std::endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user