chromium/services/data_decoder/public/cpp/data_decoder_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/data_decoder.h"

#include <memory>

#include "base/features.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/rust_buildflags.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/types/expected.h"
#include "base/values.h"
#include "build/build_config.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "services/data_decoder/public/mojom/cbor_parser.mojom.h"
#include "services/data_decoder/public/mojom/json_parser.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace data_decoder {

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

TEST_F(DataDecoderTest, ReuseJson) {}

TEST_F(DataDecoderTest, IsolationJson) {}

TEST_F(DataDecoderTest, ReuseCbor) {}

TEST_F(DataDecoderTest, IsolationCbor) {}

TEST_F(DataDecoderTest, ParseCborToInteger) {}

TEST_F(DataDecoderTest, ParseCborAndFailed) {}

TEST_F(DataDecoderTest, ValidateAnInvalidPixCode) {}

TEST_F(DataDecoderTest, ValidateAValidPixCode) {}

// PIX codes are payment related and should be private, so they should not be
// parsed in the same process.
TEST_F(DataDecoderTest, SeparateDecoderInstancesMakeSeparateConnectionsForPix) {}

#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(BUILD_RUST_JSON_READER)

class DataDecoderMultiThreadTest : public testing::Test {};

TEST_F(DataDecoderMultiThreadTest, JSONDecode) {}

#endif  // BUILDFLAG(IS_ANDROID) || BUILDFLAG(BUILD_RUST_JSON_READER)

}  // namespace data_decoder