Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc6ead0a authored by Lei Ju's avatar Lei Ju
Browse files

Update the tests to register callback first

Test: VTS test for
      ContextHub/ContextHubAidl#TestHostConnection/CONTEXT_HUB_ID_0
Bug: 323962639
Change-Id: Ib58601200529a006b94e2326141abf15eda26462
parent f5d717f2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -421,7 +421,7 @@ std::vector<std::tuple<std::string, int32_t>> generateContextHubMapping() {
    return tuples;
}

TEST_P(ContextHubAidl, TestHostConnection) {
TEST_P(ContextHubTransactionTest, TestHostConnection) {
    constexpr char16_t kHostEndpointId = 1;
    HostEndpointInfo hostEndpointInfo;
    hostEndpointInfo.type = HostEndpointInfo::Type::NATIVE;
@@ -431,13 +431,13 @@ TEST_P(ContextHubAidl, TestHostConnection) {
    ASSERT_TRUE(contextHub->onHostEndpointDisconnected(kHostEndpointId).isOk());
}

TEST_P(ContextHubAidl, TestInvalidHostConnection) {
TEST_P(ContextHubTransactionTest, TestInvalidHostConnection) {
    constexpr char16_t kHostEndpointId = 1;

    ASSERT_TRUE(contextHub->onHostEndpointDisconnected(kHostEndpointId).isOk());
}

TEST_P(ContextHubAidl, TestNanSessionStateChange) {
TEST_P(ContextHubTransactionTest, TestNanSessionStateChange) {
    NanSessionStateUpdate update;
    update.state = true;
    Status status = contextHub->onNanSessionStateChanged(update);