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_message.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_message.cpp')
-rw-r--r-- | tests/test_message.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_message.cpp b/tests/test_message.cpp index b46b15a..ff14649 100644 --- a/tests/test_message.cpp +++ b/tests/test_message.cpp @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "axolotl/message.hh" +#include "olm/message.hh" #include "unittest.hh" int main() { @@ -27,8 +27,8 @@ std::uint8_t hmacsha2[9] = "hmacsha2"; TestCase test_case("Message decode test"); -axolotl::MessageReader reader; -axolotl::decode_message(reader, message1, 35, 8); +olm::MessageReader reader; +olm::decode_message(reader, message1, 35, 8); assert_equals(std::uint8_t(3), reader.version); assert_equals(true, reader.has_counter); @@ -46,13 +46,13 @@ assert_equals(ciphertext, reader.ciphertext, 10); TestCase test_case("Message encode test"); -std::size_t length = axolotl::encode_message_length(1, 10, 10, 8); +std::size_t length = olm::encode_message_length(1, 10, 10, 8); assert_equals(std::size_t(35), length); std::uint8_t output[length]; -axolotl::MessageWriter writer; -axolotl::encode_message(writer, 3, 1, 10, 10, output); +olm::MessageWriter writer; +olm::encode_message(writer, 3, 1, 10, 10, output); std::memcpy(writer.ratchet_key, ratchetkey, 10); std::memcpy(writer.ciphertext, ciphertext, 10); |