diff --git a/tests/helpers/scoped_file.hpp b/tests/helpers/scoped_file.hpp index b1fa85a..fc1c30d 100644 --- a/tests/helpers/scoped_file.hpp +++ b/tests/helpers/scoped_file.hpp @@ -4,6 +4,8 @@ #include #include +namespace helpers { + class ScopedFile { public: explicit ScopedFile(std::string fileName) : fileName_(std::move(fileName)) {} @@ -25,3 +27,5 @@ public: private: std::string fileName_; }; + +} // namespace helpers diff --git a/tests/helpers/scoped_file_test.cpp b/tests/helpers/scoped_file_test.cpp index efc1054..b28546f 100644 --- a/tests/helpers/scoped_file_test.cpp +++ b/tests/helpers/scoped_file_test.cpp @@ -8,6 +8,8 @@ namespace { +using namespace helpers; + void testFileRemovedAfterScope() { const std::string fileName = "scoped_file_test.log";