#include "remoting/base/queued_task_poster.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
class QueuedTaskPosterTest : public testing::Test { … };
QueuedTaskPosterTest::QueuedTaskPosterTest()
: … { … }
void QueuedTaskPosterTest::SetUp() { … }
void QueuedTaskPosterTest::TearDown() { … }
base::OnceClosure QueuedTaskPosterTest::SetSequenceStartedClosure(
bool started) { … }
base::OnceClosure QueuedTaskPosterTest::AssertExecutionOrderClosure(int order) { … }
base::OnceClosure QueuedTaskPosterTest::AssertSequenceNotStartedClosure() { … }
void QueuedTaskPosterTest::RunUntilPosterDone() { … }
void QueuedTaskPosterTest::SetSequenceStarted(bool started) { … }
void QueuedTaskPosterTest::AssertExecutionOrder(int order) { … }
void QueuedTaskPosterTest::AssertSequenceNotStarted() { … }
TEST_F(QueuedTaskPosterTest, TestTaskOrder) { … }
TEST_F(QueuedTaskPosterTest, TestTaskSequenceNotInterfered) { … }
TEST_F(QueuedTaskPosterTest, TestUsingPosterInMultipleTasks) { … }
}