/external/nanopb-c/tests/alltypes/ |
D | decode_alltypes.c | 13 #define TEST(x) if (!(x)) { \ macro 30 TEST(alltypes.req_int32 == -1001); in check_alltypes() 31 TEST(alltypes.req_int64 == -1002); in check_alltypes() 32 TEST(alltypes.req_uint32 == 1003); in check_alltypes() 33 TEST(alltypes.req_uint64 == 1004); in check_alltypes() 34 TEST(alltypes.req_sint32 == -1005); in check_alltypes() 35 TEST(alltypes.req_sint64 == -1006); in check_alltypes() 36 TEST(alltypes.req_bool == true); in check_alltypes() 38 TEST(alltypes.req_fixed32 == 1008); in check_alltypes() 39 TEST(alltypes.req_sfixed32 == -1009); in check_alltypes() [all …]
|
/external/nanopb-c/tests/backwards_compatibility/ |
D | decode_legacy.c | 16 #define TEST(x) if (!(x)) { \ macro 33 TEST(alltypes.req_int32 == -1001); in check_alltypes() 34 TEST(alltypes.req_int64 == -1002); in check_alltypes() 35 TEST(alltypes.req_uint32 == 1003); in check_alltypes() 36 TEST(alltypes.req_uint64 == 1004); in check_alltypes() 37 TEST(alltypes.req_sint32 == -1005); in check_alltypes() 38 TEST(alltypes.req_sint64 == -1006); in check_alltypes() 39 TEST(alltypes.req_bool == true); in check_alltypes() 41 TEST(alltypes.req_fixed32 == 1008); in check_alltypes() 42 TEST(alltypes.req_sfixed32 == -1009); in check_alltypes() [all …]
|
/external/jemalloc/test/unit/ |
D | util.c | 167 #define TEST(expected_str_untruncated, ...) do { \ in TEST_BEGIN() macro 177 TEST("012346789", "012346789"); in TEST_BEGIN() 178 TEST("a0123b", "a%sb", "0123"); in TEST_BEGIN() 179 TEST("a01234567", "a%s%s", "0123", "4567"); in TEST_BEGIN() 180 TEST("a0123 ", "a%-6s", "0123"); in TEST_BEGIN() 181 TEST("a 0123", "a%6s", "0123"); in TEST_BEGIN() 182 TEST("a 012", "a%6.3s", "0123"); in TEST_BEGIN() 183 TEST("a 012", "a%*.*s", 6, 3, "0123"); in TEST_BEGIN() 184 TEST("a 123b", "a% db", 123); in TEST_BEGIN() 185 TEST("a123b", "a%-db", 123); in TEST_BEGIN() [all …]
|
/external/nanopb-c/tests/alltypes_pointer/ |
D | decode_alltypes_pointer.c | 8 #define TEST(x) if (!(x)) { \ macro 26 TEST(alltypes.req_int32 && *alltypes.req_int32 == -1001); in check_alltypes() 27 TEST(alltypes.req_int64 && *alltypes.req_int64 == -1002); in check_alltypes() 28 TEST(alltypes.req_uint32 && *alltypes.req_uint32 == 1003); in check_alltypes() 29 TEST(alltypes.req_uint64 && *alltypes.req_uint64 == 1004); in check_alltypes() 30 TEST(alltypes.req_sint32 && *alltypes.req_sint32 == -1005); in check_alltypes() 31 TEST(alltypes.req_sint64 && *alltypes.req_sint64 == -1006); in check_alltypes() 32 TEST(alltypes.req_bool && *alltypes.req_bool == true); in check_alltypes() 34 TEST(alltypes.req_fixed32 && *alltypes.req_fixed32 == 1008); in check_alltypes() 35 TEST(alltypes.req_sfixed32 && *alltypes.req_sfixed32 == -1009); in check_alltypes() [all …]
|
/external/skia/tests/ |
D | FitsInTest.cpp | 14 #define TEST(S, s, D, expected) REPORTER_ASSERT(reporter, (SkTFitsIn<D>((S)(s)) == (expected))) macro 17 TEST(int32_t, 1, int8_t, true); in DEF_TEST() 18 TEST(int32_t, -1, int8_t, true); in DEF_TEST() 19 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::max)(), int8_t, true); in DEF_TEST() 20 TEST(int32_t, ((int32_t)(std::numeric_limits<int8_t>::max)())+1, int8_t, false); in DEF_TEST() 21 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::min)(), int8_t, true); in DEF_TEST() 22 TEST(int32_t, (int32_t)((std::numeric_limits<int8_t>::min)())-1, int8_t, false); in DEF_TEST() 24 TEST(int32_t, 1, uint8_t, true); in DEF_TEST() 25 TEST(int32_t, -1, uint8_t, false); in DEF_TEST() 26 TEST(int32_t, (int32_t)(std::numeric_limits<uint8_t>::max)(), uint8_t, true); in DEF_TEST() [all …]
|
/external/clang/unittests/AST/ |
D | DeclPrinterTest.cpp | 185 TEST(DeclPrinter, TestTypedef1) { in TEST() function 193 TEST(DeclPrinter, TestTypedef2) { in TEST() function 201 TEST(DeclPrinter, TestTypedef3) { in TEST() function 210 TEST(DeclPrinter, TestTypedef4) { in TEST() function 219 TEST(DeclPrinter, TestNamespace1) { in TEST() function 227 TEST(DeclPrinter, TestNamespace2) { in TEST() function 235 TEST(DeclPrinter, TestNamespaceAlias1) { in TEST() function 244 TEST(DeclPrinter, TestNamespaceAlias2) { in TEST() function 253 TEST(DeclPrinter, TestCXXRecordDecl1) { in TEST() function 261 TEST(DeclPrinter, TestCXXRecordDecl2) { in TEST() function [all …]
|
D | SourceLocationTest.cpp | 31 TEST(MatchVerifier, ParseError) { in TEST() function 37 TEST(MatchVerifier, NoMatch) { in TEST() function 43 TEST(MatchVerifier, WrongType) { in TEST() function 49 TEST(LocationVerifier, WrongLocation) { in TEST() function 55 TEST(RangeVerifier, WrongRange) { in TEST() function 68 TEST(LabelDecl, Range) { in TEST() function 74 TEST(LabelStmt, Range) { in TEST() function 80 TEST(ParmVarDecl, KNRLocation) { in TEST() function 86 TEST(ParmVarDecl, KNRRange) { in TEST() function 92 TEST(CXXNewExpr, ArrayRange) { in TEST() function [all …]
|
/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 50 TEST(pb_read(&stream, buffer2, 6)) in main() 51 TEST(memcmp(buffer2, "foobar", 6) == 0) in main() 52 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main() 53 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 54 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0) in main() 55 TEST(stream.bytes_left == 0) in main() 56 TEST(!pb_read(&stream, buffer2, 1)) in main() 64 TEST(pb_read(&stream, buffer, 5)) in main() 65 TEST(memcmp(buffer, "xxxxx", 5) == 0) in main() 66 TEST(!pb_read(&stream, buffer, 50)) in main() [all …]
|
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 58 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); in main() 59 TEST(memcmp(buffer1, buffer2, sizeof(buffer1)) == 0); in main() 60 TEST(!pb_write(&stream, buffer1, 1)); in main() 61 TEST(stream.bytes_written == sizeof(buffer1)); in main() 69 TEST(pb_write(&stream, buffer1, 5)); in main() 71 TEST(!pb_write(&stream, buffer1, 5)); in main() 79 TEST(WRITES(pb_encode_varint(&s, 0), "\0")); in main() 80 TEST(WRITES(pb_encode_varint(&s, 1), "\1")); in main() 81 TEST(WRITES(pb_encode_varint(&s, 0x7F), "\x7F")); in main() 82 TEST(WRITES(pb_encode_varint(&s, 0x80), "\x80\x01")); in main() [all …]
|
/external/v8/testing/gtest/test/ |
D | gtest-printers_test.cc | 253 TEST(PrintEnumTest, AnonymousEnum) { in TEST() function 258 TEST(PrintEnumTest, EnumWithoutPrinter) { in TEST() function 263 TEST(PrintEnumTest, EnumWithStreaming) { in TEST() function 268 TEST(PrintEnumTest, EnumWithPrintTo) { in TEST() function 275 TEST(PrintClassTest, BiggestIntConvertible) { in TEST() function 282 TEST(PrintCharTest, PlainChar) { in TEST() function 302 TEST(PrintCharTest, SignedChar) { in TEST() function 309 TEST(PrintCharTest, UnsignedChar) { in TEST() function 318 TEST(PrintBuiltInTypeTest, Bool) { in TEST() function 324 TEST(PrintBuiltInTypeTest, Wchar_t) { in TEST() function [all …]
|
D | gtest-filepath_test.cc | 86 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 110 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 114 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 122 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 127 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 133 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 139 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 145 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 151 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 163 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
D | gtest_shuffle_test_.cc | 54 TEST(ADeathTest, A) {} in TEST() function 55 TEST(ADeathTest, B) {} in TEST() function 56 TEST(ADeathTest, C) {} in TEST() function 58 TEST(B, A) {} in TEST() function 59 TEST(B, B) {} in TEST() function 60 TEST(B, C) {} in TEST() function 61 TEST(B, DISABLED_D) {} in TEST() function 62 TEST(B, DISABLED_E) {} in TEST() function 64 TEST(BDeathTest, A) {} in TEST() function 65 TEST(BDeathTest, B) {} in TEST() function [all …]
|
/external/googletest/googletest/test/ |
D | gtest-printers_test.cc | 257 TEST(PrintEnumTest, AnonymousEnum) { in TEST() function 262 TEST(PrintEnumTest, EnumWithoutPrinter) { in TEST() function 267 TEST(PrintEnumTest, EnumWithStreaming) { in TEST() function 272 TEST(PrintEnumTest, EnumWithPrintTo) { in TEST() function 279 TEST(PrintClassTest, BiggestIntConvertible) { in TEST() function 286 TEST(PrintCharTest, PlainChar) { in TEST() function 306 TEST(PrintCharTest, SignedChar) { in TEST() function 313 TEST(PrintCharTest, UnsignedChar) { in TEST() function 322 TEST(PrintBuiltInTypeTest, Bool) { in TEST() function 328 TEST(PrintBuiltInTypeTest, Wchar_t) { in TEST() function [all …]
|
D | gtest-filepath_test.cc | 86 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 110 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 114 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 122 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 127 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 133 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 139 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 145 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 151 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 163 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
D | gtest_shuffle_test_.cc | 54 TEST(ADeathTest, A) {} in TEST() function 55 TEST(ADeathTest, B) {} in TEST() function 56 TEST(ADeathTest, C) {} in TEST() function 58 TEST(B, A) {} in TEST() function 59 TEST(B, B) {} in TEST() function 60 TEST(B, C) {} in TEST() function 61 TEST(B, DISABLED_D) {} in TEST() function 62 TEST(B, DISABLED_E) {} in TEST() function 64 TEST(BDeathTest, A) {} in TEST() function 65 TEST(BDeathTest, B) {} in TEST() function [all …]
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
D | gtest-printers_test.cc | 253 TEST(PrintEnumTest, AnonymousEnum) { in TEST() function 258 TEST(PrintEnumTest, EnumWithoutPrinter) { in TEST() function 263 TEST(PrintEnumTest, EnumWithStreaming) { in TEST() function 268 TEST(PrintEnumTest, EnumWithPrintTo) { in TEST() function 275 TEST(PrintClassTest, BiggestIntConvertible) { in TEST() function 282 TEST(PrintCharTest, PlainChar) { in TEST() function 302 TEST(PrintCharTest, SignedChar) { in TEST() function 309 TEST(PrintCharTest, UnsignedChar) { in TEST() function 318 TEST(PrintBuiltInTypeTest, Bool) { in TEST() function 324 TEST(PrintBuiltInTypeTest, Wchar_t) { in TEST() function [all …]
|
D | gtest-filepath_test.cc | 86 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 110 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 114 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 122 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 127 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 133 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 139 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 145 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 151 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 163 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
D | gtest_shuffle_test_.cc | 54 TEST(ADeathTest, A) {} in TEST() function 55 TEST(ADeathTest, B) {} in TEST() function 56 TEST(ADeathTest, C) {} in TEST() function 58 TEST(B, A) {} in TEST() function 59 TEST(B, B) {} in TEST() function 60 TEST(B, C) {} in TEST() function 61 TEST(B, DISABLED_D) {} in TEST() function 62 TEST(B, DISABLED_E) {} in TEST() function 64 TEST(BDeathTest, A) {} in TEST() function 65 TEST(BDeathTest, B) {} in TEST() function [all …]
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest-printers_test.cc | 247 TEST(PrintEnumTest, AnonymousEnum) { in TEST() function 252 TEST(PrintEnumTest, EnumWithoutPrinter) { in TEST() function 257 TEST(PrintEnumTest, EnumWithStreaming) { in TEST() function 262 TEST(PrintEnumTest, EnumWithPrintTo) { in TEST() function 269 TEST(PrintClassTest, BiggestIntConvertible) { in TEST() function 276 TEST(PrintCharTest, PlainChar) { in TEST() function 296 TEST(PrintCharTest, SignedChar) { in TEST() function 303 TEST(PrintCharTest, UnsignedChar) { in TEST() function 312 TEST(PrintBuiltInTypeTest, Bool) { in TEST() function 318 TEST(PrintBuiltInTypeTest, Wchar_t) { in TEST() function [all …]
|
D | gtest-port_test.cc | 82 TEST(ImplicitCastTest, ConvertsPointers) { in TEST() function 87 TEST(ImplicitCastTest, CanUseInheritance) { in TEST() function 105 TEST(ImplicitCastTest, CanUseNonConstCastOperator) { in TEST() function 124 TEST(ImplicitCastTest, CanUseConstCastOperatorOnConstValues) { in TEST() function 149 TEST(ImplicitCastTest, CanSelectBetweenConstAndNonConstCasrAppropriately) { in TEST() function 170 TEST(ImplicitCastTest, CanUseImplicitConstructor) { in TEST() function 177 TEST(IteratorTraitsTest, WorksForSTLContainerIterators) { in TEST() function 184 TEST(IteratorTraitsTest, WorksForPointerToNonConst) { in TEST() function 189 TEST(IteratorTraitsTest, WorksForPointerToConst) { in TEST() function 197 TEST(ScopedPtrTest, DefinesElementType) { in TEST() function [all …]
|
D | gtest-filepath_test.cc | 86 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 110 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 115 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 123 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 128 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 134 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 140 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 146 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 152 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 164 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
D | gtest_shuffle_test_.cc | 55 TEST(ADeathTest, A) {} in TEST() function 56 TEST(ADeathTest, B) {} in TEST() function 57 TEST(ADeathTest, C) {} in TEST() function 59 TEST(B, A) {} in TEST() function 60 TEST(B, B) {} in TEST() function 61 TEST(B, C) {} in TEST() function 62 TEST(B, DISABLED_D) {} in TEST() function 63 TEST(B, DISABLED_E) {} in TEST() function 65 TEST(BDeathTest, A) {} in TEST() function 66 TEST(BDeathTest, B) {} in TEST() function [all …]
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 22 TEST(Finder, DynamicOnlyAcceptsSomeMatchers) { in TEST() function 34 TEST(Decl, MatchesDeclarations) { in TEST() function 40 TEST(NameableDeclaration, MatchesVariousDecls) { in TEST() function 53 TEST(NameableDeclaration, REMatchesVariousDecls) { in TEST() function 83 TEST(DeclarationMatcher, MatchClass) { in TEST() function 98 TEST(DeclarationMatcher, translationUnitDecl) { in TEST() function 113 TEST(DeclarationMatcher, LinkageSpecification) { in TEST() function 118 TEST(ClassTemplate, DoesNotMatchClass) { in TEST() function 124 TEST(ClassTemplate, MatchesClassTemplate) { in TEST() function 130 TEST(ClassTemplate, DoesNotMatchClassTemplateExplicitSpecialization) { in TEST() function [all …]
|
/external/protobuf/gtest/test/ |
D | gtest-filepath_test.cc | 86 TEST(GetCurrentDirTest, ReturnsCurrentDir) { 106 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) { in TEST() function 111 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) { in TEST() function 119 TEST(RemoveDirectoryNameTest, WhenEmptyName) { in TEST() function 124 TEST(RemoveDirectoryNameTest, ButNoDirectory) { in TEST() function 130 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) { in TEST() function 136 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) { in TEST() function 142 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) { in TEST() function 148 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) { in TEST() function 160 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) { in TEST() function [all …]
|
D | gtest_shuffle_test_.cc | 55 TEST(ADeathTest, A) {} in TEST() function 56 TEST(ADeathTest, B) {} in TEST() function 57 TEST(ADeathTest, C) {} in TEST() function 59 TEST(B, A) {} in TEST() function 60 TEST(B, B) {} in TEST() function 61 TEST(B, C) {} in TEST() function 62 TEST(B, DISABLED_D) {} in TEST() function 63 TEST(B, DISABLED_E) {} in TEST() function 65 TEST(BDeathTest, A) {} in TEST() function 66 TEST(BDeathTest, B) {} in TEST() function [all …]
|