From 6b467e7e5919dff3afcd7bc4dc2c0bb55be2ebfb Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 25 Mar 2014 12:18:36 -0700 Subject: [PATCH] Move hardened_hash to container/ --- Builds/VisualStudio2013/beast.vcxproj | 8 +++++++- Builds/VisualStudio2013/beast.vcxproj.filters | 15 +++++++++------ beast/container/Container.cpp | 1 + beast/{utility => container}/hardened_hash.h | 8 ++++---- .../tests/hardened_hash.test.cpp | 0 beast/crypto/UnsignedInteger.h | 2 +- beast/utility/Utility.cpp | 1 - 7 files changed, 22 insertions(+), 13 deletions(-) rename beast/{utility => container}/hardened_hash.h (96%) rename beast/{utility => container}/tests/hardened_hash.test.cpp (100%) diff --git a/Builds/VisualStudio2013/beast.vcxproj b/Builds/VisualStudio2013/beast.vcxproj index 47b7b51153..41e22745e2 100644 --- a/Builds/VisualStudio2013/beast.vcxproj +++ b/Builds/VisualStudio2013/beast.vcxproj @@ -129,6 +129,7 @@ + @@ -239,7 +240,6 @@ - @@ -442,6 +442,12 @@ true true + + true + true + true + true + true diff --git a/Builds/VisualStudio2013/beast.vcxproj.filters b/Builds/VisualStudio2013/beast.vcxproj.filters index fd8abd157b..cce6101fc1 100644 --- a/Builds/VisualStudio2013/beast.vcxproj.filters +++ b/Builds/VisualStudio2013/beast.vcxproj.filters @@ -65,7 +65,7 @@ beast\crypto\impl\sha2 - scripts + beast_asio\scripts beast\asio @@ -204,9 +204,6 @@ {39886e0f-1607-4b7a-81cf-011d83dadee3} - - {c65af439-8c23-46c3-9b95-7da15651e5f6} - {8d88283b-24ec-49ca-a94b-cb6271bc14f9} @@ -303,6 +300,9 @@ {8dc7ce09-9255-48c0-8a90-78a0f94d22c5} + + {c65af439-8c23-46c3-9b95-7da15651e5f6} + @@ -1182,8 +1182,8 @@ beast\unit_test - - beast\utility + + beast\container @@ -1640,6 +1640,9 @@ beast\unit_test\tests + + beast\container\tests + diff --git a/beast/container/Container.cpp b/beast/container/Container.cpp index c11ccfa882..d94f3087a8 100644 --- a/beast/container/Container.cpp +++ b/beast/container/Container.cpp @@ -23,3 +23,4 @@ #include "tests/aged_associative_container.test.cpp" #include "tests/buffer_view.test.cpp" +#include "tests/hardened_hash.test.cpp" diff --git a/beast/utility/hardened_hash.h b/beast/container/hardened_hash.h similarity index 96% rename from beast/utility/hardened_hash.h rename to beast/container/hardened_hash.h index 6e1979609c..6c76a5a091 100644 --- a/beast/utility/hardened_hash.h +++ b/beast/container/hardened_hash.h @@ -17,12 +17,12 @@ */ //============================================================================== -#ifndef BEAST_UTILITY_HARDENED_HASH_H_INCLUDED -#define BEAST_UTILITY_HARDENED_HASH_H_INCLUDED +#ifndef BEAST_CONTAINER_HARDENED_HASH_H_INCLUDED +#define BEAST_CONTAINER_HARDENED_HASH_H_INCLUDED -#include "is_call_possible.h" +#include "../utility/is_call_possible.h" -#include "noexcept.h" +#include "../utility/noexcept.h" #include #include #include diff --git a/beast/utility/tests/hardened_hash.test.cpp b/beast/container/tests/hardened_hash.test.cpp similarity index 100% rename from beast/utility/tests/hardened_hash.test.cpp rename to beast/container/tests/hardened_hash.test.cpp diff --git a/beast/crypto/UnsignedInteger.h b/beast/crypto/UnsignedInteger.h index 4b2069c0ec..26847d8271 100644 --- a/beast/crypto/UnsignedInteger.h +++ b/beast/crypto/UnsignedInteger.h @@ -24,7 +24,7 @@ #include "MurmurHash.h" #include "../ByteOrder.h" -#include "../utility/hardened_hash.h" +#include "../container/hardened_hash.h" #include "../utility/noexcept.h" #include diff --git a/beast/utility/Utility.cpp b/beast/utility/Utility.cpp index e9b8f16929..45fcdeefcf 100644 --- a/beast/utility/Utility.cpp +++ b/beast/utility/Utility.cpp @@ -31,4 +31,3 @@ #include "tests/bassert.test.cpp" #include "tests/empty_base_optimization.test.cpp" -#include "tests/hardened_hash.test.cpp"