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

Unified Diff: build/android/pylib/gtest/gtest_test_instance_test.py

Issue 788753002: [Android] Implement gtest and local in platform mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs + move log parsing up to GtestTestInstance Created 6 years 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: build/android/pylib/gtest/gtest_test_instance_test.py
diff --git a/build/android/pylib/gtest/test_package_test.py b/build/android/pylib/gtest/gtest_test_instance_test.py
similarity index 80%
rename from build/android/pylib/gtest/test_package_test.py
rename to build/android/pylib/gtest/gtest_test_instance_test.py
index c4d552ed23433a0859b0ac9af7bc6f1a51cf71c8..c52b2354c4183663890327e471e6306c1db2997f 100755
--- a/build/android/pylib/gtest/test_package_test.py
+++ b/build/android/pylib/gtest/gtest_test_instance_test.py
@@ -5,12 +5,10 @@
import unittest
-from pylib.gtest import test_package
+from pylib.gtest import gtest_test_instance
-# pylint: disable=W0212
-
-class TestPackageTest(unittest.TestCase):
+class GtestTestInstanceTests(unittest.TestCase):
def testParseGTestListTests_simple(self):
raw_output = [
@@ -21,7 +19,7 @@ class TestPackageTest(unittest.TestCase):
' testThree',
' testFour',
]
- actual = test_package.TestPackage._ParseGTestListTests(raw_output)
+ actual = gtest_test_instance.ParseGTestListTests(raw_output)
expected = [
'TestCaseOne.testOne',
'TestCaseOne.testTwo',
@@ -36,7 +34,7 @@ class TestPackageTest(unittest.TestCase):
' testOne',
' testTwo',
]
- actual = test_package.TestPackage._ParseGTestListTests(raw_output)
+ actual = gtest_test_instance.ParseGTestListTests(raw_output)
expected = [
'TPTestCase/WithTypeParam/0.testOne',
'TPTestCase/WithTypeParam/0.testTwo',
@@ -49,7 +47,7 @@ class TestPackageTest(unittest.TestCase):
' testOne',
' testTwo',
]
- actual = test_package.TestPackage._ParseGTestListTests(raw_output)
+ actual = gtest_test_instance.ParseGTestListTests(raw_output)
expected = [
'TPTestCase/WithTypeParam/0.testOne',
'TPTestCase/WithTypeParam/0.testTwo',
@@ -62,7 +60,7 @@ class TestPackageTest(unittest.TestCase):
' testWithValueParam/0',
' testWithValueParam/1',
]
- actual = test_package.TestPackage._ParseGTestListTests(raw_output)
+ actual = gtest_test_instance.ParseGTestListTests(raw_output)
expected = [
'VPTestCase.testWithValueParam/0',
'VPTestCase.testWithValueParam/1',
@@ -75,7 +73,7 @@ class TestPackageTest(unittest.TestCase):
' testWithValueParam/0 # GetParam() = 0',
' testWithValueParam/1 # GetParam() = 1',
]
- actual = test_package.TestPackage._ParseGTestListTests(raw_output)
+ actual = gtest_test_instance.ParseGTestListTests(raw_output)
expected = [
'VPTestCase.testWithValueParam/0',
'VPTestCase.testWithValueParam/1',
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/android/pylib/gtest/local_device_gtest_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698