chromium/third_party/ipcz/src/box_test.cc

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

#include <cstring>
#include <memory>
#include <string_view>

#include "ipcz/ipcz.h"
#include "test/multinode_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/base/macros.h"
#include "third_party/abseil-cpp/absl/types/span.h"
#include "util/ref_counted.h"

namespace ipcz {
namespace {

BoxTestNode;
BoxTest;

MULTINODE_TEST(BoxTest, BoxAndUnbox) {}

MULTINODE_TEST(BoxTest, CloseBox) {}

MULTINODE_TEST(BoxTest, Peek) {}

constexpr const char kMessage1[] =;
constexpr const char kMessage2[] =;
constexpr const char kMessage3[] =;

MULTINODE_TEST_NODE(BoxTestNode, TransferBoxClient) {}

MULTINODE_TEST(BoxTest, TransferBox) {}

MULTINODE_TEST_NODE(BoxTestNode, TransferBoxAndPortalClient) {}

MULTINODE_TEST(BoxTest, TransferBoxAndPortal) {}

constexpr size_t TransferBoxBetweenNonBrokersNumIterations =;

MULTINODE_TEST_NODE(BoxTestNode, TransferBoxBetweenNonBrokersClient1) {}

MULTINODE_TEST_NODE(BoxTestNode, TransferBoxBetweenNonBrokersClient2) {}

MULTINODE_TEST(BoxTest, TransferBoxBetweenNonBrokers) {}

// A simple object which we can boxed and transmitted to other nodes, by
// providing ipcz with a custom serialization function.
class NamedPortal {};

constexpr std::string_view kPortalName =;

MULTINODE_TEST_NODE(BoxTestNode, SerializedApplicationObjectClient) {}

MULTINODE_TEST(BoxTest, SerializedApplicationObject) {}

MULTINODE_TEST(BoxTest, UnserializedApplicationObject) {}

}  // namespace
}  // namespace ipcz