Lines Matching refs:isOk
104 ASSERT_TRUE(power->setMode(mode, true).isOk()); in TEST_P()
105 ASSERT_TRUE(power->setMode(mode, false).isOk()); in TEST_P()
108 ASSERT_TRUE(power->setMode(mode, true).isOk()); in TEST_P()
109 ASSERT_TRUE(power->setMode(mode, false).isOk()); in TEST_P()
116 ASSERT_TRUE(power->isModeSupported(mode, &supported).isOk()); in TEST_P()
120 ASSERT_TRUE(power->isModeSupported(mode, &supported).isOk()); in TEST_P()
128 ASSERT_TRUE(power->setBoost(boost, 0).isOk()); in TEST_P()
129 ASSERT_TRUE(power->setBoost(boost, 1000).isOk()); in TEST_P()
130 ASSERT_TRUE(power->setBoost(boost, -1).isOk()); in TEST_P()
133 ASSERT_TRUE(power->setBoost(boost, 0).isOk()); in TEST_P()
134 ASSERT_TRUE(power->setBoost(boost, 1000).isOk()); in TEST_P()
135 ASSERT_TRUE(power->setBoost(boost, -1).isOk()); in TEST_P()
142 ASSERT_TRUE(power->isBoostSupported(boost, &supported).isOk()); in TEST_P()
146 ASSERT_TRUE(power->isBoostSupported(boost, &supported).isOk()); in TEST_P()
155 if (!status.isOk()) { in TEST_P()
167 if (!status.isOk()) { in TEST_P()
172 ASSERT_TRUE(session->pause().isOk()); in TEST_P()
173 ASSERT_TRUE(session->resume().isOk()); in TEST_P()
175 ASSERT_TRUE(session->close().isOk()); in TEST_P()
181 ASSERT_FALSE(status.isOk()); in TEST_P()
191 if (!status.isOk()) { in TEST_P()
197 ASSERT_TRUE(session->updateTargetWorkDuration(16666667LL).isOk()); in TEST_P()
198 ASSERT_TRUE(session->reportActualWorkDuration(kDurations).isOk()); in TEST_P()
212 ASSERT_TRUE(power->isModeSupported(Mode::FIXED_PERFORMANCE, &supported).isOk()); in TEST_P()