summaryrefslogtreecommitdiff
path: root/system/gd/rust/topshim/facade/adapter_test.py
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-01-27 22:41:43 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-27 22:41:43 +0000
commitb057d192555ae26ece2599bccaccaf89f107052c (patch)
treee15a567b90b7244fb20238e16f6e4aeb1f372fc1 /system/gd/rust/topshim/facade/adapter_test.py
parentaf48404ae914ecf8a88ceb0cdd8a1ae07b7d2944 (diff)
parentcd5219ab98b8d44d25ee237343e9045c354b2033 (diff)
Merge "Move some topshim test files to blueberry/" am: 775bf32b16 am: af444ba015 am: cd5219ab98
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1961920 Change-Id: Ia91cf1e0dcfd3651617a1a7b7feac273706e8470
Diffstat (limited to 'system/gd/rust/topshim/facade/adapter_test.py')
-rw-r--r--system/gd/rust/topshim/facade/adapter_test.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/system/gd/rust/topshim/facade/adapter_test.py b/system/gd/rust/topshim/facade/adapter_test.py
deleted file mode 100644
index b6b671770d..0000000000
--- a/system/gd/rust/topshim/facade/adapter_test.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python3
-#
-# Copyright 2021 - The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import asyncio
-from mobly import test_runner
-from rust.topshim.facade import topshim_base_test
-from rust.topshim.facade.automation_helper import AdapterAutomationHelper
-
-
-class AdapterTest(topshim_base_test.TopshimBaseTest):
-
- async def _test_verify_adapter_started(self):
- self.dut_adapter = AdapterAutomationHelper(port=self.dut_port)
- event_loop = asyncio.get_running_loop()
- self.dut_adapter.fetch_events(event_loop)
- self.dut_adapter.pending_future = event_loop.create_future()
- await self.dut_adapter.toggle_stack()
- await self.dut_adapter.verify_adapter_started()
- self.dut_adapter.event_handler.cancel()
-
- def test_verify_adapter_started(self):
- asyncio.run(self._test_verify_adapter_started())
-
-
-if __name__ == "__main__":
- test_runner.main()