Searched refs:may_block (Results 1 – 11 of 11) sorted by relevance
16 EXPECT_FALSE(traits.may_block()); in TEST()25 EXPECT_FALSE(traits.may_block()); in TEST()34 EXPECT_FALSE(traits.may_block()); in TEST()43 EXPECT_TRUE(traits.may_block()); in TEST()52 EXPECT_FALSE(traits.may_block()); in TEST()63 EXPECT_TRUE(traits.may_block()); in TEST()76 EXPECT_EQ(traits.may_block(), traits_copy.may_block()); in TEST()90 EXPECT_FALSE(overridden.may_block()); in TEST()103 EXPECT_FALSE(overridden.may_block()); in TEST()117 EXPECT_TRUE(overridden.may_block()); in TEST()[all …]
17 if (traits.may_block() || traits.with_base_sync_primitives()) in GetEnvironmentIndexForTraits()
200 constexpr bool may_block() const { return may_block_; } in may_block() function
460 [task_traits.may_block() || task_traits.with_base_sync_primitives() in RecordLatencyHistogram()477 ThreadRestrictions::SetIOAllowed(task.traits.may_block()); in RunOrSkipTask()
89 EXPECT_EQ(traits.may_block(), GetIOAllowed()); in VerifyTaskEnvironment()113 EXPECT_EQ(traits.may_block(), in VerifyTaskEnvironment()
1293 ScopedBlockingCall may_block(BlockingType::MAY_BLOCK); in TEST_F() local
44 bool FakeMessageLoop::RunOnce(bool may_block) { in RunOnce() argument49 (may_block || fire_order_.top().first <= current_time_)) { in RunOnce()
124 bool BaseMessageLoop::RunOnce(bool may_block) { in RunOnce() argument128 if (!may_block) in RunOnce()
84 virtual bool RunOnce(bool may_block) = 0;
44 bool RunOnce(bool may_block) override;
49 bool RunOnce(bool may_block) override;