Home
last modified time | relevance | path

Searched refs:promise_ (Results 1 – 6 of 6) sorted by relevance

/system/bt/common/
Drepeating_timer_unittest.cc81 auto future = promise_->get_future(); in VerifyMultipleDelayedTasks()
88 task_length_ms, promise_), in VerifyMultipleDelayedTasks()
101 promise_ = new std::promise<void>(); in SetUp()
105 if (promise_ != nullptr) { in TearDown()
106 delete promise_; in TearDown()
107 promise_ = nullptr; in TearDown()
117 std::promise<void>* promise_; member in RepeatingTimerTest
138 auto future = promise_->get_future(); in TEST_F()
145 base::Unretained(this), num_tasks, promise_), in TEST_F()
200 auto future = promise_->get_future(); in TEST_F()
[all …]
Donce_timer_unittest.cc66 promise_ = new std::promise<void>(); in SetUp()
70 if (promise_ != nullptr) { in TearDown()
71 delete promise_; in TearDown()
72 promise_ = nullptr; in TearDown()
82 std::promise<void>* promise_; member in OnceTimerTest
93 auto future = promise_->get_future(); in TEST_F()
99 base::Unretained(this), &my_name, promise_), in TEST_F()
162 auto future = promise_->get_future(); in TEST_F()
167 base::Unretained(this), promise_, delay_ms), in TEST_F()
214 auto future = promise_->get_future(); in TEST_F()
[all …]
/system/bt/test/headless/read/
Dname.cc30 std::promise<tBTM_REMOTE_DEV_NAME> promise_; variable
33 promise_.set_value(*static_cast<tBTM_REMOTE_DEV_NAME*>(data)); in RemoteNameCallback()
51 promise_ = std::promise<tBTM_REMOTE_DEV_NAME>(); in Run()
53 auto future = promise_.get_future(); in Run()
/system/bt/gd/os/
Dalarm_benchmark.cc47 promise_ = std::promise<void>(); in SetUp()
66 promise_.set_value(); in AlarmSleepAndCountDelayedTime()
71 promise_.set_value(); in TimerFire()
79 std::promise<void> promise_; member in BM_ReactableAlarm
94 promise_.get_future().get(); in BENCHMARK_DEFINE_F()
124 promise_.get_future().get(); in BENCHMARK_DEFINE_F()
Dqueue_benchmark.cc60 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestEnqueueEnd()
87 promise_->set_value(); in EnqueueCallbackForTest()
99 std::promise<void>* promise_; member in bluetooth::os::TestEnqueueEnd
110 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestDequeueEnd()
123 promise_->set_value(); in DequeueCallbackForTest()
133 std::promise<void>* promise_; member in bluetooth::os::TestDequeueEnd
/system/bt/gd/os/android/
Dwakelock_native_test.cc62 : promise_(promise), expect_fulfillment_(expect_fulfillment) { in PromiseFutureContext()
64 EXPECT_EQ(promise_, nullptr); in PromiseFutureContext()
65 promise_ = std::make_unique<std::promise<void>>(); in PromiseFutureContext()
77 promise_ = nullptr; in ~PromiseFutureContext()
81 std::unique_ptr<std::promise<void>>& promise_; member in testing::PromiseFutureContext