chromium/extensions/renderer/bindings/argument_spec_unittest.cc

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

#include <string_view>

#include "extensions/renderer/bindings/argument_spec.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/raw_ref.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "extensions/renderer/bindings/api_binding_test_util.h"
#include "extensions/renderer/bindings/api_invocation_errors.h"
#include "extensions/renderer/bindings/api_type_reference_map.h"
#include "extensions/renderer/bindings/argument_spec_builder.h"
#include "gin/converter.h"
#include "gin/dictionary.h"
#include "gin/public/isolate_holder.h"
#include "gin/test/v8_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "v8/include/v8.h"

namespace extensions {

IndexError;
InvalidType;
kTypeBoolean;
kTypeDouble;
kTypeFunction;
kTypeInteger;
kTypeList;
kTypeNull;
kTypeObject;
kTypeString;
kTypeUndefined;
MissingRequiredProperty;
NumberIsNaNOrInfinity;

V8Validator;

class ArgumentSpecUnitTest : public gin::V8Test {};

void ArgumentSpecUnitTest::RunTest(RunTestParams& params) {}

TEST_F(ArgumentSpecUnitTest, Test) {}

TEST_F(ArgumentSpecUnitTest, TypeRefsTest) {}

TEST_F(ArgumentSpecUnitTest, TypeChoicesTest) {}

TEST_F(ArgumentSpecUnitTest, AdditionalPropertiesTest) {}

TEST_F(ArgumentSpecUnitTest, IgnoreAdditionalPropertiesTest) {}

TEST_F(ArgumentSpecUnitTest, InstanceOfTest) {}

TEST_F(ArgumentSpecUnitTest, MinAndMaxLengths) {}

TEST_F(ArgumentSpecUnitTest, PreserveNull) {}

TEST_F(ArgumentSpecUnitTest, NaNFun) {}

TEST_F(ArgumentSpecUnitTest, GetTypeName) {}

TEST_F(ArgumentSpecUnitTest, V8Conversion) {}

// Certain argument types (any, binary, and function) will be passed through
// directly to the v8 arguments because we won't be able to parse them properly.
TEST_F(ArgumentSpecUnitTest, TestV8ValuePassedThrough) {}

// Tests the serialization of functions that are explicitly marked as
// serializable (otherwise, they are represented as empty DictionaryValues).
TEST_F(ArgumentSpecUnitTest, SerializableFunctions) {}

}  // namespace extensions