Home
last modified time | relevance | path

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

12345678910>>...17

/system/core/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/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/libziparchive/
Dzip_writer_test.cc53 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/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/core/adb/
Dtypes_test.cpp51 ASSERT_EQ(100ULL, bc.size()); in TEST()
53 ASSERT_EQ(block, coalesced); in TEST()
61 ASSERT_EQ(3ULL, foo.size()); in TEST()
62 ASSERT_EQ(3ULL, bc.size()); in TEST()
63 ASSERT_EQ(create_block("foo"), foo.coalesce()); in TEST()
64 ASSERT_EQ(create_block("bar"), bc.coalesce()); in TEST()
72 ASSERT_EQ(9ULL, bc.size()); in TEST()
75 ASSERT_EQ(3ULL, foo.size()); in TEST()
76 ASSERT_EQ(create_block("foo"), foo.coalesce()); in TEST()
79 ASSERT_EQ(3ULL, bar.size()); in TEST()
[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/netd/tests/
Dbpf_base_test.cpp65 ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)); in TEST_F()
67 ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, nullptr)); in TEST_F()
71 ASSERT_EQ(0, access(cg2_path.c_str(), R_OK)); in TEST_F()
72 ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK)); in TEST_F()
78 ASSERT_EQ(0, access(BPF_EGRESS_PROG_PATH, R_OK)); in TEST_F()
79 ASSERT_EQ(0, access(BPF_INGRESS_PROG_PATH, R_OK)); in TEST_F()
80 ASSERT_EQ(0, access(XT_BPF_INGRESS_PROG_PATH, R_OK)); in TEST_F()
81 ASSERT_EQ(0, access(XT_BPF_EGRESS_PROG_PATH, R_OK)); in TEST_F()
82 ASSERT_EQ(0, access(COOKIE_TAG_MAP_PATH, R_OK)); in TEST_F()
83 ASSERT_EQ(0, access(UID_COUNTERSET_MAP_PATH, R_OK)); in TEST_F()
[all …]
Dnetd_test.cpp47 ASSERT_EQ(NULL, cap_get_file("/system/bin/netutils-wrapper-1.0")); in TEST()
48 ASSERT_EQ(ENODATA, errno); in TEST()
55 ASSERT_EQ(W_EXITCODE(1, 0), system("ls -Z /sys/class/net/*/mtu | egrep -q -v " in TEST()
75 ASSERT_EQ(errno, 0); in nsTest()
78 ASSERT_EQ(errno, EINVAL); in nsTest()
79 ASSERT_EQ(tid, -1); in nsTest()
120 ASSERT_EQ(errno, 0); in TEST()
125 ASSERT_EQ(errno, 0); in TEST()
130 ASSERT_EQ(errno, 0); in TEST()
145 ASSERT_EQ(errno, 0); in TEST()
[all …]
/system/extras/simpleperf/
DCallChainJoiner_test.cpp39 ASSERT_EQ(cache.Stat().max_node_count, 2u); in TEST()
45 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
46 ASSERT_EQ(cache.Stat().recycled_node_count, 0u); in TEST()
53 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
54 ASSERT_EQ(cache.Stat().recycled_node_count, 1u); in TEST()
55 ASSERT_EQ(cache.FindNode(0, ip[0], sp[0]), nullptr); in TEST()
62 ASSERT_EQ(cache.Stat().used_node_count, 2u); in TEST()
63 ASSERT_EQ(cache.Stat().recycled_node_count, 2u); in TEST()
64 ASSERT_EQ(cache.FindNode(1, ip[0], sp[0]), nullptr); in TEST()
76 ASSERT_EQ(cache1.Stat().used_node_count, 3u); 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/bt/common/
Dstate_machine_unittest.cc159 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 …]
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp128 ASSERT_EQ(enabled, true) << "failed to start autosuspend"; in SetUpTestSuite()
179 ASSERT_EQ(readFd(wakeupCountFd), wakeupCount) in checkLoop()
181 ASSERT_EQ(readFd(stateFd), "mem") in checkLoop()
203 ASSERT_EQ(enabled, false); in TEST_F()
296 ASSERT_EQ(getActiveWakeLockCount(), 0); in TEST_F()
604 ASSERT_EQ(wlStats.size(), 1); in TEST_F()
608 ASSERT_EQ(nwlInfo.name, fakeWlName); in TEST_F()
609 ASSERT_EQ(nwlInfo.activeCount, 1); in TEST_F()
610 ASSERT_EQ(nwlInfo.isActive, true); in TEST_F()
613 ASSERT_EQ(nwlInfo.pid, getpid()); in TEST_F()
[all …]
/system/core/adb/sysdeps/
Dstat_test.cpp30 ASSERT_EQ(0, stat(td.path, &st)); in TEST()
34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST()
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST()
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST()
44 ASSERT_EQ(ENOENT, errno); in TEST()
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST()
47 ASSERT_EQ(ENOENT, errno); in TEST()
50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); in TEST()
51 ASSERT_EQ(ENOENT, errno); in TEST()
54 ASSERT_EQ(0, stat(tf.path, &st)); in TEST()
[all …]
/system/core/libprocinfo/
Dprocess_test.cpp45 ASSERT_EQ(gettid(), self.tid); in TEST()
46 ASSERT_EQ(getpid(), self.pid); in TEST()
47 ASSERT_EQ(getppid(), self.ppid); in TEST()
48 ASSERT_EQ(getuid(), self.uid); in TEST()
49 ASSERT_EQ(getgid(), self.gid); in TEST()
59 ASSERT_EQ("libprocinfo_tes", self.name); in TEST()
60 ASSERT_EQ(gettid(), self.tid); in TEST()
61 ASSERT_EQ(getpid(), self.pid); in TEST()
62 ASSERT_EQ(getppid(), self.ppid); in TEST()
63 ASSERT_EQ(getuid(), self.uid); in TEST()
[all …]
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_test.cpp47 ASSERT_EQ(close(fd), 0); // free the buffer in TEST_F()
59 ASSERT_EQ(close(fd), 0); // free the buffer in TEST_F()
71 ASSERT_EQ(close(fd), 0); // free the buffer in TEST_F()
84 ASSERT_EQ(close(fd), 0); // free the buffer in TEST_F()
109 ASSERT_EQ(0, ret); in TEST_F()
114 ASSERT_EQ(0, ret); in TEST_F()
116 ASSERT_EQ(0, munmap(ptr, kAllocSizeInBytes)); in TEST_F()
121 ASSERT_EQ(0, close(fds[i])); in TEST_F()
132 ASSERT_EQ(0, ret); in TEST_F()
134 ASSERT_EQ(0, memcmp(ptr, zeroes_ptr.get(), kAllocSizeInBytes)); in TEST_F()
[all …]

12345678910>>...17