chromium/dbus/message_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "dbus/message.h"

#include <stddef.h>
#include <stdint.h>

#include <memory>

#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "dbus/object_path.h"
#include "dbus/test_proto.pb.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace dbus {

// Test that a byte can be properly written and read. We only have this
// test for byte, as repeating this for other basic types is too redundant.
TEST(MessageTest, AppendAndPopByte) {}

// Check all basic types can be properly written and read.
TEST(MessageTest, AppendAndPopBasicDataTypes) {}

// Check all basic types can be properly written and read.
TEST(MessageTest, AppendAndPopFileDescriptor) {}

// Check all variant types can be properly written and read.
TEST(MessageTest, AppendAndPopVariantDataTypes) {}

TEST(MessageTest, ArrayOfBytes) {}

TEST(MessageTest, ArrayOfInt32s) {}

TEST(MessageTest, ArrayOfUint32s) {}

TEST(MessageTest, ArrayOfDoubles) {}

TEST(MessageTest, ArrayOfBytes_Empty) {}

TEST(MessageTest, ArrayOfStrings) {}

TEST(MessageTest, ArrayOfObjectPaths) {}

TEST(MessageTest, ProtoBuf) {}

// Test that an array can be properly written and read. We only have this
// test for array, as repeating this for other container types is too
// redundant.
TEST(MessageTest, OpenArrayAndPopArray) {}

// Create a complex message using array, struct, variant, dict entry, and
// make sure it can be read properly.
TEST(MessageTest, CreateComplexMessageAndReadIt) {}

TEST(MessageTest, MethodCall) {}

TEST(MessageTest, MethodCall_FromRawMessage) {}

TEST(MessageTest, Signal) {}

TEST(MessageTest, Signal_FromRawMessage) {}

TEST(MessageTest, Response) {}

TEST(MessageTest, Response_FromMethodCall) {}

TEST(MessageTest, ErrorResponse_FromMethodCall) {}

TEST(MessageTest, GetAndSetHeaders) {}

TEST(MessageTest, SetInvalidHeaders) {}

TEST(MessageTest, ToString_LongString) {}

}  // namespace dbus