chromium/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc

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

// Serialization warnings are only recorded when DLOG is enabled.
#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)

#include <stddef.h>
#include <utility>

#include "mojo/public/cpp/bindings/lib/array_internal.h"
#include "mojo/public/cpp/bindings/lib/message_fragment.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "mojo/public/interfaces/bindings/tests/serialization_test_structs.mojom.h"
#include "mojo/public/interfaces/bindings/tests/test_unions.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace mojo {
namespace test {
namespace {

ContainerValidateParams;
GetArrayOfEnumsValidator;
GetArrayValidator;
GetMapValidator;

// Creates an array of arrays of handles (2 X 3) for testing.
std::vector<std::optional<std::vector<ScopedHandle>>>
CreateTestNestedHandleArray() {}

class SerializationWarningTest : public testing::Test {};

TEST_F(SerializationWarningTest, HandleInStruct) {}

TEST_F(SerializationWarningTest, StructInStruct) {}

TEST_F(SerializationWarningTest, ArrayOfStructsInStruct) {}

TEST_F(SerializationWarningTest, FixedArrayOfStructsInStruct) {}

TEST_F(SerializationWarningTest, ArrayOfArraysOfHandles) {}

TEST_F(SerializationWarningTest, ArrayOfStrings) {}

TEST_F(SerializationWarningTest, StructInUnion) {}

TEST_F(SerializationWarningTest, UnionInUnion) {}

TEST_F(SerializationWarningTest, HandleInUnion) {}

}  // namespace
}  // namespace test
}  // namespace mojo

#endif