// 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. #ifndef IPCZ_SRC_TEST_TEST_BASE_H_ #define IPCZ_SRC_TEST_TEST_BASE_H_ #include <functional> #include <string_view> #include <utility> #include "ipcz/ipcz.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/abseil-cpp/absl/types/span.h" namespace ipcz::test::internal { // Base class for ipcz unit tests (see ipcz::test::Test in test.h) and multinode // test fixtures (see ipcz::test::MultinodeTest in multinode_test.h). // // Test fixtures should never derive from this class directly. For unit tests, // use ipcz::test::Test as a base. For multinode tests, use ipcz::test:TestNode // as a base for MULTINODE_TEST_NODE() invocations, and use // ipcz::test::MultinodeTest<T> (where T is a subclass of TestNode) for // MULTINODE_TEST() invocations for parameterized multinode test bodies. class TestBase { … }; } // namespace ipcz::test::internal #endif // IPCZ_SRC_TEST_TEST_BASE_H_