#include "perfetto/ext/base/threading/future.h"
#include <memory>
#include "perfetto/base/flat_set.h"
#include "perfetto/base/platform_handle.h"
#include "test/gtest_and_gmock.h"
namespace perfetto {
namespace base {
namespace {
_;
Return;
template <typename T>
class MockPollable : public FuturePollable<T> { … };
class FutureUnittest : public ::testing::Test { … };
TEST_F(FutureUnittest, PollableImmediateResult) { … }
TEST_F(FutureUnittest, PollablePendingThenResult) { … }
TEST_F(FutureUnittest, ImmediateFuture) { … }
TEST_F(FutureUnittest, ContinueWithBothImmediate) { … }
TEST_F(FutureUnittest, ImmediateContinueWithPending) { … }
TEST_F(FutureUnittest, PendingContinueWithImmediate) { … }
}
}
}