diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2017-02-21 02:03:29 -0500 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2017-02-21 02:03:29 -0500 |
| commit | 73836e58a5f5c11cd7bf7db76e9d02013975fc9a (patch) | |
| tree | ccaae953fed07fdce85a98da7c8c8a7a47a94518 /validat0.cpp | |
| parent | 11f0186fd0c74feddc2b55cbb8083860fc88c663 (diff) | |
| download | cryptopp-git-73836e58a5f5c11cd7bf7db76e9d02013975fc9a.tar.gz | |
Add Test namespace within CryptoPP namespace (Issue 379)
Diffstat (limited to 'validat0.cpp')
| -rw-r--r-- | validat0.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/validat0.cpp b/validat0.cpp index 5a766813..ce1f226b 100644 --- a/validat0.cpp +++ b/validat0.cpp @@ -21,11 +21,8 @@ # pragma strict_gs_check (on)
#endif
-#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
-# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
-
-USING_NAMESPACE(CryptoPP)
+NAMESPACE_BEGIN(CryptoPP)
+NAMESPACE_BEGIN(Test)
#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS)
bool TestRounding()
@@ -735,11 +732,11 @@ bool TestSecBlock() {
std::basic_string<char, std::char_traits<char>, AllocatorWithCleanup<char, false> > s1;
- std::basic_string<char, std::char_traits<char>, AllocatorWithCleanup<char, true> > s2;
+ std::basic_string<char, std::char_traits<char>, AllocatorWithCleanup<char, true> > s2;
s1.resize(1024); s2.resize(1024);
std::vector<byte, AllocatorWithCleanup<byte, false> > v1;
- std::vector<byte, AllocatorWithCleanup<byte, true> > v2;
+ std::vector<byte, AllocatorWithCleanup<byte, true> > v2;
v1.resize(1024); v2.resize(1024);
}
@@ -2366,3 +2363,6 @@ bool TestIntegerBitops() return opa && opo && opx;
}
#endif
+
+NAMESPACE_END // Test
+NAMESPACE_END // CryptoPP
|
