chromium/third_party/webrtc/rtc_base/callback_list_unittest.cc

/*
 *  Copyright 2020 The WebRTC Project Authors. All rights reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */
#include "rtc_base/callback_list.h"

#include <string>
#include <type_traits>

#include "api/function_view.h"
#include "test/gtest.h"

namespace webrtc {
namespace {

TEST(CallbackList, NoReceiverSingleMessageTest) {}

TEST(CallbackList, MultipleParameterMessageTest) {}

TEST(CallbackList, NoParameterMessageTest) {}

TEST(CallbackList, ReferenceTest) {}

enum State {};

TEST(CallbackList, SingleEnumValueTest) {}

TEST(CallbackList, SingleEnumReferenceTest) {}

TEST(CallbackList, ConstReferenceTest) {}

TEST(CallbackList, PointerTest) {}

TEST(CallbackList, CallByValue) {}

void PlusOne(int& a) {}

TEST(CallbackList, FunctionPtrTest) {}

struct LargeNonTrivial {};

TEST(CallbackList, LargeNonTrivialTest) {}

struct LargeTrivial {};

TEST(CallbackList, LargeTrivial) {}

struct OnlyNonTriviallyConstructible {};

TEST(CallbackList, OnlyNonTriviallyMoveConstructible) {}

TEST(CallbackList, MultipleReceiverSendTest) {}

class A {};

TEST(CallbackList, MemberFunctionTest) {}

// todo(glahiru): Add a test case to catch some error for Karl's first fix

TEST(CallbackList, RemoveOneReceiver) {}

TEST(CallbackList, RemoveZeroReceivers) {}

TEST(CallbackList, RemoveManyReceivers) {}

TEST(CallbackList, RemoveFromSend) {}

}  // namespace
}  // namespace webrtc