Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
inmemoryserializer.cpp File Reference
#include "gmxpre.h"
#include "gromacs/utility/inmemoryserializer.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
+ Include dependency graph for inmemoryserializer.cpp:

Description

Tests for gmx::InMemorySerializer and InMemoryDeserializer.

Author
Christian Blau blau@.nosp@m.kth..nosp@m.se

Functions

constexpr int gmx::test::anonymous_namespace{inmemoryserializer.cpp}::integerSizeDependentTestingValue ()
 Return the integer used for testing, depending on the size of int.
 
constexpr int gmx::test::anonymous_namespace{inmemoryserializer.cpp}::integerSizeDependentTestingValueEndianessSwapped ()
 Return the endianess-swapped integer used for testing, depending on the size of int.
 

Variables

constexpr std::int16_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int16Value = static_cast<std::int16_t>(0x7A2B)
 Constants used for testing endian swap operations.
 
constexpr std::int16_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int16ValueSwapped = static_cast<std::int16_t>(0x2B7A)
 
constexpr std::int32_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int32Value = static_cast<std::int32_t>(0x78ABCDEF)
 
constexpr std::int32_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int32ValueSwapped = static_cast<std::int32_t>(0xEFCDAB78)
 
constexpr std::int64_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int64Value = static_cast<std::int64_t>(0x78ABCDEF12345678)
 
constexpr std::int64_t gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_int64ValueSwapped = static_cast<std::int64_t>(0x78563412EFCDAB78)
 
constexpr const IntAndFloat32 gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_intAndFloat32 { c_int32Value }
 
constexpr const IntAndFloat64 gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_intAndFloat64 { c_int64Value }
 
constexpr const IntAndFloat32 gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_intAndFloat32Swapped { c_int32ValueSwapped }
 
constexpr const IntAndFloat64 gmx::test::anonymous_namespace{inmemoryserializer.cpp}::c_intAndFloat64Swapped { c_int64ValueSwapped }