chromium/services/data_decoder/public/cpp/json_sanitizer_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/data_decoder/public/cpp/json_sanitizer.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace data_decoder {
namespace {

// Verifies that |json| can be sanitized by JsonSanitizer, and that the output
// JSON is parsed to the same exact value as the original JSON.
void CheckSuccess(const std::string& json) {}

// Verifies that |json| is rejected by the sanitizer as an invalid string.
void CheckError(const std::string& json) {}

class DataDecoderJsonSanitizerTest : public ::testing::Test {};

TEST_F(DataDecoderJsonSanitizerTest, Json) {}

TEST_F(DataDecoderJsonSanitizerTest, Nesting) {}

TEST_F(DataDecoderJsonSanitizerTest, Unicode) {}

}  // namespace
}  // namespace data_decoder