Lines Matching refs:testing

26 namespace android::hardware::audio::common::testing {
30 class TestExecutionTracer : public ::testing::EmptyTestEventListener {
32 void OnTestStart(const ::testing::TestInfo& test_info) override;
33 void OnTestEnd(const ::testing::TestInfo& test_info) override;
34 void OnTestPartResult(const ::testing::TestPartResult& result) override;
36 static void TraceTestState(const std::string& state, const ::testing::TestInfo& test_info);
39 inline ::testing::AssertionResult assertIsOk(const char* expr, const ::ndk::ScopedAStatus& status) { in assertIsOk()
41 return ::testing::AssertionSuccess(); in assertIsOk()
43 return ::testing::AssertionFailure() in assertIsOk()
48 inline ::testing::AssertionResult assertResult(const char* exp_expr, const char* act_expr, in assertResult()
52 return ::testing::AssertionSuccess(); in assertResult()
54 return ::testing::AssertionFailure() in assertResult()
60 inline ::testing::AssertionResult assertResult(const char* exp_expr, const char* act_expr, in assertResult()
64 return ::testing::AssertionSuccess(); in assertResult()
66 return ::testing::AssertionFailure() << "Expected the transaction \'" << act_expr in assertResult()
68 << "\n which is: " << ::testing::PrintToString(expected) in assertResult()
72 inline ::testing::AssertionResult assertIsOkOrUnknownTransaction( in assertIsOkOrUnknownTransaction()
75 return ::testing::AssertionSuccess(); in assertIsOkOrUnknownTransaction()
80 inline ::testing::AssertionResult assertResultOrUnknownTransaction( in assertResultOrUnknownTransaction()
84 return ::testing::AssertionSuccess(); in assertResultOrUnknownTransaction()
95 ASSERT_PRED_FORMAT1(::android::hardware::audio::common::testing::detail::assertIsOk, ret)
97 EXPECT_PRED_FORMAT1(::android::hardware::audio::common::testing::detail::assertIsOk, ret)
101 ASSERT_PRED_FORMAT2(::android::hardware::audio::common::testing::detail::assertResult, \
104 EXPECT_PRED_FORMAT2(::android::hardware::audio::common::testing::detail::assertResult, \
119 ::android::hardware::audio::common::testing::detail::assertIsOkOrUnknownTransaction, \
125 ::android::hardware::audio::common::testing::detail::assertResultOrUnknownTransaction, \