Home
last modified time | relevance | path

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

12345678910

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtest_util_lite.cc49 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields()
73 message->set_optional_nested_enum (unittest::TestAllTypesLite::BAZ ); in SetAllFields()
74 message->set_optional_foreign_enum(unittest::FOREIGN_LITE_BAZ ); in SetAllFields()
102 message->add_repeated_nested_enum (unittest::TestAllTypesLite::BAR ); in SetAllFields()
103 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAR ); in SetAllFields()
130 message->add_repeated_nested_enum (unittest::TestAllTypesLite::BAZ ); in SetAllFields()
131 message->add_repeated_foreign_enum(unittest::FOREIGN_LITE_BAZ ); in SetAllFields()
153 message->set_default_nested_enum (unittest::TestAllTypesLite::FOO ); in SetAllFields()
154 message->set_default_foreign_enum(unittest::FOREIGN_LITE_FOO ); in SetAllFields()
166 void TestUtilLite::ModifyRepeatedFields(unittest::TestAllTypesLite* message) { in ModifyRepeatedFields()
[all …]
Dextension_set_unittest.cc65 unittest::TestAllExtensions message; in TEST()
72 EXPECT_EQ(&unittest::OptionalGroup_extension::default_instance(), in TEST()
73 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
74 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
75 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
76 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
78 unittest::optional_foreign_message_extension)); in TEST()
80 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
86 unittest::TestAllExtensions message; in TEST()
98 unittest::TestAllExtensions message; in TEST()
[all …]
Dmap_lite_test_util.cc38 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 …]
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.cc53 void TestUtil::SetAllFields(unittest::TestAllTypes* message) { in SetAllFields()
61 void TestUtil::SetOptionalFields(unittest::TestAllTypes* message) { in SetOptionalFields()
85 message->set_optional_nested_enum (unittest::TestAllTypes::BAZ); in SetOptionalFields()
86 message->set_optional_foreign_enum(unittest::FOREIGN_BAZ ); in SetOptionalFields()
105 void TestUtil::AddRepeatedFields1(unittest::TestAllTypes* message) { in AddRepeatedFields1()
128 message->add_repeated_nested_enum (unittest::TestAllTypes::BAR); in AddRepeatedFields1()
129 message->add_repeated_foreign_enum(unittest::FOREIGN_BAR ); in AddRepeatedFields1()
144 void TestUtil::AddRepeatedFields2(unittest::TestAllTypes* message) { in AddRepeatedFields2()
168 message->add_repeated_nested_enum (unittest::TestAllTypes::BAZ); in AddRepeatedFields2()
169 message->add_repeated_foreign_enum(unittest::FOREIGN_BAZ ); in AddRepeatedFields2()
[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.cc52 unittest::TestAllTypes message; in TEST()
59 unittest::TestAllTypes message, message2; in TEST()
73 unittest::TestAllExtensions message, message2; in TEST()
83 unittest::TestOneof2 message, message2; in TEST()
98 unittest::TestAllTypes message, message2; in TEST()
125 unittest::TestAllExtensions message, message2; in TEST()
130 message2.SetExtension(unittest::optional_int32_extension, in TEST()
131 message.GetExtension(unittest::optional_int32_extension)); in TEST()
132 message.ClearExtension(unittest::optional_int32_extension); in TEST()
135 message2.SetExtension(unittest::optional_string_extension, in TEST()
[all …]
Dgenerated_message_reflection_unittest.cc68 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F()
75 unittest::TestAllTypes message; in TEST()
77 unittest::TestAllTypes::descriptor()); in TEST()
86 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST()
88 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
90 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
99 unittest::TestAllTypes message; in TEST()
101 unittest::TestAllTypes::descriptor()); in TEST()
114 unittest::TestAllTypes message; in TEST()
136 unittest::TestAllTypes message; in TEST()
[all …]
Dmap_test_util.h39 namespace unittest = ::protobuf_unittest; variable
44 static void SetMapFields(unittest::TestMap* message);
47 static void SetArenaMapFields(unittest::TestArenaMap* message);
50 static void SetMapFieldsInitialized(unittest::TestMap* message);
54 static void ModifyMapFields(unittest::TestMap* message);
58 static void ExpectMapFieldsSet(const unittest::TestMap& message);
62 static void ExpectArenaMapFieldsSet(const unittest::TestArenaMap& message);
67 const unittest::TestMap& message);
71 static void ExpectMapFieldsModified(const unittest::TestMap& message);
74 static void ExpectClear(const unittest::TestMap& message);
[all …]
Dmessage_unittest.cc115 unittest::TestAllTypes message; in TEST()
128 unittest::TestPackedTypes message; in TEST()
184 unittest::TestRequired message; in TEST()
200 unittest::TestRequired message; in TEST()
207 unittest::TestRequired message; in TEST()
212 unittest::TestAllTypes test_all_types; in TEST()
216 google::protobuf::internal::DynamicCastToGenerated<unittest::TestAllTypes>( in TEST()
219 google::protobuf::internal::DynamicCastToGenerated<unittest::TestRequired>( in TEST()
225 google::protobuf::internal::DynamicCastToGenerated<const unittest::TestAllTypes>( in TEST()
229 google::protobuf::internal::DynamicCastToGenerated<const unittest::TestRequired>( in TEST()
[all …]
Dwire_format_unittest.cc83 unittest::TestAllTypes source, dest; in TEST()
100 unittest::TestAllExtensions source, dest; in TEST()
117 unittest::TestPackedTypes source, dest; in TEST()
135 unittest::TestUnpackedTypes source; in TEST()
140 unittest::TestPackedTypes dest; in TEST()
151 unittest::TestPackedTypes source; in TEST()
156 unittest::TestUnpackedTypes dest; in TEST()
166 unittest::TestPackedExtensions source, dest; in TEST()
183 unittest::TestOneof2 source, dest; in TEST()
200 unittest::TestOneofBackwardsCompatible source; in TEST()
[all …]
Darena_nc_test.py35 import unittest
38 from google3.testing.pybase import unittest
41 class ArenaNcTest(unittest.TestCase):
61 unittest.main()
Dunknown_field_set_unittest.cc62 descriptor_ = unittest::TestAllTypes::descriptor(); in SetUp()
84 unittest::TestEmptyMessage bizarro_message; in GetBizarroData()
102 unittest::TestAllTypes all_fields_;
107 unittest::TestEmptyMessage empty_message_;
181 unittest::TestAllTypes::OptionalGroup::descriptor()->FindFieldByName("a"); in TEST_F()
228 unittest::TestEmptyMessage message; in TEST_F()
257 unittest::TestEmptyMessage message; in TEST_F()
265 unittest::TestEmptyMessage other_message; in TEST_F()
289 unittest::TestEmptyMessage source, destination; in TEST_F()
326 unittest::TestEmptyMessage source; in TEST_F()
[all …]
Dtext_format_unittest.cc94 unittest::TestAllTypes proto_;
116 unittest::TestAllExtensions proto_;
154 proto_.add_repeated_nested_enum(unittest::TestAllTypes::FOO); in TEST_F()
155 proto_.add_repeated_nested_enum(unittest::TestAllTypes::BAR); in TEST_F()
243 unittest::TestEmptyMessage message; in TEST_F()
273 unittest::OneString message; in TEST_F()
553 unittest::TestAllTypes::BAZ); in TEST_F()
556 EXPECT_EQ(unittest::TestAllTypes::BAZ, proto_.optional_nested_enum()); in TEST_F()
560 ASSERT_LT(unittest::SPARSE_E, 0); in TEST_F()
562 unittest::SPARSE_E); in TEST_F()
[all …]
Dmap_test.cc86 using google::protobuf::unittest::ForeignMessage;
87 using google::protobuf::unittest::TestAllTypes;
88 using google::protobuf::unittest::TestMap;
89 using google::protobuf::unittest::TestRecursiveMapMessage;
1801 unittest::TestMap message; in TEST()
1811 unittest::TestMap message; in TEST()
1818 unittest::TestEnumMap message; in TEST()
1819 EXPECT_EQ(unittest::PROTO2_MAP_ENUM_FOO, in TEST()
1824 unittest::TestMap message; in TEST()
1832 unittest::TestMessageMap message; in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc116 unittest::TestAllTypes::descriptor()->file(); in TEST()
159 unittest::TestAllTypes message; in TEST()
166 EXPECT_EQ(&unittest::TestAllTypes::OptionalGroup::default_instance(), in TEST()
168 EXPECT_EQ(&unittest::TestAllTypes::NestedMessage::default_instance(), in TEST()
170 EXPECT_EQ(&unittest::ForeignMessage::default_instance(), in TEST()
192 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
193 unittest::TestExtremeDefaultValues::default_instance(); in TEST()
215 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
216 unittest::TestExtremeDefaultValues::default_instance(); in TEST()
222 const unittest::TestExtremeDefaultValues& extreme_default = in TEST()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/
Dfind_versions.sh16 …for unittest in $AOSP_DIR/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/*.r…
17 echo $(basename $unittest)
19 …llvm-rs-cc $unittest -o $TMP -p $TMP -I $version/include/ -I $version/clang-include/ 1> /dev/null …
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dlarge_test.sh21 echo parsing unittest
22 ../../parse_systrace.py unittest.html > unittest.tmp
33 echo checking unittest
34 diff unittest.txt unittest.tmp
Dmake_golden.sh7 ../../parse_systrace.py unittest.html > unittest.txt
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer_unittest.cc92 unittest::TestAllTypes msg1; in TEST()
93 unittest::TestAllTypes msg2; in TEST()
104 unittest::TestAllTypes msg1; in TEST()
105 unittest::TestAllTypes msg2; in TEST()
118 unittest::TestAllTypes msg1; in TEST()
119 unittest::TestAllTypes msg2; in TEST()
132 unittest::TestMap msg1; in TEST()
133 unittest::TestMap msg2; in TEST()
135 MapReflectionTester tester(unittest::TestMap::descriptor()); in TEST()
146 unittest::TestAllTypes msg1; in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtext_encoding_test.py36 import unittest2 as unittest #PY26 namespace
38 import unittest
57 class TextEncodingTestCase(unittest.TestCase):
72 unittest.main()
Ddescriptor_database_test.py38 import unittest2 as unittest #PY26 namespace
40 import unittest
47 class DescriptorDatabaseTest(unittest.TestCase):
69 unittest.main()
Dproto_builder_test.py40 import unittest2 as unittest namespace
42 import unittest
50 class ProtoBuilderTest(unittest.TestCase):
96 unittest.main()
Dsymbol_database_test.py36 import unittest2 as unittest #PY26 namespace
38 import unittest
46 class SymbolDatabaseTest(unittest.TestCase):
131 unittest.main()
/frameworks/layoutlib/rename_font/
Dtest.py12 import unittest
21 class MyTest(unittest.TestCase):
45 unittest.main()

12345678910