#include "util/json/json_serialization.h"
#include <array>
#include <string>
#include "gtest/gtest.h"
#include "platform/base/error.h"
namespace openscreen {
namespace {
template <typename Value>
void AssertError(ErrorOr<Value> error_or, Error::Code code) { … }
}
TEST(JsonSerializationTest, MalformedDocumentReturnsParseError) { … }
TEST(JsonSerializationTest, ValidEmptyDocumentParsedCorrectly) { … }
TEST(JsonSerializationTest, ValidDocumentParsedCorrectly) { … }
TEST(JsonSerializationTest, EmptyArrayReturnsBrackets) { … }
TEST(JsonSerializationTest, NullValueReturnsNull) { … }
TEST(JsonSerializationTest, ValidValueReturnsString) { … }
}