OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 | 6 |
7 from pylib.host_driven import python_test_base | 7 from pylib.host_driven import test_case |
8 from pylib.host_driven import tests_annotations | 8 from pylib.host_driven import tests_annotations |
9 | 9 |
10 | 10 |
11 DUMMY_JAVA_TEST_PATH = os.path.abspath( | 11 class DummyTest(test_case.HostDrivenTestCase): |
12 os.path.join(os.path.dirname(__file__), os.pardir, 'javatests', 'src', | |
13 'org', 'chromium', 'chrome', 'browser', 'test', | |
14 'DummyTest.java')) | |
15 | |
16 | |
17 class DummyTest(python_test_base.PythonTestBase): | |
18 """Dummy host-driven test for testing the framework itself.""" | 12 """Dummy host-driven test for testing the framework itself.""" |
19 | 13 |
20 @tests_annotations.Smoke | 14 @tests_annotations.Smoke |
21 def testPass(self): | 15 def testPass(self): |
22 return self._RunJavaTests( | 16 return self._RunJavaTests( |
23 DUMMY_JAVA_TEST_PATH, ['DummyTest.testPass']) | 17 'org.chromium.chrome.browser.test', ['DummyTest.testPass']) |
24 | |
OLD | NEW |