Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: chrome/android/host_driven_tests/DummyTest.py

Issue 12207171: [Android] Add a dummy host-driven test for ChromiumTestShell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/host_driven_tests/DummyTest.py
diff --git a/chrome/android/host_driven_tests/DummyTest.py b/chrome/android/host_driven_tests/DummyTest.py
new file mode 100644
index 0000000000000000000000000000000000000000..accbdb918c49338ab7425b6e9ecf7c0013df0f36
--- /dev/null
+++ b/chrome/android/host_driven_tests/DummyTest.py
@@ -0,0 +1,24 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+
+from pylib.host_driven import python_test_base
+from pylib.host_driven import tests_annotations
+
+
+DUMMY_JAVA_TEST_PATH = os.path.abspath(
+ os.path.join(os.path.dirname(__file__), os.pardir, 'javatests', 'src',
+ 'org', 'chromium', 'chrome', 'browser', 'test',
+ 'DummyTest.java'))
+
+
+class DummyTest(python_test_base.PythonTestBase):
+ """Dummy host-driven test for testing the framework itself."""
+
+ @tests_annotations.Smoke
+ def testPass(self):
+ return self._RunJavaTests(
+ DUMMY_JAVA_TEST_PATH, ['DummyTest.testPass'])
+

Powered by Google App Engine
This is Rietveld 408576698