/bionic/tests/ |
D | stdatomic_test.cpp | 110 int expected; in TEST() local 113 expected = 123; in TEST() 114 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST() 115 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST() 116 ASSERT_EQ(456, expected); in TEST() 119 expected = 123; in TEST() 120 …ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, memo… in TEST() 121 …ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, mem… in TEST() 122 ASSERT_EQ(456, expected); in TEST() 125 expected = 123; in TEST() [all …]
|
D | math_tan_test.cpp | 23 double expected; member 5198 …EXPECT_DOUBLE_EQ(g_tan_intel_data[i].expected, tan(g_tan_intel_data[i].call_data)) << "Failed on e… in TEST()
|
D | math_sinf_test.cpp | 23 float expected; member 4390 …EXPECT_FLOAT_EQ(g_sinf_intel_data[i].expected, sinf(g_sinf_intel_data[i].call_data)) << "Failed on… in TEST()
|
D | math_sin_test.cpp | 23 double expected; member 5790 …EXPECT_DOUBLE_EQ(g_sin_intel_data[i].expected, sin(g_sin_intel_data[i].call_data)) << "Failed on e… in TEST()
|
D | math_cosf_test.cpp | 23 float expected; member 4350 …EXPECT_FLOAT_EQ(g_cosf_intel_data[i].expected, cosf(g_cosf_intel_data[i].call_data)) << "Failed on… in TEST()
|
D | math_cos_test.cpp | 23 double expected; member 5638 …EXPECT_DOUBLE_EQ(g_cos_intel_data[i].expected, cos(g_cos_intel_data[i].call_data)) << "Failed on e… in TEST()
|
D | math_tanf_test.cpp | 23 float expected; member 4454 …EXPECT_FLOAT_EQ(g_tanf_intel_data[i].expected, tanf(g_tanf_intel_data[i].call_data)) << "Failed on… in TEST()
|
D | math_log_test.cpp | 23 double expected; member 1670 …EXPECT_DOUBLE_EQ(g_log_intel_data[i].expected, log(g_log_intel_data[i].call_data)) << "Failed on e… in TEST()
|
D | math_logf_test.cpp | 23 float expected; member 1322 …EXPECT_FLOAT_EQ(g_logf_intel_data[i].expected, logf(g_logf_intel_data[i].call_data)) << "Failed on… in TEST()
|
D | sys_epoll_test.cpp | 50 const uint64_t expected = 0x123456789abcdef0; in TEST() local 55 ev.data.u64 = expected; in TEST() 64 ASSERT_EQ(expected, events[0].data.u64); in TEST()
|
D | math_exp_test.cpp | 23 double expected; member 1970 …EXPECT_DOUBLE_EQ(g_exp_intel_data[i].expected, exp(g_exp_intel_data[i].call_data)) << "Failed on e… in TEST()
|
D | math_expf_test.cpp | 23 float expected; member 1434 …EXPECT_FLOAT_EQ(g_expf_intel_data[i].expected, expf(g_expf_intel_data[i].call_data)) << "Failed on… in TEST()
|
D | search_test.cpp | 158 int expected = 0; in TEST() local 160 ASSERT_EQ(expected, q->i); in TEST() 161 ++expected; in TEST() 163 ASSERT_EQ(3, expected); in TEST() 166 --expected; in TEST() 167 ASSERT_EQ(expected, q->i); in TEST() 169 ASSERT_EQ(0, expected); 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 | string_test.cpp | 396 char* expected; in TEST() local 399 expected = state.ptr1 + state.len[i] - 1; in TEST() 401 expected = NULL; in TEST() 405 expected = state.ptr1 + pos; in TEST() 408 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected); in TEST() 426 int expected; in TEST() local 429 expected = 0; in TEST() 434 expected = 1; in TEST() 438 expected = 0; in TEST() 440 expected = -1; in TEST() [all …]
|
D | fcntl_test.cpp | 199 char expected[256]; in TEST() local 202 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL); in TEST() 237 ASSERT_STREQ(expected, buf1); in TEST() 238 ASSERT_STREQ(expected, buf2); in TEST()
|
D | math_pow_test.cpp | 23 double expected; member 3295 …EXPECT_DOUBLE_EQ(g_pow_intel_data[i].expected, pow(g_pow_intel_data[i].x_call_data, g_pow_intel_da… in TEST()
|
D | math_powf_test.cpp | 23 float expected; member 2783 …EXPECT_FLOAT_EQ(g_powf_intel_data[i].expected, powf(g_powf_intel_data[i].x_call_data, g_powf_intel… in TEST()
|
D | pthread_test.cpp | 75 void* expected = reinterpret_cast<void*>(1234); in TEST() local 78 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST() 79 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST() 84 ASSERT_EQ(EINVAL, pthread_setspecific(key, expected)); in TEST() 88 void* expected = reinterpret_cast<void*>(1234); in TEST() local 91 ASSERT_EQ(0, pthread_setspecific(key, expected)); in TEST() 92 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST() 99 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST() 108 ASSERT_EQ(expected, pthread_getspecific(key)); in TEST()
|
D | stdio_test.cpp | 105 const char* expected[] = { "This ", " ", "is ", "a ", "test" }; in TEST() local 108 …ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); in TEST() 109 ASSERT_GE(allocated_length, strlen(expected[i])); in TEST() 110 ASSERT_STREQ(word_read, expected[i]); in TEST()
|
/bionic/libc/include/ |
D | stdatomic.h | 397 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument 399 __c11_atomic_compare_exchange_strong(object, expected, desired, \ 401 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument 403 __c11_atomic_compare_exchange_weak(object, expected, desired, \ 422 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument 424 __atomic_compare_exchange_n(&(object)->__val, expected, \ 426 #define atomic_compare_exchange_weak_explicit(object, expected, \ argument 428 __atomic_compare_exchange_n(&(object)->__val, expected, \ 449 #define atomic_compare_exchange_strong_explicit(object, expected, \ argument 451 __typeof__(expected) __ep = (expected); \ [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | atm_zatm.h | 44 struct timeval expected; member
|
D | btrfs.h | 202 __u64 expected; member
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 1006 def test_cpp_expr(expr, expected): argument 1009 if s1 != expected: 1010 print "[FAIL]: expression '%s' generates '%s', should be '%s'" % (expr, s1, expected) 1014 def test_cpp_expr_optim(expr, expected, macros={}): argument 1018 if s1 != expected: 1019 …mized expression '%s' generates '%s' with macros %s, should be '%s'" % (expr, s1, macros, expected) 1023 def test_cpp_expr_source(expr, expected): argument 1026 if s1 != expected: 1027 print "[FAIL]: source expression '%s' generates '%s', should be '%s'" % (expr, s1, expected) 1648 def test_block_parsing(lines,expected): argument [all …]
|