Home
last modified time | relevance | path

Searched refs:ASSERT_EQ (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/system/unwinding/libunwindstack/tests/
DArmExidxDecodeTest.cpp92 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 …]
DDwarfOpTest.cpp56 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 …]
DDwarfCfaTest.cpp83 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 …]
DArmExidxExtractTest.cpp54 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 …]
DDwarfCfaLogTest.cpp86 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 …]
DDwarfMemoryTest.cpp69 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/
Dteeui_locale_test.cpp40 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 …]
Dteeui_test.cpp37 ASSERT_EQ(PxPoint(0.0, 0.0), *result); in TEST()
92 ASSERT_EQ(PxPoint(0.5, 0.0), *result); in TEST()
95 ASSERT_EQ(PxPoint(0.5, 0.0), *result); in TEST()
103 ASSERT_EQ(PxPoint(0.5, 0.0), *result); in TEST()
106 ASSERT_EQ(PxPoint(0.5, 0.0), *result); in TEST()
114 ASSERT_EQ(PxPoint(0.5, 0.5), *result); in TEST()
117 ASSERT_EQ(PxPoint(0.5, 0.5), *result); in TEST()
122 ASSERT_EQ(size_t(4), o.size()); in TEST()
127 ASSERT_EQ(size_t(4), o.size()); in TEST()
132 ASSERT_EQ(size_t(3), o2->size()); in TEST()
[all …]
/system/extras/simpleperf/
Dreport_utils_test.cpp52 ASSERT_EQ(original_name, "original.class.A.method_a"); in TEST()
55 ASSERT_EQ(original_name, "original.class.A.method_b"); in TEST()
58 ASSERT_EQ(original_name, "original.class.M.method_c"); in TEST()
61 ASSERT_EQ(original_name, "original.class.A.method_d"); in TEST()
64 ASSERT_EQ(original_name, "original.class.B.b"); in TEST()
67 ASSERT_EQ(original_name, "original.class.C.c"); in TEST()
160 ASSERT_EQ(entries.size(), 2); in TEST_F()
161 ASSERT_EQ(entries[0].ip, 0x2000); in TEST_F()
163 ASSERT_EQ(entries[0].dso->Path(), fake_dex_file_path); in TEST_F()
164 ASSERT_EQ(entries[0].vaddr_in_file, 0); in TEST_F()
[all …]
DCallChainJoiner_test.cpp38 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 …]
DProbeEvents_test.cpp29 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 …]
Dutils_test.cpp33 ASSERT_EQ(0x1ULL, ConvertBytesToValue(buf + 1, 1)); in TEST()
34 ASSERT_EQ(0x201ULL, ConvertBytesToValue(buf + 1, 2)); in TEST()
35 ASSERT_EQ(0x05040302ULL, ConvertBytesToValue(buf + 2, 4)); in TEST()
36 ASSERT_EQ(0x0706050403020100ULL, ConvertBytesToValue(buf, 8)); in TEST()
55 ASSERT_EQ(entry.offset, lib_entry.offset); in TEST()
65 ASSERT_EQ(GetCpusFromString("0-2"), std::make_optional<std::set<int>>({0, 1, 2})); in TEST()
66 ASSERT_EQ(GetCpusFromString("0,2-3"), std::make_optional<std::set<int>>({0, 2, 3})); in TEST()
67 ASSERT_EQ(GetCpusFromString("1,0-3,3,4"), std::make_optional<std::set<int>>({0, 1, 2, 3, 4})); in TEST()
68 ASSERT_EQ(GetCpusFromString("0,1-3, 5, 7-8"), in TEST()
70 ASSERT_EQ(GetCpusFromString(""), std::nullopt); in TEST()
[all …]
/system/libziparchive/
Dzip_writer_test.cc53 ASSERT_EQ(0, writer.StartEntry("file.txt", 0)); in TEST_F()
54 ASSERT_EQ(0, writer.FinishEntry()); in TEST_F()
55 ASSERT_EQ(0, writer.Finish()); in TEST_F()
60 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); in TEST_F()
63 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F()
67 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
78 ASSERT_EQ(0, writer.StartEntry("file.txt", ZipWriter::kCompress)); in TEST_F()
79 ASSERT_EQ(0, writer.FinishEntry()); in TEST_F()
80 ASSERT_EQ(0, writer.Finish()); in TEST_F()
85 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); in TEST_F()
[all …]
Dzip_archive_test.cc83 ASSERT_EQ(0, status); in SetUp()
112 ASSERT_EQ(status, kSuccess); in TEST_F()
113 ASSERT_EQ(offset, expected_offset); in TEST_F()
130 ASSERT_EQ(expected, entry_set); in TEST_F()
136 ASSERT_EQ(0, OpenArchiveWrapper(kValidZip, &handle)); in TEST()
141 ASSERT_EQ(nullptr, mappedFile.GetBasePtr()); in TEST()
147 ASSERT_EQ(kInvalidEntryName, OpenArchiveWrapper("bad_filename.zip", &handle)); in TEST()
153 ASSERT_EQ(kInvalidOffset, OpenArchiveWrapper("crash.apk", &handle)); in TEST()
159 ASSERT_EQ(kEmptyArchive, OpenArchiveWrapper("empty.zip", &handle)); in TEST()
165 ASSERT_EQ(kInvalidFile, OpenArchiveWrapper("zero-size-cd.zip", &handle)); in TEST()
[all …]
/system/libbase/
Dendian_test.cpp26 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 …]
Dcmsg_test.cpp71 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 …]
Dstrings_test.cpp28 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 …]
Dparseint_test.cpp27 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 …]
/system/update_engine/payload_consumer/
Dextent_map_unittest.cc36 ASSERT_EQ(*ret, 7); in TEST_F()
43 ASSERT_EQ(ret, 7); in TEST_F()
50 ASSERT_EQ(ret, 7); in TEST_F()
52 ASSERT_EQ(ret, std::nullopt); in TEST_F()
54 ASSERT_EQ(ret, std::nullopt); in TEST_F()
61 ASSERT_EQ(ret, 7); in TEST_F()
63 ASSERT_EQ(ret, 7); in TEST_F()
65 ASSERT_EQ(ret, std::nullopt); in TEST_F()
67 ASSERT_EQ(ret, std::nullopt); in TEST_F()
75 ASSERT_EQ(ret.size(), 2U); in TEST_F()
[all …]
/system/media/audio_utils/tests/
Dmetadata_tests.cpp79 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 …]
Dbalance_tests.cpp24 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/core/trusty/storage/tests/
Dmain.cpp86 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/server_configurable_flags/libflags/
Dserver_configurable_flags_test.cc40 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/gatekeeper/tests/
Dgatekeeper_messages_test.cpp55ASSERT_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()
67ASSERT_EQ(0, memcmp(msg.provided_password.Data<uint8_t>(), deserialized_password->Data<uint8_t>(),… in TEST()
78ASSERT_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/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_api_test.cpp74 ASSERT_EQ(lseek(cow_->fd, 0, SEEK_SET), 0); in TEST_F()
82 ASSERT_EQ(header.magic, kCowMagicNumber); in TEST_F()
83 ASSERT_EQ(header.major_version, kCowVersionMajor); in TEST_F()
84 ASSERT_EQ(header.minor_version, kCowVersionMinor); in TEST_F()
85 ASSERT_EQ(header.block_size, options.block_size); in TEST_F()
86 ASSERT_EQ(footer.op.num_ops, 100); in TEST_F()
95 ASSERT_EQ(op->type, kCowCopyOp); in TEST_F()
96 ASSERT_EQ(op->compression, kCowCompressNone); in TEST_F()
97 ASSERT_EQ(op->data_length, 0); in TEST_F()
98 ASSERT_EQ(op->new_block, 10 + i); in TEST_F()
[all …]

12345678910>>...16