diff options
author | Jack Lloyd <[email protected]> | 2018-05-29 14:48:15 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-29 14:48:15 -0400 |
commit | 48fb47c2aad3d39c51d971685b0be3f6a9292e15 (patch) | |
tree | faeca0d57adec9f76bc5fbe0f5f84383b79f787f /src/tests/test_stream.cpp | |
parent | 5b60dae056a652c9eb0b480db8bfa020ead9d4e1 (diff) |
Make the tests VarMap an actual type instead of a hashmap typedef.
Diffstat (limited to 'src/tests/test_stream.cpp')
-rw-r--r-- | src/tests/test_stream.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/test_stream.cpp b/src/tests/test_stream.cpp index 219d58e4b..1f26a5cfd 100644 --- a/src/tests/test_stream.cpp +++ b/src/tests/test_stream.cpp @@ -21,11 +21,11 @@ class Stream_Cipher_Tests final : public Text_Based_Test Test::Result run_one_test(const std::string& algo, const VarMap& vars) override { - const std::vector<uint8_t> key = get_req_bin(vars, "Key"); - const std::vector<uint8_t> expected = get_req_bin(vars, "Out"); - const std::vector<uint8_t> nonce = get_opt_bin(vars, "Nonce"); - const size_t seek = get_opt_sz(vars, "Seek", 0); - std::vector<uint8_t> input = get_opt_bin(vars, "In"); + const std::vector<uint8_t> key = vars.get_req_bin("Key"); + const std::vector<uint8_t> expected = vars.get_req_bin("Out"); + const std::vector<uint8_t> nonce = vars.get_opt_bin("Nonce"); + const size_t seek = vars.get_opt_sz("Seek", 0); + std::vector<uint8_t> input = vars.get_opt_bin("In"); if(input.empty()) { |