chromium/components/feed/core/v2/test/callback_receiver.h

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

#ifndef COMPONENTS_FEED_CORE_V2_TEST_CALLBACK_RECEIVER_H_
#define COMPONENTS_FEED_CORE_V2_TEST_CALLBACK_RECEIVER_H_

#include <memory>
#include <optional>
#include <tuple>
#include <utility>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_forward.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"

namespace feed {
namespace internal {

template <typename T>
std::optional<T> Nullopt() {}

class CallbackReceiverBase {};

}  // namespace internal

template <typename... T>
class CallbackReceiver : public internal::CallbackReceiverBase {};

template <>
class CallbackReceiver<> : public internal::CallbackReceiverBase {};

}  // namespace feed

#endif  // COMPONENTS_FEED_CORE_V2_TEST_CALLBACK_RECEIVER_H_