/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_clock_test.cc | 24 ASSERT_EQ(clk.size(), 1U); 26 ASSERT_EQ(clk.size(), 1U); 27 ASSERT_EQ(clk.get(0), 1U); 29 ASSERT_EQ(clk.size(), 4U); 30 ASSERT_EQ(clk.get(0), 1U); 31 ASSERT_EQ(clk.get(1), 0U); 32 ASSERT_EQ(clk.get(2), 0U); 33 ASSERT_EQ(clk.get(3), 1U); 35 ASSERT_EQ(clk.get(3), 2U); 41 ASSERT_EQ(vector.size(), 1U) [all...] |
/bionic/tests/ |
stdio_test.cpp | 61 ASSERT_EQ(sb.st_mode & 0777, 0600U); 64 ASSERT_EQ(rc, 6); 80 ASSERT_EQ(rc, 6); 87 ASSERT_EQ(buf, fgets(buf, sizeof(buf), tfile)); 90 ASSERT_EQ(NULL, fgets(buf, sizeof(buf), tfile)); 100 ASSERT_EQ(rc, static_cast<int>(strlen(line_written))); 110 ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), static_cast<int>(strlen(expected[i]))); 121 ASSERT_EQ(getdelim(&word_read, &allocated_length, ' ', fp), -1); 122 ASSERT_EQ(0, errno); 138 ASSERT_EQ(getdelim(NULL, &buffer_length, ' ', fp), -1) [all...] |
arpa_inet_test.cpp | 22 ASSERT_EQ((htonl)(0x7f000001), inet_addr("127.0.0.1")); 27 ASSERT_EQ(1, inet_aton("127.0.0.1", &a)); 28 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); 33 ASSERT_EQ(0x00345678U, inet_lnaof(a)); 38 ASSERT_EQ((htonl)(0x12345678), a.s_addr); 43 ASSERT_EQ(0x12U, inet_netof(a)); 47 ASSERT_EQ(0x7f000001U, inet_network("127.0.0.1")); 57 ASSERT_EQ(1, inet_pton(AF_INET, "127.0.0.1", &ss)); 69 ASSERT_EQ(1, inet_pton(AF_INET, "127.0.0.1", &ss4)); 72 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &ss6)) [all...] |
stdatomic_test.cpp | 39 ASSERT_EQ(123, atomic_load(&v)); 42 ASSERT_EQ(456, atomic_load(&v)); 98 ASSERT_EQ(123, atomic_load(&i)); 100 ASSERT_EQ(123, atomic_load_explicit(&i, memory_order_relaxed)); 106 ASSERT_EQ(123, atomic_exchange(&i, 456)); 107 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); 118 ASSERT_EQ(456, expected); 124 ASSERT_EQ(456, expected); 130 ASSERT_EQ(456, expected); 136 ASSERT_EQ(456, expected) [all...] |
sched_test.cpp | 37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE))); 39 ASSERT_EQ(42, i); 42 ASSERT_EQ(123, WEXITSTATUS(status)); 58 ASSERT_EQ(-1, clone(NULL, &fake_child_stack[16], CLONE_THREAD, NULL)); 59 ASSERT_EQ(EINVAL, errno); 69 ASSERT_EQ(i == 0 || i == 17, CPU_ISSET(i, &set)); 81 ASSERT_EQ(0, CPU_COUNT(&set)); 84 ASSERT_EQ(2, CPU_COUNT(&set)); 86 ASSERT_EQ(1, CPU_COUNT(&set)); 93 ASSERT_EQ(0, CPU_COUNT(&set)) [all...] |
unistd_test.cpp | 47 ASSERT_EQ(0, brk(new_break)); 51 ASSERT_EQ(0, brk(new_break)); 52 ASSERT_EQ(get_brk(), new_break); 56 ASSERT_EQ(-1, brk(reinterpret_cast<void*>(-1))); 57 ASSERT_EQ(ENOMEM, errno); 89 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MAX)); 90 ASSERT_EQ(ENOMEM, errno); 95 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MIN)); 96 ASSERT_EQ(ENOMEM, errno); 100 ASSERT_EQ(reinterpret_cast<void*>(-1), sbrk(PTRDIFF_MIN + 1)) [all...] |
libdl_test.cpp | 26 ASSERT_EQ(static_cast<uint32_t>(__ANDROID_API__), android_get_application_target_sdk_version()); 29 ASSERT_EQ(20U, android_get_application_target_sdk_version()); 32 ASSERT_EQ(22U, android_get_application_target_sdk_version());
|
sys_personality_test.cpp | 25 ASSERT_EQ(PER_LINUX, persona); 27 ASSERT_EQ(PER_LINUX32, persona); 31 ASSERT_EQ(PER_LINUX, persona);
|
string_posix_strerror_r_test.cpp | 44 ASSERT_EQ(0, strerror_r(0, buf, sizeof(buf))); 46 ASSERT_EQ(0, strerror_r(1, buf, sizeof(buf))); 50 ASSERT_EQ(0, strerror_r(-1, buf, sizeof(buf))); 52 ASSERT_EQ(0, strerror_r(1234, buf, sizeof(buf))); 58 ASSERT_EQ(-1, strerror_r(4567, buf, 2)); 61 ASSERT_EQ(ERANGE, errno);
|
sys_epoll_test.cpp | 31 ASSERT_EQ(0, epoll_wait(epoll_fd, events, 1, 1)); 34 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, NULL)); 40 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, &ss)); 59 ASSERT_EQ(1, write(fds[1], "\n", 1)); 63 ASSERT_EQ(1, epoll_wait(epoll_fd, events, 1, 1)); 64 ASSERT_EQ(expected, events[0].data.u64);
|
ftw_test.cpp | 33 ASSERT_EQ(0, mkdir(path, 0755)) << path; 35 ASSERT_EQ(0, mkdir(path, 0555)) << path; 37 ASSERT_EQ(0, mkdir(path, 0000)) << path; 40 ASSERT_EQ(0, symlink("/does-not-exist", path)); 42 ASSERT_EQ(0, symlink("sub2", path)); 47 ASSERT_EQ(0, close(fd)); 65 ASSERT_EQ('/', fpath[ftwbuf->base - 1]) << fpath; 91 ASSERT_EQ(0, ftw(root.dirname, check_ftw, 128)); 97 ASSERT_EQ(0, ftw64(root.dirname, check_ftw64, 128)); 103 ASSERT_EQ(0, nftw(root.dirname, check_nftw, 128, 0)) [all...] |
/bootable/recovery/minadbd/ |
fuse_adb_provider_test.cpp | 33 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sockets)); 49 ASSERT_EQ(0, read_block_adb(reinterpret_cast<void*>(&data), block, 56 ASSERT_EQ(0, block_req[8]); 57 ASSERT_EQ(8U, strlen(block_req)); 61 ASSERT_EQ(0, block_req[8]); 67 ASSERT_EQ(-1, read(host_socket, &tmp, 1)); 68 ASSERT_EQ(EWOULDBLOCK, errno); 78 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, sockets)); 81 ASSERT_EQ(0, close(sockets[1])); 84 ASSERT_EQ(-EIO, read_block_adb(reinterpret_cast<void*>(&data), 0 [all...] |
/frameworks/base/tools/aapt2/ |
BigBuffer_test.cpp | 71 ASSERT_EQ(sizeof(uint32_t), b->size); 72 ASSERT_EQ(33u, *reinterpret_cast<uint32_t*>(b->buffer.get())); 76 ASSERT_EQ(sizeof(uint32_t), b->size); 77 ASSERT_EQ(44u, *reinterpret_cast<uint32_t*>(b->buffer.get())); 80 ASSERT_EQ(b, buffer.end()); 87 ASSERT_EQ(2u, buffer.size()); 89 ASSERT_EQ(4u, buffer.size()); 91 ASSERT_EQ(4u, buffer.size()); 93 ASSERT_EQ(6u, buffer.size()); 95 ASSERT_EQ(8u, buffer.size()) [all...] |
/frameworks/base/libs/androidfw/tests/ |
ResTable_test.cpp | 46 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 51 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 58 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 66 ASSERT_EQ(base::R::string::test1, resID); 71 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 74 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme1)); 80 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); 81 ASSERT_EQ(uint32_t(100), val.data); 85 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 86 ASSERT_EQ(base::R::integer::number1, val.data) [all...] |
/external/webrtc/src/system_wrappers/source/ |
data_log_unittest_disabled.cc | 23 ASSERT_EQ(0, DataLog::AddTable(table_name)); 24 ASSERT_EQ(0, DataLog::AddColumn(table_name, "test", 1)); 29 ASSERT_EQ(0, DataLog::NextRow(table_name)); 36 ASSERT_EQ(0, DataLog::CreateLog()); 40 ASSERT_EQ("", table_name); 48 ASSERT_EQ(0, DataLog::CreateLog()); 54 ASSERT_EQ(NULL, fopen(kDataLogFileName, "r"));
|
/system/core/libsync/tests/ |
sync_test.cpp | 253 ASSERT_EQ(fence.wait(0), -1); 254 ASSERT_EQ(errno, ETIME); 257 ASSERT_EQ(timeline.inc(1), 0); 260 ASSERT_EQ(fence.wait(0), -1); 261 ASSERT_EQ(errno, ETIME); 264 ASSERT_EQ(timeline.inc(4), 0); 267 ASSERT_EQ(fence.wait(0), 0); 270 ASSERT_EQ(timeline.inc(10), 0); 271 ASSERT_EQ(fence.wait(0), 0); 287 ASSERT_EQ(select(fence.getFd() + 1, &set, nullptr, nullptr, &time), 0) [all...] |
/external/google-breakpad/src/processor/ |
stackwalker_address_list_unittest.cc | 108 ASSERT_EQ(arraysize(kDummyFrames), frames->size()); 110 ASSERT_EQ(kDummyFrames[i], frames->at(i)->instruction); 111 ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); 113 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(0)->module); 114 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module); 115 ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(2)->module); 116 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(3)->module); 117 ASSERT_EQ(static_cast<const CodeModule*>(&module1), frames->at(4)->module); 140 ASSERT_EQ(2U, modules_without_symbols.size()); 141 ASSERT_EQ("module2", modules_without_symbols[0]->debug_file()) [all...] |
/hardware/libhardware/tests/camera2/ |
CameraFrameTests.cpp | 90 ASSERT_EQ(OK, mDevice->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, 95 ASSERT_EQ(OK, previewRequest.update(ANDROID_REQUEST_OUTPUT_STREAMS, 99 ASSERT_EQ(OK, previewRequest.update(ANDROID_REQUEST_FRAME_COUNT, 111 ASSERT_EQ(OK, mDevice->capture(tmpRequest)); 116 ASSERT_EQ(OK, mDevice->waitForNextFrame(CAMERA_FRAME_TIMEOUT)); 119 ASSERT_EQ(OK, mDevice->getNextResult(&result)); 122 ASSERT_EQ(OK, mFrameListener->waitForFrame(CAMERA_FRAME_TIMEOUT)); 127 ASSERT_EQ(OK, mCpuConsumer->lockNextBuffer(&imgBuffer)); 128 ASSERT_EQ(OK, mCpuConsumer->unlockBuffer(imgBuffer));
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
line_reader_unittest.cc | 75 ASSERT_EQ((unsigned int)1, len); 76 ASSERT_EQ('a', line[0]); 77 ASSERT_EQ('\0', line[1]); 91 ASSERT_EQ((unsigned)1, len); 92 ASSERT_EQ('a', line[0]); 93 ASSERT_EQ('\0', line[1]); 107 ASSERT_EQ((unsigned)1, len); 108 ASSERT_EQ('a', line[0]); 109 ASSERT_EQ('\0', line[1]); 113 ASSERT_EQ((unsigned)1, len) [all...] |
/system/core/libion/tests/ |
formerly_valid_handle_test.cpp | 35 ASSERT_EQ(0, ion_alloc(m_ionFd, 4096, 0, 1/* ion_env->m_firstHeap */, 0, &m_handle)); 37 ASSERT_EQ(0, ion_free(m_ionFd, m_handle)); 47 ASSERT_EQ(-EINVAL, ion_free(m_ionFd, m_handle)); 55 ASSERT_EQ(-EINVAL, ion_map(m_ionFd, m_handle, 4096, PROT_READ, 0, 0, &ptr, &map_fd)); 62 ASSERT_EQ(-EINVAL, ion_share(m_ionFd, m_handle, &share_fd));
|
/system/core/libnativebridge/tests/ |
CodeCacheExists_test.cpp | 30 ASSERT_EQ(-1, stat(kCodeCache, &st)); 31 ASSERT_EQ(ENOENT, errno); 34 ASSERT_EQ(0, mkdir(kCodeCache, S_IRWXU | S_IRWXG | S_IXOTH)); 44 ASSERT_EQ(0, stat(kCodeCache, &st)); 49 ASSERT_EQ(0, rmdir(kCodeCache));
|
/system/extras/simpleperf/ |
command_test.cpp | 32 ASSERT_EQ(Command::FindCommandByName("mock1"), nullptr); 35 ASSERT_EQ(Command::FindCommandByName("mock1"), &mock1); 37 ASSERT_EQ(Command::FindCommandByName("mock1"), nullptr); 44 ASSERT_EQ(command_count + 1, Command::GetAllCommands().size()); 46 ASSERT_EQ(command_count, Command::GetAllCommands().size());
|
/external/clang/unittests/Tooling/ |
ReplacementsYamlTest.cpp | 72 ASSERT_EQ(2u, DocActual.Replacements.size()); 73 ASSERT_EQ("/path/to/source.cpp", DocActual.MainSourceFile); 74 ASSERT_EQ("some context", DocActual.Context); 75 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath()); 76 ASSERT_EQ(232u, DocActual.Replacements[0].getOffset()); 77 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); 78 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()); 79 ASSERT_EQ("/path/to/file2.h", DocActual.Replacements[1].getFilePath()); 80 ASSERT_EQ(301u, DocActual.Replacements[1].getOffset()); 81 ASSERT_EQ(2u, DocActual.Replacements[1].getLength()) [all...] |
/art/compiler/optimizing/ |
live_ranges_test.cc | 77 ASSERT_EQ(2u, range->GetStart()); 79 ASSERT_EQ(8u, range->GetEnd()); 82 ASSERT_EQ(8u, block->GetLastInstruction()->GetLifetimePosition()); 125 ASSERT_EQ(2u, range->GetStart()); 127 ASSERT_EQ(22u, range->GetEnd()); 130 ASSERT_EQ(22u, block->GetLastInstruction()->GetLifetimePosition()); 177 ASSERT_EQ(4u, range->GetStart()); 180 ASSERT_EQ(18u, range->GetEnd()); 188 ASSERT_EQ(2u, range->GetStart()); 190 ASSERT_EQ(14u, range->GetEnd()) [all...] |
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
GLTest_test.cpp | 46 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 52 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 57 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 81 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 86 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 91 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 95 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 97 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 100 ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError()); 121 ASSERT_EQ(EGL_SUCCESS, eglGetError()) [all...] |