aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-28 18:42:40 -0400
committerJack Lloyd <[email protected]>2017-09-28 18:42:40 -0400
commitefe2f1ce175896a092c0368ed682e3314d0ba3a8 (patch)
tree96868988e6ef3973f79a854547b2df2aa0cb2e6b /src/tests/tests.h
parentc1edbe9c436dfffa9d7def0f99497e9c7e19c210 (diff)
Further header cleanups
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r--src/tests/tests.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index c98ac8397..4a32cc417 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -13,16 +13,7 @@
#include <botan/hex.h>
#include <botan/symkey.h>
#include <botan/cpuid.h>
-
-#if defined(BOTAN_HAS_BIGINT)
- #include <botan/bigint.h>
-#endif
-
-#if defined(BOTAN_HAS_EC_CURVE_GFP)
- #include <botan/point_gfp.h>
-#endif
-
-#include <fstream>
+#include <iosfwd>
#include <functional>
#include <map>
#include <memory>
@@ -32,6 +23,18 @@
#include <unordered_map>
#include <vector>
+namespace Botan {
+
+#if defined(BOTAN_HAS_BIGINT)
+class BigInt;
+#endif
+
+#if defined(BOTAN_HAS_EC_CURVE_GFP)
+class PointGFp;
+#endif
+
+}
+
namespace Botan_Tests {
#if defined(BOTAN_HAS_BIGINT)
@@ -497,7 +500,7 @@ class Text_Based_Test : public Test
std::string m_output_key;
bool m_first = true;
- std::unique_ptr<std::ifstream> m_cur;
+ std::unique_ptr<std::istream> m_cur;
std::string m_cur_src_name;
std::deque<std::string> m_srcs;
std::vector<Botan::CPUID::CPUID_bits> m_cpu_flags;