From 6a9893832c23dbafd386931e751664ced52c59fb Mon Sep 17 00:00:00 2001 From: DieSlower Date: Sat, 19 Jan 2019 17:21:59 -0500 Subject: [PATCH] Issue #96 Adds path and file creation options --- Tests/TrUtil/JsonTests.cpp | 7 +++++++ Tests/TrUtil/JsonTests.h | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Tests/TrUtil/JsonTests.cpp b/Tests/TrUtil/JsonTests.cpp index 9ccff7a..8ca099b 100644 --- a/Tests/TrUtil/JsonTests.cpp +++ b/Tests/TrUtil/JsonTests.cpp @@ -22,14 +22,21 @@ #include "JsonTests.h" #include +#include #include #include +#include + +////////////////////////////////////////////////////////////////////////// +const std::string JsonTests::CONFIG_FILE_NAME("Tests/JsonTest.gtest"); ////////////////////////////////////////////////////////////////////////// JsonTests::JsonTests() { + //Creates the default folders in the User Data folder. + trUtil::PathUtils::CreateUserDataPathTree(); } ////////////////////////////////////////////////////////////////////////// diff --git a/Tests/TrUtil/JsonTests.h b/Tests/TrUtil/JsonTests.h index 96d0e3e..b5ec731 100644 --- a/Tests/TrUtil/JsonTests.h +++ b/Tests/TrUtil/JsonTests.h @@ -31,10 +31,12 @@ * @author Maxim Serebrennik */ class JsonTests : public ::testing::Test -{ +{ public: + const static std::string CONFIG_FILE_NAME; + /** * @fn public::JsonTests(); *