Home
last modified time | relevance | path

Searched refs:sm_ (Results 1 – 2 of 2) sorted by relevance

/system/bt/common/
Dstate_machine_unittest.cc151 void SetUp() override { sm_.Start(); } in SetUp()
153 void TearDown() override { sm_.Quit(); } in TearDown()
155 StateMachineImpl sm_; member in StateMachineTest
159 ASSERT_EQ(sm_.kStateZero, sm_.StateId()); in TEST_F()
160 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F()
164 sm_.Quit(); in TEST_F()
165 ASSERT_EQ(sm_.kStateInvalid, sm_.StateId()); in TEST_F()
166 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F()
167 sm_.Start(); in TEST_F()
168 ASSERT_EQ(sm_.kStateZero, sm_.StateId()); in TEST_F()
[all …]
Dstate_machine.h48 State(StateMachine& sm, int state_id) : sm_(sm), state_id_(state_id) {} in State()
87 void TransitionTo(int dest_state_id) { sm_.TransitionTo(dest_state_id); } in TransitionTo()
95 sm_.TransitionTo(dest_state); in TransitionTo()
99 StateMachine& sm_;