#include <gtest/gtest.h>
#include "codepage_detect.h"
+#include "charsets.h"
namespace
{
CodepageDetectTest()
{
// You can do set-up work for each test here.
+ charsets_init();
}
virtual ~CodepageDetectTest()
{
// You can do clean-up work that doesn't throw exceptions here.
+ charsets_cleanup();
}
// If the constructor and destructor are not enough for setting up
}\r
TEST_F(PathTest, Exists_relfiles)\r
{\r
- const TCHAR path[] = _T(".\\..\\Paths\\paths::test.cpp");\r
- const TCHAR path2[] = _T("..\\Paths\\paths::test.cpp");\r
+ const TCHAR path[] = _T(".\\..\\Paths\\paths_test.cpp");\r
+ const TCHAR path2[] = _T("..\\Paths\\paths_test.cpp");\r
EXPECT_EQ(paths::IS_EXISTING_FILE, paths::DoesPathExist(path));\r
EXPECT_EQ(paths::IS_EXISTING_FILE, paths::DoesPathExist(path2));\r
}\r
<ClCompile>\r
<Optimization>Disabled</Optimization>\r
<AdditionalIncludeDirectories>..\..\..\Src;..\..\..\Src\Common;..\..\..\Externals\boost;..\..\..\Externals\poco\Foundation\include;..\..\..\Externals\poco\XML\include;..\..\..\Externals\gtest\include;..\..\..\Externals\gtest\;..\..\..\Src\diffutils\src;..\..\..\Src\diffutils\lib;..\..\..\Src\diffutils\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;UNICODE;POCO_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+ <PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;UNICODE;POCO_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>\r
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>\r
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\r
<ClCompile>\r
<AdditionalIncludeDirectories>..\..\..\Src;..\..\..\Src\Common;..\..\..\Externals\boost;..\..\..\Externals\poco\Foundation\include;..\..\..\Externals\poco\XML\include;..\..\..\Externals\gtest\include;..\..\..\Externals\gtest\;..\..\..\Src\diffutils\src;..\..\..\Src\diffutils\lib;..\..\..\Src\diffutils\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;UNICODE;POCO_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+ <PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;UNICODE;POCO_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>\r
<TreatWChar_tAsBuiltInType>true</TreatWChar_tAsBuiltInType>\r
<PrecompiledHeader>\r