diff options
author | Jack Lloyd <[email protected]> | 2017-10-24 12:01:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-24 12:01:43 -0400 |
commit | 5c3470fee0d3e8a6c0eb702602364e9e5dd5d658 (patch) | |
tree | d40d1af9f123973447d7f56394b4eb16810ab603 /src/tests/test_pkcs11.cpp | |
parent | da0a1124242e3a108819df58054e8dd909268a00 (diff) |
Avoid "using namespace" in test code
Diffstat (limited to 'src/tests/test_pkcs11.cpp')
-rw-r--r-- | src/tests/test_pkcs11.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tests/test_pkcs11.cpp b/src/tests/test_pkcs11.cpp index 289e34466..70861cef7 100644 --- a/src/tests/test_pkcs11.cpp +++ b/src/tests/test_pkcs11.cpp @@ -10,9 +10,6 @@ namespace Botan_Tests { #if defined(BOTAN_HAS_PKCS11) -using namespace Botan; -using namespace PKCS11; - std::vector<Test::Result> PKCS11_Test::run_pkcs11_tests(const std::string& name, std::vector<std::function<Test::Result()>>& fns) { @@ -24,11 +21,11 @@ std::vector<Test::Result> PKCS11_Test::run_pkcs11_tests(const std::string& name, { results.push_back(fns[ i ]()); } - catch(PKCS11_ReturnError& e) + catch(Botan::PKCS11::PKCS11_ReturnError& e) { results.push_back(Test::Result::Failure(name + " test " + std::to_string(i), e.what())); - if(e.get_return_value() == ReturnValue::PinIncorrect) + if(e.get_return_value() == Botan::PKCS11::ReturnValue::PinIncorrect) { break; // Do not continue to not potentially lock the token } |