chromium/components/autofill/core/browser/payments/wait_for_signal_or_timeout_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 "components/autofill/core/browser/payments/wait_for_signal_or_timeout.h"

#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

class WaitForSignalOrTimeoutTest : public testing::Test {};

// WaitForSignalOrTimeout is initialized with a callback and then the Signal()
// happens.
TEST_F(WaitForSignalOrTimeoutTest, InitThenSignal) {}

// A Signal() is registered before the callback.
TEST_F(WaitForSignalOrTimeoutTest, SignalThenInit) {}

// A timeout occurs before Signal() is called.
TEST_F(WaitForSignalOrTimeoutTest, InitThenTimeout) {}

// The WaitForSignalOrTimeout gets destroyed before a Signal() or timeout
// happens.
TEST_F(WaitForSignalOrTimeoutTest, DestroyedBeforeSignal) {}

// The WaitForSignalOrTimeout gets signaled, reset, and signaled again.
TEST_F(WaitForSignalOrTimeoutTest, Reset) {}

TEST_F(WaitForSignalOrTimeoutTest, OnEventOrTimeOutCalledTwice) {}