/bionic/benchmarks/tests/ |
D | interface_test.cpp | 153 std::string expected = in TEST_F() local 177 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F() 198 std::string expected = in TEST_F() local 204 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F() 209 std::string expected = in TEST_F() local 224 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_medium.xml").c_str(), in TEST_F() 229 std::string expected = in TEST_F() local 239 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_from_each.xml").c_str(), in TEST_F() 244 std::string expected = in TEST_F() local 247 Verify(expected, 0, in TEST_F() [all …]
|
/bionic/tests/ |
D | __cxa_atexit_test.cpp | 79 std::vector<int> expected; in TEST() local 80 for (int i = 498; i >= 0; i -= 2) expected.push_back(i); in TEST() 81 for (int i = 749; i >= 500; --i) expected.push_back(i); in TEST() 82 for (int i = 499; i >= 1; i -= 2) expected.push_back(i); in TEST() 84 ASSERT_EQ(expected.size(), actual.size()); in TEST() 85 for (size_t i = 0; i < expected.size(); ++i) { in TEST() 86 ASSERT_EQ(expected[i], actual[i]) << "index=" << i; in TEST()
|
D | stdatomic_test.cpp | 106 int expected; in TEST() local 109 expected = 123; in TEST() 110 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST() 111 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST() 112 ASSERT_EQ(456, expected); in TEST() 115 expected = 123; in TEST() 116 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST() 118 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST() 120 ASSERT_EQ(456, expected); in TEST() 123 expected = 123; in TEST() [all …]
|
D | math_data_test.h | 24 RT expected; member 30 int expected; member 36 long expected; member 42 long long expected; member 48 RT expected; member 77 RT expected; member 153 T expected, 155 if (!isnan(expected) && !isnan(actual) && UlpDistance(expected, actual) <= ULP) { 160 << "expected (" << std::hexfloat << expected << ") != actual (" << actual << ")"; 173 data[i].expected, f(data[i].input)) << "Failed on element " << i; [all …]
|
D | libgen_basename_test.cpp | 67 #define TestGnuBasename(in, expected) __TestGnuBasename(in, expected, __LINE__) argument 68 #define TestPosixBasename(in, expected) __TestPosixBasename(in, expected, __LINE__) argument
|
D | search_test.cpp | 165 int expected = 0; in TEST() local 167 ASSERT_EQ(expected, q->i); in TEST() 168 ++expected; in TEST() 170 ASSERT_EQ(3, expected); in TEST() 173 --expected; in TEST() 174 ASSERT_EQ(expected, q->i); in TEST() 176 ASSERT_EQ(0, expected); in TEST()
|
D | string_test.cpp | 461 char* expected; in TEST() local 464 expected = state.ptr1 + state.len[i] - 1; in TEST() 466 expected = nullptr; in TEST() 470 expected = state.ptr1 + pos; in TEST() 473 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST() 496 int expected; in TEST() local 499 expected = 0; in TEST() 504 expected = 1; in TEST() 508 expected = 0; in TEST() 510 expected = -1; in TEST() [all …]
|
D | sys_epoll_test.cpp | 135 const uint64_t expected = 0x123456789abcdef0; in TEST() local 140 ev.data.u64 = expected; in TEST() 149 ASSERT_EQ(expected, events[0].data.u64); in TEST()
|
D | sstream_test.cpp | 26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { in CheckOverflow() argument 33 ASSERT_EQ(expected, result) << value; in CheckOverflow()
|
D | fcntl_test.cpp | 228 char expected[BUFSIZ]; in TEST() local 231 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != nullptr); in TEST() 266 ASSERT_STREQ(expected, buf1); in TEST() 267 ASSERT_STREQ(expected, buf2); in TEST()
|
/bionic/libc/bionic/ |
D | malloc_heapprofd.cpp | 235 MallocHeapprofdState expected = kInitialState; in HandleHeapprofdSignal() local 239 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, in HandleHeapprofdSignal() 276 } else if (expected == kEphemeralHookInstalled) { in HandleHeapprofdSignal() 371 MallocHeapprofdState expected = kInitialState; in HeapprofdInstallHooksAtInit() local 372 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in HeapprofdInstallHooksAtInit() 377 "current state (possible race): %d", getprogname(), expected); in HeapprofdInstallHooksAtInit() 384 MallocHeapprofdState expected = kInitialState; in InitHeapprofd() local 385 if (atomic_compare_exchange_strong(&gHeapprofdState, &expected, kInstallingHook)) { in InitHeapprofd() 392 "current state (possible race): %d", getprogname(), expected); in InitHeapprofd() 400 MallocHeapprofdState expected = kEphemeralHookInstalled; in MallocInitHeapprofdHook() local [all …]
|
D | fdtrack.cpp | 57 bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* expected, in android_fdtrack_compare_exchange_hook() argument 59 return atomic_compare_exchange_strong(&__android_fdtrack_hook, expected, value); in android_fdtrack_compare_exchange_hook()
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 1853 expected = """\ 1856 self.assertEqual(self.parse(text), expected) 1865 expected = "" 1866 self.assertEqual(self.parse(text), expected) 1876 expected = """\ 1879 self.assertEqual(self.parse(text), expected) 1889 expected = """\ 1892 self.assertEqual(self.parse(text), expected) 1902 expected = """\ 1909 self.assertEqual(self.parse(text), expected) [all …]
|
/bionic/linker/ |
D | linker_gnu_hash_test.cpp | 36 auto expected = calculate_gnu_hash_simple(name); in TEST() local 38 EXPECT_EQ(expected.first, actual.first) << name; in TEST() 39 EXPECT_EQ(expected.second, actual.second) << name; in TEST()
|
D | linker_memory.cpp | 45 pid_t expected = 0; in __linker_enable_fallback_allocator() local 46 return fallback_tid.compare_exchange_strong(expected, gettid()); in __linker_enable_fallback_allocator()
|
/bionic/libc/include/bits/ |
D | stdatomic.h | 207 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument 209 __c11_atomic_compare_exchange_strong(object, expected, desired, \ 211 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument 213 __c11_atomic_compare_exchange_weak(object, expected, desired, \ 236 #define atomic_compare_exchange_strong(object, expected, desired) \ argument 237 atomic_compare_exchange_strong_explicit(object, expected, \ 239 #define atomic_compare_exchange_weak(object, expected, desired) \ argument 240 atomic_compare_exchange_weak_explicit(object, expected, \
|
/bionic/libc/malloc_debug/ |
D | LogAllocatorStats.cpp | 47 bool expected = true; in CheckIfShouldLog() local 48 if (g_call_mallopt.compare_exchange_strong(expected, false)) { in CheckIfShouldLog()
|
D | GuardData.cpp | 55 const uint8_t* expected = cmp_mem_.data(); in LogFailure() local 59 if (real[i] != expected[i]) { in LogFailure() 60 error_log(" allocation[%d] = 0x%02x (expected 0x%02x)", pointer_idx, real[i], expected[i]); in LogFailure()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 187 static void VerifyRecords(std::vector<std::string>& expected, std::string& actual) { in VerifyRecords() argument 189 for (std::string& str : expected) { in VerifyRecords() 1466 std::string expected = in BacktraceDumpOnSignal() local 1484 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in BacktraceDumpOnSignal() 1528 std::string expected = in TEST_F() local 1543 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() 1577 std::string expected = in TEST_F() local 1591 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() 1635 std::string expected = in TEST_F() local 1653 ASSERT_STREQ(expected.c_str(), sanitized.c_str()) << "Actual data: \n" << actual; in TEST_F() [all …]
|
/bionic/tools/versioner/tests/preprocessor_file_offset_bits/ |
D | run.sh | 5 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_idempotence/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_merging/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_no_guard/ |
D | run.sh | 4 diff -q -w -B out expected
|
/bionic/libfdtrack/ |
D | fdtrack.cpp | 101 android_fdtrack_hook_t expected = nullptr; in ctor() local 102 installed = android_fdtrack_compare_exchange_hook(&expected, &fd_hook); in ctor() 110 android_fdtrack_hook_t expected = &fd_hook; in dtor() local 111 android_fdtrack_compare_exchange_hook(&expected, nullptr); in dtor()
|
/bionic/libc/platform/bionic/ |
D | fdtrack.h | 69 bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* _Nonnull expected,
|