chromium/base/test/gmock_callback_support_unittest.cc

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

#include "base/test/gmock_callback_support.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
ByRef;
MockFunction;

namespace base::test {

TestCallback;
TestOnceCallback;
TestOnceCallbackMove;

void SetBool(const bool& src, bool* dst) {}

void SetIntFromPtr(std::unique_ptr<int> ptr, int* dst) {}

TEST(GmockCallbackSupportTest, IsNullCallback) {}

TEST(GmockCallbackSupportTest, IsNotNullCallback) {}

TEST(GmockCallbackSupportTest, IsNullOnceCallback) {}

TEST(GmockCallbackSupportTest, IsNotNullOnceCallback) {}

TEST(GmockCallbackSupportTest, RunClosure0) {}

TEST(GmockCallbackSupportTest, RunClosureByRefNotReset) {}

TEST(GmockCallbackSupportTest, RunCallback0) {}

TEST(GmockCallbackSupportTest, RunCallback1) {}

TEST(GmockCallbackSupportTest, RunCallbackPassByRef) {}

TEST(GmockCallbackSupportTest, RunCallbackPassByValue) {}

TEST(GmockCallbackSupportTest, RunOnceClosure0) {}

TEST(GmockCallbackSupportTest, RunOnceCallback0) {}

TEST(GmockCallbackSupportTest, RunOnceCallbackTwice) {}

TEST(GmockCallbackSupportTest, RunClosureValue) {}

TEST(GmockCallbackSupportTest, RunClosureValueWithArgs) {}

TEST(GmockCallbackSupportTest, RunOnceClosureValue) {}

TEST(GmockCallbackSupportTest, RunOnceClosureValueWithArgs) {}

TEST(GmockCallbackSupportTest, RunOnceClosureValueMultipleCall) {}

TEST(GmockCallbackSupportTest, RunOnceCallbackWithMoveOnlyType) {}

TEST(GmockCallbackSupportTest, RunOnceCallbackMultipleTimesCrashes) {}

TEST(GmockCallbackSupportTest, RunOnceCallbackReturnsValue) {}

TEST(GmockCallbackSupportTest, RunOnceCallbackReturnsValueMoveOnly) {}

TEST(GmockCallbackSupportTest, RunCallbackReturnsValue) {}

// Smoke test to validate that RunOnceCallback<> works with vectors of move-only
// args.
TEST(GmockCallbackSupportTest, VectorOfMoveOnlyArgs) {}

}  // namespace base::test