chromium/mojo/public/cpp/system/tests/core_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.

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

// This file tests the C++ Mojo system core wrappers.
// TODO(vtl): Maybe rename "CoreCppTest" -> "CoreTest" if/when this gets
// compiled into a different binary from the C API tests.

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

#include "base/containers/contains.h"
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/functions.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "mojo/public/cpp/system/wait.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace mojo {
namespace {

const MojoHandleSignals kSignalReadableWritable =;

const MojoHandleSignals kSignalAll =;

TEST(CoreCppTest, GetTimeTicksNow) {}

TEST(CoreCppTest, Basic) {}

TEST(CoreCppTest, TearDownWithMessagesEnqueued) {}

TEST(CoreCppTest, ScopedHandleMoveCtor) {}

TEST(CoreCppTest, BasicSharedBuffer) {}

// TODO(vtl): Write data pipe tests.

}  // namespace
}  // namespace mojo