From c0d0efd058be26da63751e7403362fb6b02e9b93 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 13 Feb 2016 20:42:28 +0100 Subject: [PATCH] Fix compiler error in test cases on Mac OS X --- test/cryfs/config/CryConfigFileTest.cpp | 4 ++-- test/cryfs/config/CryConfigLoaderTest.cpp | 2 +- test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp | 3 +-- test/cryfs/config/crypto/CryConfigEncryptorTest.cpp | 2 +- test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp | 2 +- test/cryfs/config/crypto/inner/InnerConfigTest.cpp | 2 +- test/cryfs/config/crypto/outer/OuterConfigTest.cpp | 2 +- test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp | 2 +- 8 files changed, 9 insertions(+), 10 deletions(-) diff --git a/test/cryfs/config/CryConfigFileTest.cpp b/test/cryfs/config/CryConfigFileTest.cpp index dfc53e99..66891053 100644 --- a/test/cryfs/config/CryConfigFileTest.cpp +++ b/test/cryfs/config/CryConfigFileTest.cpp @@ -2,7 +2,6 @@ #include #include -#include using namespace cryfs; using cpputils::TempFile; @@ -17,10 +16,11 @@ namespace bf = boost::filesystem; namespace boost { inline std::ostream &operator<<(std::ostream &out, const CryConfigFile &file) { UNUSED(file); - out << "ConfigFile"; + out << "ConfigFile()"; return out; } } +#include class CryConfigFileTest: public ::testing::Test { public: diff --git a/test/cryfs/config/CryConfigLoaderTest.cpp b/test/cryfs/config/CryConfigLoaderTest.cpp index dffa00aa..f3be4bda 100644 --- a/test/cryfs/config/CryConfigLoaderTest.cpp +++ b/test/cryfs/config/CryConfigLoaderTest.cpp @@ -4,7 +4,6 @@ #include #include #include -#include using cpputils::unique_ref; using cpputils::make_unique_ref; @@ -25,6 +24,7 @@ namespace boost { return stream << "CryConfigFile()"; } } +#include //TODO Test loading with same/different --cipher argument diff --git a/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp b/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp index 12558d7a..ee14fb09 100644 --- a/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp +++ b/test/cryfs/config/crypto/CryConfigEncryptorFactoryTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using cpputils::SCrypt; using cpputils::AES256_GCM; @@ -18,7 +17,7 @@ namespace boost { return stream << "CryConfigEncryptor::Decrypted()"; } } - +#include class CryConfigEncryptorFactoryTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp b/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp index f857c663..1d4f46df 100644 --- a/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp +++ b/test/cryfs/config/crypto/CryConfigEncryptorTest.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include using std::ostream; @@ -24,6 +23,7 @@ namespace boost { return stream << "CryConfigEncryptor::Decrypted()"; } } +#include class CryConfigEncryptorTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp b/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp index 43688099..c463a027 100644 --- a/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp +++ b/test/cryfs/config/crypto/inner/ConcreteInnerEncryptorTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using std::ostream; using boost::none; @@ -21,6 +20,7 @@ namespace boost { return stream << "cpputils::Data()"; } } +#include class ConcreteInnerEncryptorTest : public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/inner/InnerConfigTest.cpp b/test/cryfs/config/crypto/inner/InnerConfigTest.cpp index e780a642..4390051f 100644 --- a/test/cryfs/config/crypto/inner/InnerConfigTest.cpp +++ b/test/cryfs/config/crypto/inner/InnerConfigTest.cpp @@ -1,6 +1,5 @@ #include #include -#include #include using cpputils::Data; @@ -15,6 +14,7 @@ namespace boost { return stream << "InnerConfig(" << config.cipherName << ", [data])"; } } +#include TEST(InnerConfigTest, SomeValues) { Data serialized = InnerConfig{"myciphername", DataFixture::generate(1024)}.serialize(); diff --git a/test/cryfs/config/crypto/outer/OuterConfigTest.cpp b/test/cryfs/config/crypto/outer/OuterConfigTest.cpp index fd6b658f..5a4627b4 100644 --- a/test/cryfs/config/crypto/outer/OuterConfigTest.cpp +++ b/test/cryfs/config/crypto/outer/OuterConfigTest.cpp @@ -1,6 +1,5 @@ #include #include -#include #include using cpputils::Data; @@ -16,6 +15,7 @@ namespace boost { return stream << "OuterConfig()"; } } +#include class OuterConfigTest: public ::testing::Test { public: diff --git a/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp b/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp index d01af67e..9f1a644d 100644 --- a/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp +++ b/test/cryfs/config/crypto/outer/OuterEncryptorTest.cpp @@ -2,7 +2,6 @@ #include #include #include -#include using std::ostream; using boost::none; @@ -19,6 +18,7 @@ namespace boost { return stream << "cpputils::Data()"; } } +#include class OuterEncryptorTest : public ::testing::Test { public: