diff options
author | Matthew Hodgson <matthew@matrix.org> | 2015-06-27 01:15:23 +0200 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2015-06-27 01:15:23 +0200 |
commit | 09d4125ff164f5ca686d12ccb0790c35ce721a6b (patch) | |
tree | 7ac8192180180705327d5090c5e603f54ddde2a0 /tests/test_base64.cpp | |
parent | fe958472453b1bac99854a419ef667d8f2cd351d (diff) |
Rename axolotlpp as olm to avoid confusion with Axolotl-the-spec and Axolotl-the-OWS-libraries at moxie's request
Diffstat (limited to 'tests/test_base64.cpp')
-rw-r--r-- | tests/test_base64.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_base64.cpp b/tests/test_base64.cpp index fbd9e19..e6b3710 100644 --- a/tests/test_base64.cpp +++ b/tests/test_base64.cpp @@ -1,4 +1,4 @@ -#include "axolotl/base64.hh" +#include "olm/base64.hh" #include "unittest.hh" int main() { @@ -10,11 +10,11 @@ std::uint8_t input[] = "Hello World"; std::uint8_t expected_output[] = "SGVsbG8gV29ybGQ"; std::size_t input_length = sizeof(input) - 1; -std::size_t output_length = axolotl::encode_base64_length(input_length); +std::size_t output_length = olm::encode_base64_length(input_length); assert_equals(std::size_t(15), output_length); std::uint8_t output[output_length]; -axolotl::encode_base64(input, input_length, output); +olm::encode_base64(input, input_length, output); assert_equals(expected_output, output, output_length); } @@ -25,11 +25,11 @@ std::uint8_t input[] = "SGVsbG8gV29ybGQ"; std::uint8_t expected_output[] = "Hello World"; std::size_t input_length = sizeof(input) - 1; -std::size_t output_length = axolotl::decode_base64_length(input_length); +std::size_t output_length = olm::decode_base64_length(input_length); assert_equals(std::size_t(11), output_length); std::uint8_t output[output_length]; -axolotl::decode_base64(input, input_length, output); +olm::decode_base64(input, input_length, output); assert_equals(expected_output, output, output_length); } |