Searched defs:expected (Results 1 - 12 of 12) sorted by relevance

/bionic/tests/
H A Dsstream_test.cpp26 static void CheckOverflow(T expected, const char* value, bool should_overflow) { argument
33 ASSERT_EQ(expected, result) << value;
H A Dsys_epoll_test.cpp50 const uint64_t expected = 0x123456789abcdef0; local
55 ev.data.u64 = expected;
64 ASSERT_EQ(expected, events[0].data.u64);
H A Dfcntl_test.cpp199 char expected[256]; local
202 ASSERT_TRUE(fgets(expected, sizeof(expected), expected_fp) != NULL);
237 ASSERT_STREQ(expected, buf1);
238 ASSERT_STREQ(expected, buf2);
H A Dsearch_test.cpp158 int expected = 0; local
160 ASSERT_EQ(expected, q->i);
161 ++expected;
163 ASSERT_EQ(3, expected);
166 --expected;
167 ASSERT_EQ(expected, q->i);
169 ASSERT_EQ(0, expected);
H A Dsetjmp_test.cpp88 void AssertSigmaskEquals(const sigset_t& expected) { argument
93 EXPECT_EQ(sigismember(&expected, i), sigismember(&actual, i)) << i;
H A Dstdatomic_test.cpp112 int expected; local
115 expected = 123;
116 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456));
117 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456));
118 ASSERT_EQ(456, expected);
121 expected = 123;
122 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, memory_order_relaxed));
123 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, memory_order_relaxed));
124 ASSERT_EQ(456, expected);
127 expected
[all...]
H A Dmath_data_test.h23 RT expected; member in struct:data_1_1_t
29 int expected; member in struct:data_int_1_t
35 long expected; member in struct:data_long_1_t
41 long long expected; member in struct:data_llong_1_t
47 RT expected; member in struct:data_1_2_t
76 RT expected; member in struct:data_1_3_t
131 T expected,
133 if (!isnan(expected) && !isnan(actual) && UlpDistance(expected, actual) <= ULP) {
137 // Output the actual and expected value
129 operator ()(const char* , const char* , T expected, T actual) argument
[all...]
H A Dstdio_test.cpp119 const char* expected[] = { "This ", " ", "is ", "a ", "test" }; local
122 ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i])));
123 ASSERT_GE(allocated_length, strlen(expected[i]));
124 ASSERT_STREQ(expected[i], word_read);
1204 char expected[BUFSIZ]; local
1205 snprintf(expected, sizeof(expected), "hello %zu!\n", i);
1206 ASSERT_STREQ(expected, buf);
H A Dstring_test.cpp160 // expected result and then run function and compare what we got.
449 char* expected; local
452 expected = state.ptr1 + state.len[i] - 1;
454 expected = NULL;
458 expected = state.ptr1 + pos;
461 ASSERT_TRUE(strchr(state.ptr1, seek_char) == expected);
484 int expected; local
487 expected = 0;
492 expected = 1;
496 expected
652 int expected; local
761 char* expected; local
786 char* expected; local
815 char* expected; local
840 int expected = (static_cast<int>(c1) - static_cast<int>(c2)); local
862 int expected = (static_cast<int>(c1) - static_cast<int>(c2)); local
[all...]
H A Dpthread_test.cpp116 void* expected = reinterpret_cast<void*>(1234); local
119 ASSERT_EQ(0, pthread_setspecific(key, expected));
120 ASSERT_EQ(expected, pthread_getspecific(key));
125 ASSERT_EQ(EINVAL, pthread_setspecific(key, expected));
129 void* expected = reinterpret_cast<void*>(1234); local
132 ASSERT_EQ(0, pthread_setspecific(key, expected));
133 ASSERT_EQ(expected, pthread_getspecific(key));
140 ASSERT_EQ(expected, pthread_getspecific(key));
146 ASSERT_EQ(expected, pthread_getspecific(key));
247 // If we join, do we get the expected valu
[all...]
/bionic/libc/malloc_debug/
H A DGuardData.cpp56 const uint8_t* expected = cmp_mem_.data(); local
60 if (real[i] != expected[i]) {
61 error_log(" allocation[%d] = 0x%02x (expected 0x%02x)", pointer_idx, real[i], expected[i]);
/bionic/libc/kernel/uapi/linux/
H A Dbtrfs.h229 __u64 expected; member in struct:btrfs_balance_progress

Completed in 141 milliseconds