#include "components/segmentation_platform/internal/database/signal_key_internal.h"
#include <sstream>
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
namespace segmentation_platform {
namespace {
void VerifyEqual(SignalKeyInternal a, SignalKeyInternal b) { … }
void VerifyNotEqual(SignalKeyInternal a, SignalKeyInternal b) { … }
void VerifyEqual(SignalKeyInternal::Prefix a, SignalKeyInternal::Prefix b) { … }
void VerifyNotEqual(SignalKeyInternal::Prefix a, SignalKeyInternal::Prefix b) { … }
TEST(SignalKeyInternalTest, TestKeyConversionToAndFromBinary) { … }
TEST(SignalKeyInternalTest, TestKeyConversionFailureFromBinary) { … }
TEST(SignalKeyInternalTest, TestPrefixConversionToAndFromBinary) { … }
TEST(SignalKeyInternalTest, TestPrefixConversionFailureFromBinary) { … }
TEST(SignalKeyInternalTest, TestChangingAnyKeyFieldMakesNotEqual) { … }
TEST(SignalKeyInternalTest, TestChangingAnyPrefixFieldMakesNotEqual) { … }
TEST(SignalKeyInternalTest, TestKeyDebugStringRepresentation) { … }
TEST(SignalKeyInternalTest, TestPrefixDebugStringRepresentation) { … }
TEST(SignalKeyInternalTest, TestBinaryKeyLexicographicalComparison) { … }
TEST(SignalKeyInternalTest, TestBinaryKeyFieldOrder) { … }
TEST(SignalKeyInternalTest, TestBinaryPrefixLexicographicalComparison) { … }
TEST(SignalKeyInternalTest, TestBinaryPrefixFieldOrder) { … }
}
}