Home
last modified time | relevance | path

Searched refs:unittest (Results 1 – 25 of 254) sorted by relevance

1234567891011

/external/protobuf/src/google/protobuf/
Dtest_util_lite.cc48 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields()
72 message->set_optional_nested_enum (unittest::TestAllTypesLite::BAZ ); in SetAllFields()
73 message->set_optional_foreign_enum(unittest::FOREIGN_LITE_BAZ ); in SetAllFields()
101 message->add_repeated_nested_enum (unittest::TestAllTypesLite::BAR ); in SetAllFields()
102 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAR ); in SetAllFields()
129 message->add_repeated_nested_enum (unittest::TestAllTypesLite::BAZ ); in SetAllFields()
130 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAZ ); in SetAllFields()
152 message->set_default_nested_enum (unittest::TestAllTypesLite::FOO ); in SetAllFields()
153 message->set_default_foreign_enum(unittest::FOREIGN_LITE_FOO ); in SetAllFields()
165 void TestUtilLite::ModifyRepeatedFields(unittest::TestAllTypesLite* message) { in ModifyRepeatedFields()
[all …]
Dextension_set_unittest.cc63 unittest::TestAllExtensions message; in TEST()
70 EXPECT_EQ(&unittest::OptionalGroup_extension::default_instance(), in TEST()
71 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
72 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
73 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
74 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
76 unittest::optional_foreign_message_extension)); in TEST()
78 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
84 unittest::TestAllExtensions message; in TEST()
96 unittest::TestAllExtensions message; in TEST()
[all …]
Dtest_util.cc52 void TestUtil::SetAllFields(unittest::TestAllTypes* message) { in SetAllFields()
60 void TestUtil::SetOptionalFields(unittest::TestAllTypes* message) { in SetOptionalFields()
84 message->set_optional_nested_enum (unittest::TestAllTypes::BAZ); in SetOptionalFields()
85 message->set_optional_foreign_enum(unittest::FOREIGN_BAZ ); in SetOptionalFields()
104 void TestUtil::AddRepeatedFields1(unittest::TestAllTypes* message) { in AddRepeatedFields1()
127 message->add_repeated_nested_enum (unittest::TestAllTypes::BAR); in AddRepeatedFields1()
128 message->add_repeated_foreign_enum(unittest::FOREIGN_BAR ); in AddRepeatedFields1()
143 void TestUtil::AddRepeatedFields2(unittest::TestAllTypes* message) { in AddRepeatedFields2()
167 message->add_repeated_nested_enum (unittest::TestAllTypes::BAZ); in AddRepeatedFields2()
168 message->add_repeated_foreign_enum(unittest::FOREIGN_BAZ ); in AddRepeatedFields2()
[all …]
Dtest_util.h46 namespace unittest = ::protobuf_unittest; variable
52 static void SetAllFields(unittest::TestAllTypes* message);
53 static void SetOptionalFields(unittest::TestAllTypes* message);
54 static void AddRepeatedFields1(unittest::TestAllTypes* message);
55 static void AddRepeatedFields2(unittest::TestAllTypes* message);
56 static void SetDefaultFields(unittest::TestAllTypes* message);
57 static void SetOneofFields(unittest::TestAllTypes* message);
58 static void SetAllExtensions(unittest::TestAllExtensions* message);
59 static void SetOneofFields(unittest::TestAllExtensions* message);
60 static void SetAllFieldsAndExtensions(unittest::TestFieldOrderings* message);
[all …]
Dtest_util_lite.h43 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 …]
Dreflection_ops_unittest.cc51 unittest::TestAllTypes message; in TEST()
58 unittest::TestAllTypes message, message2; in TEST()
72 unittest::TestAllExtensions message, message2; in TEST()
82 unittest::TestOneof2 message, message2; in TEST()
97 unittest::TestAllTypes message, message2; in TEST()
124 unittest::TestAllExtensions message, message2; in TEST()
129 message2.SetExtension(unittest::optional_int32_extension, in TEST()
130 message.GetExtension(unittest::optional_int32_extension)); in TEST()
131 message.ClearExtension(unittest::optional_int32_extension); in TEST()
134 message2.SetExtension(unittest::optional_string_extension, in TEST()
[all …]
Dgenerated_message_reflection_unittest.cc62 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F()
69 unittest::TestAllTypes message; in TEST()
71 unittest::TestAllTypes::descriptor()); in TEST()
80 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST()
82 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
84 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
93 unittest::TestAllTypes message; in TEST()
95 unittest::TestAllTypes::descriptor()); in TEST()
108 unittest::TestAllTypes message; in TEST()
130 unittest::TestAllTypes message; in TEST()
[all …]
Dwire_format_unittest.cc79 unittest::TestAllTypes source, dest; in TEST()
96 unittest::TestAllExtensions source, dest; in TEST()
113 unittest::TestPackedTypes source, dest; in TEST()
131 unittest::TestUnpackedTypes source; in TEST()
136 unittest::TestPackedTypes dest; in TEST()
147 unittest::TestPackedTypes source; in TEST()
152 unittest::TestUnpackedTypes dest; in TEST()
162 unittest::TestPackedExtensions source, dest; in TEST()
179 unittest::TestOneof2 source, dest; in TEST()
196 unittest::TestOneofBackwardsCompatible source; in TEST()
[all …]
Dmessage_unittest.cc112 unittest::TestAllTypes message; in TEST()
125 unittest::TestPackedTypes message; in TEST()
181 unittest::TestRequired message; in TEST()
197 unittest::TestRequired message; in TEST()
204 unittest::TestRequired message; in TEST()
211 unittest::TestRequired message; in TEST()
219 unittest::TestRequired message; in TEST()
226 unittest::TestAllTypes message; in TEST()
246 unittest::TestRequired message; in TEST()
253 unittest::TestRequired message; in TEST()
[all …]
Dunknown_field_set_unittest.cc59 descriptor_ = unittest::TestAllTypes::descriptor(); in SetUp()
81 unittest::TestEmptyMessage bizarro_message; in GetBizarroData()
99 unittest::TestAllTypes all_fields_;
104 unittest::TestEmptyMessage empty_message_;
178 unittest::TestAllTypes::OptionalGroup::descriptor()->FindFieldByName("a"); in TEST_F()
225 unittest::TestEmptyMessage message; in TEST_F()
254 unittest::TestEmptyMessage message; in TEST_F()
262 unittest::TestEmptyMessage other_message; in TEST_F()
286 unittest::TestEmptyMessage source, destination; in TEST_F()
323 unittest::TestEmptyMessage source; in TEST_F()
[all …]
Dtext_format_unittest.cc89 unittest::TestAllTypes proto_;
111 unittest::TestAllExtensions proto_;
149 proto_.add_repeated_nested_enum(unittest::TestAllTypes::FOO); in TEST_F()
150 proto_.add_repeated_nested_enum(unittest::TestAllTypes::BAR); in TEST_F()
238 unittest::TestEmptyMessage message; in TEST_F()
268 unittest::OneString message; in TEST_F()
548 unittest::TestAllTypes::BAZ); in TEST_F()
551 EXPECT_EQ(unittest::TestAllTypes::BAZ, proto_.optional_nested_enum()); in TEST_F()
555 ASSERT_LT(unittest::SPARSE_E, 0); in TEST_F()
557 unittest::SPARSE_E); in TEST_F()
[all …]
Dlite_unittest.cc48 void ExpectMessageMerged(const google::protobuf::unittest::TestAllTypesLite& message) { in ExpectMessageMerged()
55 google::protobuf::unittest::TestAllTypesLite* msg1, in AssignParsingMergeMessages()
56 google::protobuf::unittest::TestAllTypesLite* msg2, in AssignParsingMergeMessages()
57 google::protobuf::unittest::TestAllTypesLite* msg3) { in AssignParsingMergeMessages()
65 google::protobuf::unittest::TestEmptyMessageLite* empty_message) { in SetAllTypesInEmptyMessageUnknownFields()
74 google::protobuf::unittest::TestEmptyMessageLite* empty_message) { in SetSomeTypesInEmptyMessageUnknownFields()
158 google::protobuf::unittest::TestParsingMergeLite::RepeatedFieldsGenerator generator; in main()
159 google::protobuf::unittest::TestAllTypesLite* msg1; in main()
160 google::protobuf::unittest::TestAllTypesLite* msg2; in main()
161 google::protobuf::unittest::TestAllTypesLite* msg3; in main()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc106 unittest::TestAllTypes::descriptor()->file(); in TEST()
136 unittest::TestAllTypes message; in TEST()
143 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST()
145 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
147 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
167 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
168 unittest::TestExtremeDefaultValues::default_instance(); in TEST()
190 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
191 unittest::TestExtremeDefaultValues::default_instance(); in TEST()
197 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
[all …]
/external/v8/src/compiler/
Dcompiler.gyp21 'change-lowering-unittest.cc',
22 'common-operator-unittest.cc',
24 'graph-reducer-unittest.cc',
25 'graph-unittest.cc',
26 'graph-unittest.h',
27 'instruction-selector-unittest.cc',
28 'instruction-selector-unittest.h',
29 'js-builtin-reducer-unittest.cc',
30 'machine-operator-reducer-unittest.cc',
31 'machine-operator-unittest.cc',
[all …]
/external/antlr/antlr-3.4/runtime/Python/unittests/
Dtestexceptions.py1 import unittest
6 class TestRecognitionException(unittest.TestCase):
15 class TestEarlyExitException(unittest.TestCase):
25 class TestFailedPredicateException(unittest.TestCase):
35 class TestMismatchedNotSetException(unittest.TestCase):
45 class TestMismatchedRangeException(unittest.TestCase):
55 class TestMismatchedSetException(unittest.TestCase):
65 class TestMismatchedTokenException(unittest.TestCase):
75 class TestMismatchedTreeNodeException(unittest.TestCase):
85 class TestNoViableAltException(unittest.TestCase):
[all …]
Dtestrecognizers.py2 import unittest
7 class TestBaseRecognizer(unittest.TestCase):
20 class TestTokenSource(unittest.TestCase):
54 class TestLexer(unittest.TestCase):
67 unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
Dtestdfa.py2 import unittest
7 class TestDFA(unittest.TestCase):
63 unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
/external/v8/src/base/
Dbase.gyp23 'bits-unittest.cc',
24 'cpu-unittest.cc',
25 'division-by-constant-unittest.cc',
26 'flags-unittest.cc',
27 'platform/condition-variable-unittest.cc',
28 'platform/mutex-unittest.cc',
29 'platform/platform-unittest.cc',
30 'platform/semaphore-unittest.cc',
31 'platform/time-unittest.cc',
32 'sys-info-unittest.cc',
[all …]
/external/lldb/test/unittest2/test/
Dtest_new_tests.py3 import unittest
15 self.assertIsSubclass(unittest2.TestCase, unittest.TestCase)
16 self.assertIsSubclass(unittest2.TestResult, unittest.TestResult)
17 self.assertIsSubclass(unittest2.TestSuite, unittest.TestSuite)
18 self.assertIsSubclass(unittest2.TextTestRunner, unittest.TextTestRunner)
19 self.assertIsSubclass(unittest2.TestLoader, unittest.TestLoader)
20 self.assertIsSubclass(unittest2.TextTestResult, unittest.TestResult)
25 class Test(unittest.TestCase):
34 runner = unittest.TextTestRunner(stream=StringIO())
39 suite = unittest.TestSuite((Test('testOne'),))
/external/antlr/antlr-3.4/runtime/Python/
Dxmlrunner.py15 import unittest
85 class _XMLTestResult(unittest.TestResult):
94 unittest.TestResult.__init__(self)
102 unittest.TestResult.startTest(self, test)
109 unittest.TestResult.stopTest(self, test)
119 unittest.TestResult.addError(self, test, err)
123 unittest.TestResult.addFailure(self, test, err)
216 class XMLTestRunnerTest(unittest.TestCase):
231 runner.run(unittest.makeSuite(test_class))
249 class TestTest(unittest.TestCase):
[all …]
Dsetup.py65 class unittest(Command): class
92 import unittest
96 suite = unittest.TestSuite()
117 unittest.defaultTestLoader.loadTestsFromModule(testMod)
133 runner = unittest.TextTestRunner(verbosity=2)
180 import unittest
220 suite = unittest.TestSuite()
250 unittest.defaultTestLoader.loadTestsFromModule(testMod))
264 runner = unittest.TextTestRunner(verbosity=2)
296 cmdclass={'unittest': unittest,
/external/markdown/
Dregression-tests.py10 import unittest
15 class TestMarkdown(unittest.TestCase):
34 class TestBlockParser(unittest.TestCase):
58 class TestBlockParserState(unittest.TestCase):
95 class TestHtmlStash(unittest.TestCase):
130 class TestOrderedDict(unittest.TestCase):
217 suite = unittest.TestSuite()
218 suite.addTest(unittest.makeSuite(TestMarkdown))
219 suite.addTest(unittest.makeSuite(TestBlockParser))
220 suite.addTest(unittest.makeSuite(TestBlockParserState))
[all …]
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/tvcm/
Dtest_runner.py7 import unittest
19 if isinstance(x, unittest.TestSuite):
27 assert isinstance(x, unittest.TestCase)
34 class _TestLoader(unittest.TestLoader):
45 suite = unittest.TestSuite()
52 class _RunnerImpl(unittest.TextTestRunner):
102 return unittest.main(module=__name__, argv=[sys.argv[0]],
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/
Drun_test6 import unittest
10 suite = unittest.TestSuite()
12 suite.addTest(unittest.TestLoader().discover(
14 unittest.TextTestRunner(verbosity=2).run(suite)
/external/v8/tools/push-to-trunk/
Dscript_test.py34 import unittest
43 alltests = map(unittest.TestLoader().loadTestsFromTestCase, [
48 unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(alltests))

1234567891011