#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/json/json_writer.h"
#include <optional>
#include "base/containers/span.h"
#include "base/json/json_reader.h"
#include "base/strings/stringprintf.h"
#include "base/test/gmock_expected_support.h"
#include "base/values.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_WIN)
#include "base/strings/string_util.h"
#endif
namespace base {
namespace {
std::string FixNewlines(const std::string& json) { … }
}
TEST(JsonWriterTest, BasicTypes) { … }
TEST(JsonWriterTest, NestedTypes) { … }
TEST(JsonWriterTest, KeysWithPeriods) { … }
TEST(JsonWriterTest, BinaryValues) { … }
TEST(JsonWriterTest, DoublesAsInts) { … }
TEST(JsonWriterTest, StackOverflow) { … }
TEST(JsonWriterTest, TestMaxDepthWithValidNodes) { … }
TEST(JsonWriterTest, JSONWriterWriteSuccess) { … }
TEST(JsonWriterTest, JSONWriterWriteFailure) { … }
TEST(JsonWriterTest, JSONWriterWriteWithOptionsSuccess) { … }
TEST(JsonWriterTest, JSONWriterWriteWithOptionsFailure) { … }
}