#include "cc/raster/categorized_worker_pool.h"
#include <utility>
#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "base/test/sequenced_task_runner_test_template.h"
#include "base/test/task_runner_test_template.h"
#include "base/threading/platform_thread.h"
#include "base/threading/simple_thread.h"
#include "cc/test/task_graph_runner_test_template.h"
namespace cc {
namespace {
const int kNumThreads = …;
template <class T>
class CategorizedWorkerPoolTestDelegate { … };
template <class T>
class CategorizedWorkerPoolSequencedTestDelegate { … };
template <class T, int NumThreads>
class CategorizedWorkerPoolTaskGraphRunnerTestDelegate { … };
class CategorizedWorkerPoolTest : public testing::TestWithParam<bool> { … };
class ClosureTask : public Task { … };
}
TEST_P(CategorizedWorkerPoolTest, BackgroundTasksDontRunConcurrently) { … }
TEST_P(CategorizedWorkerPoolTest,
AcquiresForegroundResourcesNotBackgroundThreadPriority) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
namespace base {
INSTANTIATE_TYPED_TEST_SUITE_P(…);
INSTANTIATE_TYPED_TEST_SUITE_P(…);
INSTANTIATE_TYPED_TEST_SUITE_P(…);
INSTANTIATE_TYPED_TEST_SUITE_P(…);
}
namespace cc {
CategorizedWorkerPoolImplTaskGraphRunnerTestDelegate_1_5;
INSTANTIATE_TYPED_TEST_SUITE_P(…);
CategorizedWorkerPoolJobTaskGraphRunnerTestDelegate_1_5;
INSTANTIATE_TYPED_TEST_SUITE_P(…);
CategorizedWorkerPoolImplTaskGraphRunnerTestDelegate;
INSTANTIATE_TYPED_TEST_SUITE_P(…);
CategorizedWorkerPoolJobTaskGraphRunnerTestDelegate;
INSTANTIATE_TYPED_TEST_SUITE_P(…);
}