chromium/base/test/repeating_test_future_unittest.cc

// Copyright 2021 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/repeating_test_future.h"

#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/gtest_util.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base::test {

namespace {

struct MoveOnlyValue {};

}  // namespace

class RepeatingTestFutureTest : public ::testing::Test {};

TEST_F(RepeatingTestFutureTest, ShouldBeEmptyInitially) {}

TEST_F(RepeatingTestFutureTest, ShouldNotBeEmptyAfterAddingAValue) {}

TEST_F(RepeatingTestFutureTest, ShouldBeEmptyAfterTakingTheOnlyElement) {}

TEST_F(RepeatingTestFutureTest,
       ShouldNotBeEmptyIfTakingOneElementFromAfutureWith2Elements) {}

TEST_F(RepeatingTestFutureTest, ShouldTakeElementsFiFo) {}

TEST_F(RepeatingTestFutureTest, WaitShouldBlockUntilElementArrives) {}

TEST_F(RepeatingTestFutureTest, WaitShouldReturnTrueWhenValueArrives) {}

TEST_F(RepeatingTestFutureTest,
       WaitShouldReturnTrueImmediatelyWhenValueIsAlreadyPresent) {}

TEST_F(RepeatingTestFutureTest, WaitShouldReturnFalseIfTimeoutHappens) {}

TEST_F(RepeatingTestFutureTest, TakeShouldBlockUntilAnElementArrives) {}

TEST_F(RepeatingTestFutureTest, TakeShouldDcheckIfTimeoutHappens) {}

TEST_F(RepeatingTestFutureTest, TakeShouldWorkWithMoveOnlyValue) {}

TEST_F(RepeatingTestFutureTest, ShouldStoreValuePassedToCallback) {}

TEST_F(RepeatingTestFutureTest, ShouldAllowInvokingCallbackMultipleTimes) {}

TEST_F(RepeatingTestFutureTest, ShouldAllowReferenceArgumentsForCallback) {}

TEST_F(RepeatingTestFutureTest, ShouldStoreMultipleValuesInATuple) {}

TEST_F(RepeatingTestFutureTest, ShouldAllowCallbackWithMultipleValues) {}

TEST_F(RepeatingTestFutureTest,
       ShouldAllowCallbackWithMultipleReferenceValues) {}

TEST_F(RepeatingTestFutureTest, ShouldSupportCvRefType) {}

TEST_F(RepeatingTestFutureTest, ShouldSupportMultipleCvRefType) {}

}  // namespace base::test