Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: base/task_scheduler/task_scheduler_impl_unittest.cc

Issue 2064073003: TaskScheduler: Make the worker pools of TaskSchedulerImpl configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/task_scheduler/task_scheduler_impl_unittest.cc
diff --git a/base/task_scheduler/task_scheduler_impl_unittest.cc b/base/task_scheduler/task_scheduler_impl_unittest.cc
index 50e0caeb1c7059f467376c2ac7311a3eb01e841f..47fbf7b16c54470d4d2a1e30e0182a8fcb61d0f8 100644
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
+#include <map>
#include <string>
#include <utility>
#include <vector>
@@ -44,7 +45,8 @@ class TaskSchedulerImplTest
TaskSchedulerImplTest() = default;
void SetUp() override {
- scheduler_ = TaskSchedulerImpl::Create();
+ scheduler_ =
+ TaskSchedulerImpl::Create(std::map<std::string, std::string>());
EXPECT_TRUE(scheduler_);
}
void TearDown() override { scheduler_->JoinForTesting(); }
@@ -195,7 +197,8 @@ INSTANTIATE_TEST_CASE_P(OneTraitsExecutionModePair,
// the expected priority and I/O restrictions and respects the characteristics
// of its ExecutionMode.
TEST(TaskSchedulerImplTest, MultipleTraitsExecutionModePairs) {
- std::unique_ptr<TaskSchedulerImpl> scheduler = TaskSchedulerImpl::Create();
+ std::unique_ptr<TaskSchedulerImpl> scheduler =
+ TaskSchedulerImpl::Create(std::map<std::string, std::string>());
std::vector<std::unique_ptr<ThreadPostingTasks>> threads_posting_tasks;
for (const auto& traits_execution_mode_pair : GetTraitsExecutionModePairs()) {
« base/task_scheduler/task_scheduler_impl.cc ('K') | « base/task_scheduler/task_scheduler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698