• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from __future__ import annotations
6
7from crossbench.plt.chromeos_ssh import ChromeOsSshPlatform
8from tests import test_helper
9from tests.crossbench.plt.test_linux_ssh import LinuxSshMockPlatformTestCase
10
11
12class ChromeOsSshMockPlatformTestCase(LinuxSshMockPlatformTestCase):
13  SSH_USER = "chronos"
14  platform: ChromeOsSshPlatform
15
16  def setUp(self) -> None:
17    super().setUp()
18    self.platform = ChromeOsSshPlatform(
19        self.mock_platform,
20        host=self.HOST,
21        port=self.PORT,
22        ssh_port=self.SSH_PORT,
23        ssh_user=self.SSH_USER)
24
25  def test_name(self):
26    self.assertEqual(self.platform.name, "chromeos_ssh")
27
28  def test_is_chromeos(self):
29    self.assertTrue(self.platform.is_chromeos)
30
31if __name__ == "__main__":
32  test_helper.run_pytest(__file__)
33