/system/unwinding/libunwindstack/tests/ |
D | ArmExidxDecodeTest.cpp | 92 ASSERT_EQ("", GetFakeLogBuf()); in TEST_P() 95 ASSERT_EQ("", GetFakeLogPrint()); in TEST_P() 98 ASSERT_EQ("4 unwind vsp = vsp + 4\n", GetFakeLogPrint()); in TEST_P() 102 ASSERT_EQ("4 unwind cfa = r13 + 4\n", GetFakeLogPrint()); in TEST_P() 105 ASSERT_EQ(0x10004U, exidx_->cfa()); in TEST_P() 112 ASSERT_EQ("", GetFakeLogBuf()); in TEST_P() 115 ASSERT_EQ("", GetFakeLogPrint()); in TEST_P() 118 ASSERT_EQ("4 unwind vsp = vsp + 8\n", GetFakeLogPrint()); in TEST_P() 122 ASSERT_EQ("4 unwind cfa = r13 + 8\n", GetFakeLogPrint()); in TEST_P() 125 ASSERT_EQ(0x10008U, exidx_->cfa()); in TEST_P() [all …]
|
D | DwarfOpTest.cpp | 56 ASSERT_EQ(DWARF_ERROR_MEMORY_INVALID, this->op_->LastErrorCode()); in TYPED_TEST_P() 63 ASSERT_EQ(DWARF_ERROR_NONE, this->op_->LastErrorCode()); in TYPED_TEST_P() 64 ASSERT_EQ(0x96U, this->op_->cur_op()); in TYPED_TEST_P() 65 ASSERT_EQ(1U, this->mem_->cur_offset()); in TYPED_TEST_P() 71 ASSERT_EQ(DWARF_ERROR_MEMORY_INVALID, this->op_->LastErrorCode()); in TYPED_TEST_P() 79 ASSERT_EQ(1U, this->mem_->cur_offset()); in TYPED_TEST_P() 80 ASSERT_EQ(1U, this->op_->StackSize()); in TYPED_TEST_P() 89 ASSERT_EQ(DWARF_ERROR_NONE, this->op_->LastErrorCode()); in TYPED_TEST_P() 91 ASSERT_EQ(8U, this->mem_->cur_offset()); in TYPED_TEST_P() 92 ASSERT_EQ(4U, this->op_->StackSize()); in TYPED_TEST_P() [all …]
|
D | DwarfCfaTest.cpp | 83 ASSERT_EQ(DWARF_ERROR_ILLEGAL_VALUE, this->cfa_->LastErrorCode()); in TYPED_TEST_P() 84 ASSERT_EQ(0x2001U, this->dmem_->cur_offset()); in TYPED_TEST_P() 86 ASSERT_EQ("", GetFakeLogPrint()); in TYPED_TEST_P() 87 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 96 ASSERT_EQ(0x2001U, this->dmem_->cur_offset()); in TYPED_TEST_P() 97 ASSERT_EQ(0U, loc_regs.size()); in TYPED_TEST_P() 99 ASSERT_EQ("", GetFakeLogPrint()); in TYPED_TEST_P() 100 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 109 ASSERT_EQ(0x2002U, this->dmem_->cur_offset()); in TYPED_TEST_P() 110 ASSERT_EQ(1U, loc_regs.size()); in TYPED_TEST_P() [all …]
|
D | ArmExidxExtractTest.cpp | 54 ASSERT_EQ(ARM_STATUS_INVALID_ALIGNMENT, exidx_->status()); in TEST_F() 62 ASSERT_EQ(ARM_STATUS_NO_UNWIND, exidx_->status()); in TEST_F() 70 ASSERT_EQ(3U, data_->size()); in TEST_F() 71 ASSERT_EQ(0xa8, data_->at(0)); in TEST_F() 72 ASSERT_EQ(0xb0, data_->at(1)); in TEST_F() 73 ASSERT_EQ(0xb0, data_->at(2)); in TEST_F() 80 ASSERT_EQ(4U, data_->size()); in TEST_F() 81 ASSERT_EQ(0xa1, data_->at(0)); in TEST_F() 82 ASSERT_EQ(0xa2, data_->at(1)); in TEST_F() 83 ASSERT_EQ(0xa3, data_->at(2)); in TEST_F() [all …]
|
D | DwarfCfaLogTest.cpp | 86 ASSERT_EQ(expected, GetFakeLogPrint()); in TYPED_TEST_P() 87 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 98 ASSERT_EQ(expected, GetFakeLogPrint()); in TYPED_TEST_P() 99 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 109 ASSERT_EQ(expected, GetFakeLogPrint()); in TYPED_TEST_P() 110 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 119 ASSERT_EQ(expected, GetFakeLogPrint()); in TYPED_TEST_P() 120 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() 130 ASSERT_EQ(expected, GetFakeLogPrint()); in TYPED_TEST_P() 131 ASSERT_EQ("", GetFakeLogBuf()); in TYPED_TEST_P() [all …]
|
D | DwarfMemoryTest.cpp | 69 ASSERT_EQ(0x10U, byte); in TEST_F() 71 ASSERT_EQ(0x18U, byte); in TEST_F() 73 ASSERT_EQ(0xffU, byte); in TEST_F() 75 ASSERT_EQ(0xfeU, byte); in TEST_F() 76 ASSERT_EQ(4U, dwarf_mem_->cur_offset()); in TEST_F() 80 ASSERT_EQ(0xffU, byte); in TEST_F() 81 ASSERT_EQ(3U, dwarf_mem_->cur_offset()); in TEST_F() 91 ASSERT_EQ(static_cast<int8_t>(-10), static_cast<int8_t>(value)); in TEST_F() 93 ASSERT_EQ(static_cast<int8_t>(200), static_cast<int8_t>(value)); in TEST_F() 100 ASSERT_EQ(static_cast<int16_t>(-1000), static_cast<int16_t>(value)); in TEST_F() [all …]
|
/system/teeui/test/ |
D | teeui_locale_test.cpp | 40 ASSERT_EQ(error, 0); in TEST_F() 45 ASSERT_EQ(error, 0); in TEST_F() 50 ASSERT_EQ(error, 0); in TEST_F() 55 ASSERT_EQ(error, 0); in TEST_F() 60 ASSERT_EQ(error, 0); in TEST_F() 65 ASSERT_EQ(error, 0); in TEST_F() 70 ASSERT_EQ(error, 0); in TEST_F() 75 ASSERT_EQ(error, 0); in TEST_F() 80 ASSERT_EQ(error, 0); in TEST_F() 85 ASSERT_EQ(error, 0); in TEST_F() [all …]
|
/system/bt/bta/test/gatt/ |
D | database_builder_test.cc | 64 ASSERT_EQ(service->handle, 0x0001); in TEST() 65 ASSERT_EQ(service->end_handle, 0x0001); in TEST() 66 ASSERT_EQ(service->is_primary, true); in TEST() 67 ASSERT_EQ(service->uuid, SERVICE_1_UUID); in TEST() 85 ASSERT_EQ(service->handle, 0x0001); in TEST() 86 ASSERT_EQ(service->end_handle, 0x000f); in TEST() 87 ASSERT_EQ(service->is_primary, true); in TEST() 88 ASSERT_EQ(service->uuid, SERVICE_1_UUID); in TEST() 90 ASSERT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST() 91 ASSERT_EQ(service->characteristics[0].declaration_handle, 0x0002); in TEST() [all …]
|
/system/libbase/ |
D | endian_test.cpp | 26 ASSERT_EQ(__LITTLE_ENDIAN, __BYTE_ORDER); in TEST() 38 ASSERT_EQ(be16, htons(le16)); in TEST() 39 ASSERT_EQ(be32, htonl(le32)); in TEST() 40 ASSERT_EQ(be64, htonq(le64)); in TEST() 42 ASSERT_EQ(le16, ntohs(be16)); in TEST() 43 ASSERT_EQ(le32, ntohl(be32)); in TEST() 44 ASSERT_EQ(le64, ntohq(be64)); in TEST() 46 ASSERT_EQ(be16, htobe16(le16)); in TEST() 47 ASSERT_EQ(be32, htobe32(le32)); in TEST() 48 ASSERT_EQ(be64, htobe64(le64)); in TEST() [all …]
|
D | cmsg_test.cpp | 71 ASSERT_EQ(1, SendFileDescriptors(send.get(), "x", 1, fd1.get())); in TEST_P() 75 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 2, &received)); in TEST_P() 76 ASSERT_EQ('x', buf[0]); in TEST_P() 79 ASSERT_EQ(ino1, GetInode(received.get())); in TEST_P() 83 ASSERT_EQ(2, SendFileDescriptors(send.get(), "ab", 2, fd1.get(), fd2.get())); in TEST_P() 90 ASSERT_EQ(-1, rc); in TEST_P() 91 ASSERT_EQ(EMSGSIZE, errno); in TEST_P() 92 ASSERT_EQ(-1, received1.get()); in TEST_P() 93 ASSERT_EQ(-1, received2.get()); in TEST_P() 95 ASSERT_EQ(1, rc); in TEST_P() [all …]
|
D | parseint_test.cpp | 27 ASSERT_EQ(EINVAL, errno); in TEST() 30 ASSERT_EQ(EINVAL, errno); in TEST() 33 ASSERT_EQ(123, i); in TEST() 34 ASSERT_EQ(0, errno); in TEST() 39 ASSERT_EQ(-123, i); in TEST() 46 ASSERT_EQ(1234, s); in TEST() 49 ASSERT_EQ(12, i); in TEST() 52 ASSERT_EQ(ERANGE, errno); in TEST() 55 ASSERT_EQ(ERANGE, errno); in TEST() 59 ASSERT_EQ(EINVAL, errno); in TEST() [all …]
|
D | strings_test.cpp | 28 ASSERT_EQ(1U, parts.size()); in TEST() 29 ASSERT_EQ("", parts[0]); in TEST() 34 ASSERT_EQ(1U, parts.size()); in TEST() 35 ASSERT_EQ("foo", parts[0]); in TEST() 40 ASSERT_EQ(3U, parts.size()); in TEST() 41 ASSERT_EQ("foo", parts[0]); in TEST() 42 ASSERT_EQ("bar", parts[1]); in TEST() 43 ASSERT_EQ("baz", parts[2]); in TEST() 48 ASSERT_EQ(3U, parts.size()); in TEST() 49 ASSERT_EQ("foo", parts[0]); in TEST() [all …]
|
/system/extras/simpleperf/ |
D | report_utils_test.cpp | 118 ASSERT_EQ(entries.size(), 2); in TEST_F() 119 ASSERT_EQ(entries[0].ip, 0x2000); in TEST_F() 121 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F() 122 ASSERT_EQ(entries[0].vaddr_in_file, 0); in TEST_F() 123 ASSERT_EQ(entries[0].execution_type, CallChainExecutionType::INTERPRETED_JVM_METHOD); in TEST_F() 124 ASSERT_EQ(entries[1].ip, 0x3000); in TEST_F() 126 ASSERT_EQ(entries[1].dso->Path(), fake_dex_file_path); in TEST_F() 127 ASSERT_EQ(entries[1].vaddr_in_file, 0x100); in TEST_F() 128 ASSERT_EQ(entries[1].execution_type, CallChainExecutionType::JIT_JVM_METHOD); in TEST_F() 138 ASSERT_EQ(entries.size(), 2); in TEST_F() [all …]
|
D | ProbeEvents_test.cpp | 29 ASSERT_EQ(event.group_name, "kprobes"); in TEST() 30 ASSERT_EQ(event.event_name, "myprobe"); in TEST() 33 ASSERT_EQ(event.group_name, "mygroup"); in TEST() 34 ASSERT_EQ(event.event_name, "myprobe"); in TEST() 37 ASSERT_EQ(event.group_name, "kprobes"); in TEST() 38 ASSERT_EQ(event.event_name, "p_do_sys_open_0"); in TEST() 41 ASSERT_EQ(event.group_name, "kprobes"); in TEST() 42 ASSERT_EQ(event.event_name, "r_do_sys_open_138"); in TEST() 45 ASSERT_EQ(event.group_name, "kprobes"); in TEST() 46 ASSERT_EQ(event.event_name, "r_module_do_sys_open_138"); in TEST() [all …]
|
D | CallChainJoiner_test.cpp | 38 ASSERT_EQ(cache.Stat().max_node_count, 2u); in TEST() 44 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST() 45 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST() 52 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST() 53 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST() 54 ASSERT_EQ(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST() 61 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST() 62 ASSERT_EQ(cache.Stat().recycled_node_count, 2u); in TEST() 63 ASSERT_EQ(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST() 75 ASSERT_EQ(cache1.Stat().used_node_count, 3u); in TEST() [all …]
|
/system/libziparchive/ |
D | zip_writer_test.cc | 53 ASSERT_EQ(0, writer.StartEntry("file.txt", 0)); in TEST_F() 54 ASSERT_EQ(0, writer.WriteBytes("he", 2)); in TEST_F() 55 ASSERT_EQ(0, writer.WriteBytes("llo", 3)); in TEST_F() 56 ASSERT_EQ(0, writer.FinishEntry()); in TEST_F() 57 ASSERT_EQ(0, writer.Finish()); in TEST_F() 62 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); in TEST_F() 65 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F() 69 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F() 78 ASSERT_EQ(0, writer.StartEntry("file.txt", 0)); in TEST_F() 79 ASSERT_EQ(0, writer.WriteBytes("he", 2)); in TEST_F() [all …]
|
/system/media/audio_utils/tests/ |
D | metadata_tests.cpp | 79 ASSERT_EQ("abc", std::any_cast<std::string>(d)); in TEST() 84 ASSERT_EQ(10, std::any_cast<int32_t>(d)); in TEST() 107 ASSERT_EQ(0, value); // never invoked. in TEST() 117 ASSERT_EQ(1, value); // invoked once. in TEST() 132 ASSERT_EQ(1, value); // invoked once. in TEST() 133 ASSERT_EQ(2, std::any_cast<int32_t>(result)); // 2 returned in TEST() 145 ASSERT_EQ(0, std::any_cast<MoveCount>(&mc)->mCopyCount); // no copies in TEST() 146 ASSERT_EQ(1, std::any_cast<MoveCount>(mc).mCopyCount); // Note: any_cast on value copies. in TEST() 158 ASSERT_EQ(bs.size(), idx); // no data left over. in TEST() 163 ASSERT_EQ(0, std::any_cast<MoveCount>(&parceled)->mCopyCount); in TEST() [all …]
|
D | balance_tests.cpp | 24 ASSERT_EQ(false, balance.getRamp()); in TEST() 30 ASSERT_EQ(0.f, balance.getBalance()); in TEST() 32 ASSERT_EQ((std::vector<float>{1.f, -1.f}), buffer); in TEST() 36 ASSERT_EQ(1.f, balance.getBalance()); in TEST() 38 ASSERT_EQ((std::vector<float>{0.f, -1.f}), buffer); in TEST() 43 ASSERT_EQ(-1.f, balance.getBalance()); in TEST() 45 ASSERT_EQ((std::vector<float>{1.f, 0.f}), buffer); in TEST() 51 ASSERT_EQ(false, balance.getRamp()); 58 ASSERT_EQ(0.f, balance.getBalance()); 60 ASSERT_EQ((std::vector<float>{1.f, -1.f, 0.5f, 0.25f, 0.75f, 0.75f, 0.125f, 0.125f}), buffer); [all …]
|
/system/server_configurable_flags/libflags/ |
D | server_configurable_flags_test.cc | 40 ASSERT_EQ("default", result); in TEST() 47 ASSERT_EQ("hello", result); in TEST() 56 ASSERT_EQ("default", result); in TEST() 59 ASSERT_EQ("default", result); in TEST() 62 ASSERT_EQ("default", result); in TEST() 76 ASSERT_EQ("2", android::base::GetProperty("persist.device_config.attempted_boot_count", "")); in TEST() 77 ASSERT_EQ("val1", android::base::GetProperty("persist.device_config.category1.prop1", "")); in TEST() 78 ASSERT_EQ("val2", android::base::GetProperty("persist.device_config.category1.prop2", "")); in TEST() 79 ASSERT_EQ("val3", android::base::GetProperty("persist.device_config.category2.prop3", "")); in TEST() 80 ASSERT_EQ("val4", android::base::GetProperty("sys.category3.test", "")); in TEST() [all …]
|
/system/core/trusty/storage/tests/ |
D | main.cpp | 86 ASSERT_EQ(0, rc); in SetUp() 138 ASSERT_EQ((int)chunk_len, rc); in WriteZeroChunk() 154 ASSERT_EQ((int)chunk_len, rc); in WritePatternChunk() 184 ASSERT_EQ(head_len + pattern_len + tail_len, chunk_len); in ReadChunk() 187 ASSERT_EQ((int)chunk_len, rc); in ReadChunk() 219 ASSERT_EQ((int)chunk_len, rc); in ReadPattern() 246 ASSERT_EQ(bytes_read, exp_len); in ReadPatternEOF() 257 ASSERT_EQ(0, rc); in TEST_P() 261 ASSERT_EQ(-ENOENT, rc); in TEST_P() 267 ASSERT_EQ(0, rc); in TEST_P() [all …]
|
/system/netd/tests/ |
D | bpf_base_test.cpp | 60 ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)); in TEST_F() 61 ASSERT_EQ(0, access(cg2_path.c_str(), R_OK)); in TEST_F() 62 ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK)); in TEST_F() 66 ASSERT_EQ(0, access(BPF_EGRESS_PROG_PATH, R_OK)); in TEST_F() 67 ASSERT_EQ(0, access(BPF_INGRESS_PROG_PATH, R_OK)); in TEST_F() 68 ASSERT_EQ(0, access(XT_BPF_INGRESS_PROG_PATH, R_OK)); in TEST_F() 69 ASSERT_EQ(0, access(XT_BPF_EGRESS_PROG_PATH, R_OK)); in TEST_F() 70 ASSERT_EQ(0, access(COOKIE_TAG_MAP_PATH, R_OK)); in TEST_F() 71 ASSERT_EQ(0, access(UID_COUNTERSET_MAP_PATH, R_OK)); in TEST_F() 72 ASSERT_EQ(0, access(STATS_MAP_A_PATH, R_OK)); in TEST_F() [all …]
|
/system/bt/gd/hci/ |
D | hci_packets_test.cc | 77 ASSERT_EQ(gap_data[0].data_type_, GapDataType::COMPLETE_LOCAL_NAME); in TEST() 78 ASSERT_EQ(gap_data[0].data_.size(), 10); in TEST() 79 ASSERT_EQ(gap_data[1].data_type_, GapDataType::COMPLETE_LIST_16_BIT_UUIDS); in TEST() 80 ASSERT_EQ(gap_data[1].data_.size(), 24); in TEST() 81 ASSERT_EQ(gap_data[2].data_type_, GapDataType::COMPLETE_LIST_32_BIT_UUIDS); in TEST() 82 ASSERT_EQ(gap_data[2].data_.size(), 0); in TEST() 83 ASSERT_EQ(gap_data[3].data_type_, GapDataType::COMPLETE_LIST_128_BIT_UUIDS); in TEST() 84 ASSERT_EQ(gap_data[3].data_.size(), 128); in TEST() 95 ASSERT_EQ(packet_bytes->at(i), view_bytes->at(i)); in TEST() 111 ASSERT_EQ(LeScanType::ACTIVE, view.GetLeScanType()); in TEST() [all …]
|
/system/bt/bta/test/ |
D | bta_dm_test.cc | 57 ASSERT_EQ(true, status); in TEST_F() 66 ASSERT_EQ(0, mock_function_count_map["btm_remove_acl"]); in TEST_F() 67 ASSERT_EQ(1, mock_function_count_map["alarm_set_on_mloop"]); in TEST_F() 71 ASSERT_EQ(1, mock_function_count_map["alarm_set_on_mloop"]); in TEST_F() 72 ASSERT_EQ(0, mock_function_count_map["BTIF_dm_disable"]); in TEST_F() 73 ASSERT_EQ(1, mock_function_count_map["future_ready"]); in TEST_F() 85 ASSERT_EQ(1, mock_function_count_map["alarm_set_on_mloop"]); in TEST_F() 86 ASSERT_EQ(0, mock_function_count_map["BTIF_dm_disable"]); in TEST_F() 90 ASSERT_EQ(1, mock_function_count_map["alarm_set_on_mloop"]); in TEST_F() 91 ASSERT_EQ(1, mock_function_count_map["BTIF_dm_disable"]); in TEST_F() [all …]
|
/system/gatekeeper/tests/ |
D | gatekeeper_messages_test.cpp | 55 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST() 58 ASSERT_EQ(gatekeeper::gatekeeper_error_t::ERROR_NONE, in TEST() 61 ASSERT_EQ(gatekeeper::gatekeeper_error_t::ERROR_NONE, in TEST() 65 ASSERT_EQ(USER_ID, deserialized_msg.user_id); in TEST() 66 ASSERT_EQ((uint32_t) password_size, deserialized_password->size()); in TEST() 67 …ASSERT_EQ(0, memcmp(msg.provided_password.Data<uint8_t>(), deserialized_password->Data<uint8_t>(),… in TEST() 78 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST() 81 ASSERT_EQ(gatekeeper::gatekeeper_error_t::ERROR_NONE, in TEST() 84 ASSERT_EQ(gatekeeper::gatekeeper_error_t::ERROR_NONE, in TEST() 88 ASSERT_EQ(USER_ID, deserialized_msg.user_id); in TEST() [all …]
|
/system/bt/common/ |
D | state_machine_unittest.cc | 159 ASSERT_EQ(sm_.kStateZero, sm_.StateId()); in TEST_F() 160 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F() 165 ASSERT_EQ(sm_.kStateInvalid, sm_.StateId()); in TEST_F() 166 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F() 168 ASSERT_EQ(sm_.kStateZero, sm_.StateId()); in TEST_F() 169 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F() 174 ASSERT_EQ(sm_.kStateZero, sm_.StateId()); in TEST_F() 175 ASSERT_EQ(sm_.kStateInvalid, sm_.PreviousStateId()); in TEST_F() 183 ASSERT_EQ(sm_.kStateOne, sm_.StateId()); in TEST_F() 184 ASSERT_EQ(sm_.kStateZero, sm_.PreviousStateId()); in TEST_F() [all …]
|