#include "net/base/prioritized_task_runner.h"
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/rand_util.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "base/threading/thread_restrictions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
class PrioritizedTaskRunnerTest : public testing::Test { … };
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyThreadCheck) { … }
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyRunsBothTasks) { … }
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyTestPriority) { … }
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyTestReplyPriority) { … }
TEST_F(PrioritizedTaskRunnerTest, PriorityOverflow) { … }
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyWithResultRunsBothTasks) { … }
TEST_F(PrioritizedTaskRunnerTest, PostTaskAndReplyWithResultTestPriority) { … }
TEST_F(PrioritizedTaskRunnerTest, OrderSamePriorityByPostOrder) { … }
}
}