test: add namespace for test helpers
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
namespace helpers {
|
||||||
|
|
||||||
class ScopedFile {
|
class ScopedFile {
|
||||||
public:
|
public:
|
||||||
explicit ScopedFile(std::string fileName) : fileName_(std::move(fileName)) {}
|
explicit ScopedFile(std::string fileName) : fileName_(std::move(fileName)) {}
|
||||||
@@ -25,3 +27,5 @@ public:
|
|||||||
private:
|
private:
|
||||||
std::string fileName_;
|
std::string fileName_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace helpers
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
using namespace helpers;
|
||||||
|
|
||||||
void testFileRemovedAfterScope() {
|
void testFileRemovedAfterScope() {
|
||||||
const std::string fileName = "scoped_file_test.log";
|
const std::string fileName = "scoped_file_test.log";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user