Lines Matching refs:uc
35 import unittest_constants as uc namespace
44 TEST_MAPPING_TOP_DIR = os.path.join(uc.TEST_DATA_DIR, 'test_mapping')
65 if test_name == uc.MODULE_NAME:
66 test_infos.add(uc.MODULE_INFO)
67 if test_name == uc.CLASS_NAME:
68 test_infos.add(uc.CLASS_INFO)
95 reload(uc)
107 find_method_return_module_info = lambda x, y: uc.MODULE_INFOS
109 find_method_return_module_class_info = (lambda x, test: uc.MODULE_INFOS
110 if test == uc.MODULE_NAME
111 else uc.CLASS_INFOS)
113 one_test = [uc.MODULE_NAME]
114 mult_test = [uc.MODULE_NAME, uc.CLASS_NAME]
117 expected_test_infos = {uc.MODULE_INFO}
124 expected_test_infos = {uc.MODULE_INFO, uc.CLASS_INFO}
144 mock_findtestbymodule.return_value = uc.MODULE_INFO
146 self, ctr._get_test_infos([uc.TYPO_MODULE_NAME]), {uc.MODULE_INFO})
149 test_detail1 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
150 test_detail2 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
151 expected_test_infos = {uc.MODULE_INFO, uc.CLASS_INFO}
160 if test_info == uc.MODULE_INFO:
174 find_method_return_module_info2 = lambda x, y: uc.MODULE_INFOS2
176 lambda x, test: uc.MODULE_INFOS2
177 if test == uc.MODULE_NAME else uc.CLASS_INFOS2)
178 one_test = [uc.MODULE_NAME]
179 mult_test = [uc.MODULE_NAME, uc.CLASS_NAME]
181 expected_test_infos = {uc.MODULE_INFO, uc.MODULE_INFO2}
188 expected_test_infos = {uc.MODULE_INFO, uc.CLASS_INFO, uc.MODULE_INFO2,
189 uc.CLASS_INFO2}
196 test_detail1 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
197 test_detail2 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
198 expected_test_infos = {uc.MODULE_INFO, uc.CLASS_INFO, uc.MODULE_INFO2,
199 uc.CLASS_INFO2}
208 if test_info in [uc.MODULE_INFO, uc.MODULE_INFO2]:
212 elif test_info in [uc.CLASS_INFO, uc.CLASS_INFO2]:
222 self.args.tests = [uc.CLASS_NAME]
225 self, targets, uc.CLASS_BUILD_TARGETS)
226 unittest_utils.assert_strict_equal(self, test_infos, {uc.CLASS_INFO})
233 self.args.tests = [uc.MODULE_NAME, uc.CLASS_NAME]
236 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
237 unittest_utils.assert_strict_equal(self, test_infos, {uc.MODULE_INFO,
238 uc.CLASS_INFO})
246 test_detail1 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
247 test_detail2 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
252 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
253 unittest_utils.assert_strict_equal(self, test_infos, {uc.MODULE_INFO,
254 uc.CLASS_INFO})
262 test_detail1 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
263 test_detail2 = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
269 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
270 unittest_utils.assert_strict_equal(self, test_infos, {uc.MODULE_INFO,
271 uc.CLASS_INFO})
275 os_environ_mock = {constants.ANDROID_BUILD_TOP: uc.TEST_DATA_DIR}
291 os_environ_mock = {constants.ANDROID_BUILD_TOP: uc.TEST_DATA_DIR}
309 os_environ_mock = {constants.ANDROID_BUILD_TOP: uc.TEST_DATA_DIR}
327 os_environ_mock = {constants.ANDROID_BUILD_TOP: uc.TEST_DATA_DIR}
349 modules = [uc.MODULE_NAME, uc.MODULE2_NAME]
355 uc.MODULE_NAME, uc.MODULE2_NAME)