/external/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 45 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() 70 message->set_optional_nested_enum(unittest::TestAllTypesLite::BAZ); in SetAllFields() 71 message->set_optional_foreign_enum(unittest::FOREIGN_LITE_BAZ); in SetAllFields() 99 message->add_repeated_nested_enum(unittest::TestAllTypesLite::BAR); in SetAllFields() 100 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAR); in SetAllFields() 127 message->add_repeated_nested_enum(unittest::TestAllTypesLite::BAZ); in SetAllFields() 128 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAZ); in SetAllFields() 150 message->set_default_nested_enum(unittest::TestAllTypesLite::FOO); in SetAllFields() 151 message->set_default_foreign_enum(unittest::FOREIGN_LITE_FOO); in SetAllFields() 163 void TestUtilLite::ModifyRepeatedFields(unittest::TestAllTypesLite* message) { in ModifyRepeatedFields() [all …]
|
D | extension_set_unittest.cc | 72 unittest::TestAllExtensions message; in TEST() 79 EXPECT_EQ(&unittest::OptionalGroup_extension::default_instance(), in TEST() 80 &message.GetExtension(unittest::optionalgroup_extension)); in TEST() 81 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST() 82 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST() 84 &unittest::ForeignMessage::default_instance(), in TEST() 85 &message.GetExtension(unittest::optional_foreign_message_extension)); in TEST() 87 &message.GetExtension(unittest::optional_import_message_extension)); in TEST() 93 unittest::TestAllExtensions message; in TEST() 105 unittest::TestAllExtensions message; in TEST() [all …]
|
D | map_lite_test_util.cc | 39 void MapLiteTestUtil::SetMapFields(unittest::TestMapLite* message) { in SetMapFields() 40 MapTestUtilImpl::SetMapFields<unittest::MapEnumLite, in SetMapFields() 41 unittest::MAP_ENUM_BAR_LITE, in SetMapFields() 42 unittest::MAP_ENUM_BAZ_LITE>(message); in SetMapFields() 45 void MapLiteTestUtil::SetArenaMapFields(unittest::TestArenaMapLite* message) { in SetArenaMapFields() 46 MapTestUtilImpl::SetArenaMapFields<unittest::MapEnumLite, in SetArenaMapFields() 47 unittest::MAP_ENUM_BAR_LITE, in SetArenaMapFields() 48 unittest::MAP_ENUM_BAZ_LITE>(message); in SetArenaMapFields() 51 void MapLiteTestUtil::SetMapFieldsInitialized(unittest::TestMapLite* message) { in SetMapFieldsInitialized() 55 void MapLiteTestUtil::ModifyMapFields(unittest::TestMapLite* message) { in ModifyMapFields() [all …]
|
D | test_util_lite.h | 43 namespace unittest = protobuf_unittest; variable 49 static void SetAllFields(unittest::TestAllTypesLite* message); 50 static void SetAllExtensions(unittest::TestAllExtensionsLite* message); 51 static void SetPackedFields(unittest::TestPackedTypesLite* message); 52 static void SetPackedExtensions(unittest::TestPackedExtensionsLite* message); 58 static void ModifyRepeatedFields(unittest::TestAllTypesLite* message); 60 unittest::TestAllExtensionsLite* message); 61 static void ModifyPackedFields(unittest::TestPackedTypesLite* message); 63 unittest::TestPackedExtensionsLite* message); 67 static void ExpectAllFieldsSet(const unittest::TestAllTypesLite& message); [all …]
|
D | reflection_ops_unittest.cc | 53 unittest::TestAllTypes message; in TEST() 60 unittest::TestAllTypes message, message2; in TEST() 74 unittest::TestAllExtensions message, message2; in TEST() 84 unittest::TestOneof2 message, message2; in TEST() 99 unittest::TestAllTypes message, message2; in TEST() 126 unittest::TestAllExtensions message, message2; in TEST() 132 unittest::optional_int32_extension, in TEST() 133 message.GetExtension(unittest::optional_int32_extension)); in TEST() 134 message.ClearExtension(unittest::optional_int32_extension); in TEST() 138 unittest::optional_string_extension, in TEST() [all …]
|
D | generated_message_reflection_unittest.cc | 96 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F() 103 unittest::TestAllTypes message; in TEST() 105 unittest::TestAllTypes::descriptor()); in TEST() 114 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST() 116 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST() 118 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST() 127 unittest::TestAllTypes message; in TEST() 129 unittest::TestAllTypes::descriptor()); in TEST() 142 unittest::TestAllTypes message; in TEST() 187 unittest::TestAllTypes lhs; in TEST_P() [all …]
|
/external/cronet/third_party/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 45 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() 69 message->set_optional_nested_enum(unittest::TestAllTypesLite::BAZ); in SetAllFields() 70 message->set_optional_foreign_enum(unittest::FOREIGN_LITE_BAZ); in SetAllFields() 98 message->add_repeated_nested_enum(unittest::TestAllTypesLite::BAR); in SetAllFields() 99 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAR); in SetAllFields() 126 message->add_repeated_nested_enum(unittest::TestAllTypesLite::BAZ); in SetAllFields() 127 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAZ); in SetAllFields() 149 message->set_default_nested_enum(unittest::TestAllTypesLite::FOO); in SetAllFields() 150 message->set_default_foreign_enum(unittest::FOREIGN_LITE_FOO); in SetAllFields() 162 void TestUtilLite::ModifyRepeatedFields(unittest::TestAllTypesLite* message) { in ModifyRepeatedFields() [all …]
|
D | extension_set_unittest.cc | 71 unittest::TestAllExtensions message; in TEST() 78 EXPECT_EQ(&unittest::OptionalGroup_extension::default_instance(), in TEST() 79 &message.GetExtension(unittest::optionalgroup_extension)); in TEST() 80 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST() 81 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST() 83 &unittest::ForeignMessage::default_instance(), in TEST() 84 &message.GetExtension(unittest::optional_foreign_message_extension)); in TEST() 86 &message.GetExtension(unittest::optional_import_message_extension)); in TEST() 92 unittest::TestAllExtensions message; in TEST() 104 unittest::TestAllExtensions message; in TEST() [all …]
|
D | map_lite_test_util.cc | 38 void MapLiteTestUtil::SetMapFields(unittest::TestMapLite* message) { in SetMapFields() 39 MapTestUtilImpl::SetMapFields<unittest::MapEnumLite, in SetMapFields() 40 unittest::MAP_ENUM_BAR_LITE, in SetMapFields() 41 unittest::MAP_ENUM_BAZ_LITE>(message); in SetMapFields() 44 void MapLiteTestUtil::SetArenaMapFields(unittest::TestArenaMapLite* message) { in SetArenaMapFields() 45 MapTestUtilImpl::SetArenaMapFields<unittest::MapEnumLite, in SetArenaMapFields() 46 unittest::MAP_ENUM_BAR_LITE, in SetArenaMapFields() 47 unittest::MAP_ENUM_BAZ_LITE>(message); in SetArenaMapFields() 50 void MapLiteTestUtil::SetMapFieldsInitialized(unittest::TestMapLite* message) { in SetMapFieldsInitialized() 54 void MapLiteTestUtil::ModifyMapFields(unittest::TestMapLite* message) { in ModifyMapFields() [all …]
|
D | test_util_lite.h | 43 namespace unittest = protobuf_unittest; variable 49 static void SetAllFields(unittest::TestAllTypesLite* message); 50 static void SetAllExtensions(unittest::TestAllExtensionsLite* message); 51 static void SetPackedFields(unittest::TestPackedTypesLite* message); 52 static void SetPackedExtensions(unittest::TestPackedExtensionsLite* message); 58 static void ModifyRepeatedFields(unittest::TestAllTypesLite* message); 60 unittest::TestAllExtensionsLite* message); 61 static void ModifyPackedFields(unittest::TestPackedTypesLite* message); 63 unittest::TestPackedExtensionsLite* message); 67 static void ExpectAllFieldsSet(const unittest::TestAllTypesLite& message); [all …]
|
D | reflection_ops_unittest.cc | 53 unittest::TestAllTypes message; in TEST() 60 unittest::TestAllTypes message, message2; in TEST() 74 unittest::TestAllExtensions message, message2; in TEST() 84 unittest::TestOneof2 message, message2; in TEST() 99 unittest::TestAllTypes message, message2; in TEST() 126 unittest::TestAllExtensions message, message2; in TEST() 132 unittest::optional_int32_extension, in TEST() 133 message.GetExtension(unittest::optional_int32_extension)); in TEST() 134 message.ClearExtension(unittest::optional_int32_extension); in TEST() 138 unittest::optional_string_extension, in TEST() [all …]
|
D | generated_message_reflection_unittest.cc | 88 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F() 95 unittest::TestAllTypes message; in TEST() 97 unittest::TestAllTypes::descriptor()); in TEST() 106 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST() 108 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST() 110 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST() 119 unittest::TestAllTypes message; in TEST() 121 unittest::TestAllTypes::descriptor()); in TEST() 134 unittest::TestAllTypes message; in TEST() 158 unittest::TestAllTypes message; in TEST() [all …]
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_suite.py | 1 import unittest 6 from unittest.test.support import LoggingResult, TestEquality 13 class Foo(unittest.TestCase): 20 return unittest.TestSuite(Test.Foo(n) for n in names) 25 class Test_TestSuite(unittest.TestCase, TestEquality): 31 eq_pairs = [(unittest.TestSuite(), unittest.TestSuite()) 32 ,(unittest.TestSuite(), unittest.TestSuite([])) 36 ne_pairs = [(unittest.TestSuite(), _mk_TestSuite('test_1')) 37 ,(unittest.TestSuite([]), _mk_TestSuite('test_1')) 51 suite = unittest.TestSuite() [all …]
|
D | test_loader.py | 6 import unittest 27 class Test_TestLoader(unittest.TestCase): 33 loader = unittest.TestLoader() 42 class Foo(unittest.TestCase): 47 tests = unittest.TestSuite([Foo('test_1'), Foo('test_2')]) 49 loader = unittest.TestLoader() 57 class Foo(unittest.TestCase): 60 empty_suite = unittest.TestSuite() 62 loader = unittest.TestLoader() 75 class NotATestCase(unittest.TestSuite): [all …]
|
D | test_break.py | 8 import unittest 11 @unittest.skipUnless(hasattr(os, 'kill'), "Test requires os.kill") 12 @unittest.skipIf(sys.platform =="win32", "Test cannot run on Windows") 13 class TestBreak(unittest.TestCase): 23 unittest.signals._results = weakref.WeakKeyDictionary() 24 unittest.signals._interrupt_handler = None 29 unittest.installHandler() 38 self.assertTrue(unittest.signals._interrupt_handler.called) 41 result = unittest.TestResult() 42 self.assertNotIn(result, unittest.signals._results) [all …]
|
D | test_skipping.py | 1 import unittest 3 from unittest.test.support import LoggingResult 6 class Test_TestSkipping(unittest.TestCase): 9 class Foo(unittest.TestCase): 29 class Foo(unittest.TestCase): 51 class Foo(unittest.TestCase): 69 self.assertIsInstance(subtest, unittest.TestCase) 73 self.assertIsInstance(subtest, unittest.TestCase) 86 op_table = ((unittest.skipUnless, False, True), 87 (unittest.skipIf, True, False)) [all …]
|
D | test_runner.py | 7 import unittest 8 from unittest.case import _Outcome 10 from unittest.test.support import (LoggingResult, 15 return unittest.TestResult() 19 return unittest.TextTestRunner(resultclass=resultFactory, 24 suite = unittest.TestSuite() 26 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case) 32 realSuite = unittest.TestSuite() 35 suite.addTest(unittest.TestSuite()) 36 realSuite.addTest(unittest.TestSuite()) [all …]
|
D | test_result.py | 8 import unittest 9 from unittest.util import strclass 23 unittest.result.traceback = traceback 52 class Test_TestResult(unittest.TestCase): 63 result = unittest.TestResult() 77 result = unittest.TestResult() 86 class Foo(unittest.TestCase): 92 result = unittest.TestResult() 107 class Foo(unittest.TestCase): 113 result = unittest.TestResult() [all …]
|
D | test_setups.py | 4 import unittest 8 return unittest.TestResult() 11 class TestSetups(unittest.TestCase): 14 return unittest.TextTestRunner(resultclass=resultFactory, 17 suite = unittest.TestSuite() 19 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case) 25 realSuite = unittest.TestSuite() 28 suite.addTest(unittest.TestSuite()) 29 realSuite.addTest(unittest.TestSuite()) 33 class Test(unittest.TestCase): [all …]
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_suite.py | 1 import unittest 4 from unittest.test.support import LoggingResult, TestEquality 11 class Foo(unittest.TestCase): 18 return unittest.TestSuite(Test.Foo(n) for n in names) 23 class Test_TestSuite(unittest.TestCase, TestEquality): 29 eq_pairs = [(unittest.TestSuite(), unittest.TestSuite()), 30 (unittest.TestSuite(), unittest.TestSuite([])), 34 ne_pairs = [(unittest.TestSuite(), _mk_TestSuite('test_1')), 35 (unittest.TestSuite([]), _mk_TestSuite('test_1')), 49 suite = unittest.TestSuite() [all …]
|
D | test_loader.py | 5 import unittest 8 class Test_TestLoader(unittest.TestCase): 16 class Foo(unittest.TestCase): 21 tests = unittest.TestSuite([Foo('test_1'), Foo('test_2')]) 23 loader = unittest.TestLoader() 31 class Foo(unittest.TestCase): 34 empty_suite = unittest.TestSuite() 36 loader = unittest.TestLoader() 49 class NotATestCase(unittest.TestSuite): 52 loader = unittest.TestLoader() [all …]
|
D | test_break.py | 10 import unittest 13 @unittest.skipUnless(hasattr(os, 'kill'), "Test requires os.kill") 14 @unittest.skipIf(sys.platform =="win32", "Test cannot run on Windows") 15 @unittest.skipIf(sys.platform == 'freebsd6', "Test kills regrtest on freebsd6 " 17 class TestBreak(unittest.TestCase): 27 unittest.signals._results = weakref.WeakKeyDictionary() 28 unittest.signals._interrupt_handler = None 33 unittest.installHandler() 42 self.assertTrue(unittest.signals._interrupt_handler.called) 45 result = unittest.TestResult() [all …]
|
D | test_skipping.py | 1 import unittest 3 from unittest.test.support import LoggingResult 6 class Test_TestSkipping(unittest.TestCase): 9 class Foo(unittest.TestCase): 20 class Foo(unittest.TestCase): 33 op_table = ((unittest.skipUnless, False, True), 34 (unittest.skipIf, True, False)) 36 class Foo(unittest.TestCase): 44 suite = unittest.TestSuite([test_do_skip, test_dont_skip]) 57 @unittest.skip("testing") [all …]
|
D | test_result.py | 7 import unittest 10 class Test_TestResult(unittest.TestCase): 21 result = unittest.TestResult() 36 result = unittest.TestResult() 45 class Foo(unittest.TestCase): 51 result = unittest.TestResult() 66 class Foo(unittest.TestCase): 72 result = unittest.TestResult() 93 result = unittest.TestResult() 117 class Foo(unittest.TestCase): [all …]
|
D | test_setups.py | 5 import unittest 9 return unittest.TestResult() 12 class TestSetups(unittest.TestCase): 15 return unittest.TextTestRunner(resultclass=resultFactory, 18 suite = unittest.TestSuite() 20 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case) 26 realSuite = unittest.TestSuite() 29 suite.addTest(unittest.TestSuite()) 30 realSuite.addTest(unittest.TestSuite()) 34 class Test(unittest.TestCase): [all …]
|