/system/update_engine/payload_generator/ |
D | extent_ranges_unittest.cc | 35 const uint64_t* expected, in ExpectRangeEq() argument 40 blocks += expected[i]; in ExpectRangeEq() 48 EXPECT_EQ(expected[i], it->start_block()) << "line: " << line; in ExpectRangeEq() 49 EXPECT_EQ(expected[i + 1], it->num_blocks()) << "line: " << line; in ExpectRangeEq() 143 static const uint64_t expected[] = {}; in TEST() local 145 ExpectRangeEq(ranges, expected, 0, __LINE__); in TEST() 149 static const uint64_t expected[] = {}; in TEST() local 151 ExpectRangeEq(ranges, expected, 0, __LINE__); in TEST() 160 static const uint64_t expected[] = {0, 2, 3, 1}; in TEST() local 161 EXPECT_RANGE_EQ(ranges, expected); in TEST() [all …]
|
/system/core/libcutils/tests/ |
D | trace-dev_test.cpp | 59 std::string expected = android::base::StringPrintf("B|%d|fake_name", getpid()); in TEST_F() local 60 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 64 std::string expected = android::base::StringPrintf("B|%d|", getpid()); in TEST_F() local 65 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 1); in TEST_F() 73 expected += name; in TEST_F() 74 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 83 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 87 std::string expected = android::base::StringPrintf("B|%d|", getpid()); in TEST_F() local 96 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 1; in TEST_F() 97 expected += android::base::StringPrintf("%.*s", expected_len, name.c_str()); in TEST_F() [all …]
|
D | test_str_parms.cpp | 20 static void test_str_parms_str(const char* str, const char* expected) { in test_str_parms_str() argument 28 ASSERT_STREQ(expected, out_str) << str; in test_str_parms_str()
|
/system/connectivity/shill/wifi/ |
D | scan_session_unittest.cc | 144 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600, in TEST_F() local 147 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F() 153 vector<uint16_t> expected{kExpectedFreq5560, kExpectedFreq5620, in TEST_F() local 156 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F() 162 vector<uint16_t> expected{kExpectedFreq2422, kExpectedFreq2427, in TEST_F() local 166 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F() 178 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600}; in TEST_F() local 180 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F() 186 vector<uint16_t> expected{kExpectedFreq5580, kExpectedFreq5560}; in TEST_F() local 188 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F() [all …]
|
/system/core/adb/ |
D | adb_io_test.cpp | 41 const char expected[] = "Foobar"; in TEST() local 45 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in TEST() 49 char buf[sizeof(expected)] = {}; in TEST() 51 EXPECT_STREQ(expected, buf); in TEST() 55 const char expected[] = "Foobar"; in TEST() local 59 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in TEST() 63 char buf[sizeof(expected) + 1] = {}; in TEST() 80 std::string expected(input); in TEST() local 81 expected.pop_back(); in TEST() 82 EXPECT_STREQ(expected.c_str(), buf); in TEST() [all …]
|
/system/netd/server/ |
D | BandwidthControllerTest.cpp | 45 std::vector<std::string> expected = { in TEST_F() local 62 expectIptablesRestoreCommands(expected); in TEST_F() 105 const std::string expected = in TEST_F() local 121 expectIptablesRestoreCommands({ expected }); in TEST_F() 126 std::vector<std::string> expected = { in TEST_F() local 129 expectIptablesCommands(expected); in TEST_F() 132 expected = { in TEST_F() 135 expectIptablesCommands(expected); in TEST_F()
|
D | FirewallControllerTest.cpp | 110 ExpectedIptablesCommands expected = { in TEST_F() local 114 expectIptablesCommands(expected); in TEST_F() 116 expected = { in TEST_F() 120 expectIptablesCommands(expected); in TEST_F() 124 ExpectedIptablesCommands expected = { in TEST_F() local 128 expectIptablesCommands(expected); in TEST_F() 130 expected = { in TEST_F() 134 expectIptablesCommands(expected); in TEST_F() 138 std::string expected = in TEST_F() local 160 EXPECT_EQ(expected, makeUidRules(V6, "FW_whitechain", true, uids)); in TEST_F() [all …]
|
D | StrictControllerTest.cpp | 104 std::vector<std::pair<IptablesTarget, std::string>> expected = { in TEST_F() local 109 expectIptablesRestoreCommands(expected); in TEST_F() 115 const std::string expected = in TEST_F() local 123 expectIptablesRestoreCommands({ expected }); in TEST_F()
|
D | IptablesBaseTest.cpp | 91 ExpectedIptablesCommands expected; in expectIptablesCommands() local 93 expected.push_back({ V4V6, cmd }); in expectIptablesCommands() 95 expectIptablesCommands(expected); in expectIptablesCommands() 116 ExpectedIptablesCommands expected; in expectIptablesRestoreCommands() local 118 expected.push_back({ V4V6, cmd }); in expectIptablesRestoreCommands() 120 expectIptablesRestoreCommands(expected); in expectIptablesRestoreCommands()
|
/system/core/libpixelflinger/tests/gglmul/ |
D | gglmul_test.cpp | 123 GGLfixed actual, expected; in gglMulx_test() local 132 expected = in gglMulx_test() 134 if(actual == expected) in gglMulx_test() 138 actual, expected); in gglMulx_test() 166 GGLfixed actual, expected; in gglMulAddx_test() local 175 expected = (((int64_t)test->x * test->y) >> test->shift) + test->a; in gglMulAddx_test() 177 if(actual == expected) in gglMulAddx_test() 181 actual, expected); in gglMulAddx_test() 209 GGLfixed actual, expected; in gglMulSubx_test() local 218 expected = (((int64_t)test->x * test->y) >> test->shift) - test->a; in gglMulSubx_test() [all …]
|
/system/core/metricsd/uploader/ |
D | metrics_log_base_unittest.cc | 68 metrics::ChromeUserMetricsExtension expected; in TEST() local 69 expected.set_client_id(5217101509553811875); // Hashed bogus client ID in TEST() 70 expected.set_session_id(137); in TEST() 71 expected.mutable_system_profile()->set_build_timestamp( in TEST() 73 expected.mutable_system_profile()->set_app_version("bogus version"); in TEST() 74 expected.mutable_system_profile()->mutable_hardware()->set_hardware_class( in TEST() 77 EXPECT_EQ(expected.SerializeAsString(), encoded); in TEST()
|
/system/update_engine/update_manager/ |
D | real_time_provider_unittest.cc | 69 const Time expected = Time::FromLocalExploded(exploded); in TEST_F() local 72 UmTestUtils::ExpectVariableHasValue(expected, provider_->var_curr_date()); in TEST_F() 77 Time::Exploded expected; in TEST_F() local 78 now.LocalExplode(&expected); in TEST_F() 80 UmTestUtils::ExpectVariableHasValue(expected.hour, in TEST_F()
|
D | umtest_utils.h | 41 static void ExpectVariableHasValue(const T& expected, Variable<T>* variable) { in ExpectVariableHasValue() argument 46 EXPECT_EQ(expected, *value) << "Variable: " << variable->GetName(); in ExpectVariableHasValue()
|
/system/core/base/ |
D | utf8_test.cpp | 177 std::wstring expected(convert_cases[i].wide); in TEST() local 178 EXPECT_EQ(expected, converted); in TEST() 246 std::string expected(convert_cases[i].utf8); in TEST() local 247 EXPECT_EQ(expected, converted); in TEST() 282 std::string expected(convert_cases[i].utf8); in TEST() local 283 EXPECT_EQ(expected, converted); in TEST() 325 std::string expected; in TEST() local 326 memcpy(WriteInto(&expected, arraysize(multi)), multi, sizeof(multi)); in TEST() 327 EXPECT_EQ(arraysize(multi) - 1, expected.length()); in TEST() 330 EXPECT_EQ(expected, converted); in TEST()
|
/system/core/libcutils/ |
D | strdup8to16.c | 72 int expected = 0; in strlen8to16() local 83 expected--; in strlen8to16() 84 if (expected < 0) { in strlen8to16() 89 expected = UTF8_SEQ_LENGTH(ic) - 1; in strlen8to16() 92 if (expected == 3) { in strlen8to16()
|
/system/extras/simpleperf/ |
D | sample_tree_test.cpp | 30 static void SampleMatchExpectation(const SampleEntry& sample, const ExpectedSampleInMap& expected, in SampleMatchExpectation() argument 34 ASSERT_EQ(expected.pid, sample.thread->pid); in SampleMatchExpectation() 35 ASSERT_EQ(expected.tid, sample.thread->tid); in SampleMatchExpectation() 36 ASSERT_STREQ(expected.comm, sample.thread_comm); in SampleMatchExpectation() 38 ASSERT_EQ(expected.dso_name, sample.map->dso->Path()); in SampleMatchExpectation() 39 ASSERT_EQ(expected.map_start_addr, sample.map->start_addr); in SampleMatchExpectation() 40 ASSERT_EQ(expected.sample_count, sample.sample_count); in SampleMatchExpectation()
|
/system/connectivity/shill/bin/ |
D | test_set_wifi_regulatory | 25 local expected="$2" 27 if [ "${actual}" != "${expected}" ]; then 28 echo "FAIL: expected |${expected}|, got |${actual}|"
|
/system/keymaster/ |
D | hkdf_test.cpp | 65 const string expected = hex2str(test.output_hex); in TEST() local 66 size_t output_len = expected.size(); in TEST() 73 EXPECT_EQ(0, memcmp(output, expected.data(), output_len)); in TEST()
|
/system/extras/verity/ |
D | verify_boot_signature.c | 166 BIGNUM expected; in validate_signature_block() local 174 BN_init(&expected); in validate_signature_block() 178 if (!BN_set_word(&expected, FORMAT_VERSION)) { in validate_signature_block() 185 if (BN_cmp(&expected, &value) != 0) { in validate_signature_block() 190 BN_clear(&expected); in validate_signature_block() 196 BN_bin2bn((const unsigned char *) &length, sizeof(length), &expected); in validate_signature_block() 200 if (BN_cmp(&expected, &value) != 0) { in validate_signature_block() 208 BN_free(&expected); in validate_signature_block()
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 276 const std::string &expected, in compareLogMessages() argument 280 std::string sqexp = squeezeWhite(expected, "expected"); in compareLogMessages() 321 const std::string expected = RAW_RESULT( in TEST_F() local 329 expected, "MissingGMS"); in TEST_F() 361 const std::string expected = RAW_RESULT( in TEST_F() local 366 expected, "MissingOptInSemaphoreFile"); in TEST_F() 399 const std::string expected = RAW_RESULT( in TEST_F() local 404 expected, "MissingPerfExecutable"); in TEST_F() 436 const std::string expected = RAW_RESULT( in TEST_F() local 442 expected, "BadPerfRun"); in TEST_F() [all …]
|
/system/update_engine/ |
D | chrome_browser_proxy_resolver_unittest.cc | 189 deque<string>& expected = outputs[i]; in TEST_F() local 190 EXPECT_EQ(results.size(), expected.size()) << "i = " << i; in TEST_F() 191 if (expected.size() != results.size()) in TEST_F() 193 for (size_t j = 0; j < expected.size(); j++) { in TEST_F() 194 EXPECT_EQ(expected[j], results[j]) << "i = " << i; in TEST_F()
|
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 69 bool DoRead(string name, const ScopedFd& fd, const string& expected) { in DoRead() argument 70 size_t length = expected.size(); in DoRead() 82 if (buf != expected) { in DoRead() 83 cerr << "Expected '" << expected << "' got '" << buf << "'" << endl; in DoRead()
|
/system/tools/aidl/ |
D | aidl.cpp | 77 string expected; in check_filename() local 87 expected = package; in check_filename() 88 expected += '.'; in check_filename() 91 len = expected.length(); in check_filename() 93 if (expected[i] == '.') { in check_filename() 94 expected[i] = OS_PATH_SEPARATOR; in check_filename() 98 expected.append(name, 0, name.find('.')); in check_filename() 100 expected += ".aidl"; in check_filename() 103 valid = (len >= expected.length()); in check_filename() 106 p = fn.c_str() + (len - expected.length()); in check_filename() [all …]
|
/system/extras/tests/net_test/ |
D | multinetwork_base.py | 504 def assertPacketMatches(self, expected, actual): argument 517 expectedip = expected.getlayer("IP") 525 expectedipv6 = expected.getlayer("IPv6") 532 expectedudp = expected.getlayer("UDP") 546 expectedtcp = expected.getlayer("TCP") 561 expected_real = expected.__class__(str(expected)) 568 def PacketMatches(self, expected, actual): argument 570 self.assertPacketMatches(expected, actual) 583 def ExpectPacketOn(self, netid, msg, expected): argument 587 ipv6 = expected.getlayer("IPv6") [all …]
|
D | multinetwork_test.py | 102 desc, expected = packets.ICMPEcho(version, myaddr, dstaddr) 108 self.ExpectPacketOn(netid, msg, expected) 116 desc, expected = packets.SYN(53, version, myaddr, dstaddr, 123 self.ExpectPacketOn(netid, msg, expected) 132 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None) 137 self.ExpectPacketOn(netid, msg % "sendto", expected) 143 self.ExpectPacketOn(netid, msg % "connect/send", expected) 160 desc, expected = packets.GRE(version, myaddr, dstaddr, ethertype, inner) 163 self.ExpectPacketOn(netid, msg, expected) 230 desc, expected = packets.UDP(version, unspec, dstaddr, sport) [all …]
|