/system/netd/server/ |
H A D | BandwidthControllerTest.cpp | 45 std::vector<std::string> expected = { local 62 expectIptablesRestoreCommands(expected); 105 const std::string expected = local 121 expectIptablesRestoreCommands({ expected }); 126 std::vector<std::string> expected = { local 129 expectIptablesCommands(expected); 132 expected = { 135 expectIptablesCommands(expected);
|
H A D | FirewallControllerTest.cpp | 110 ExpectedIptablesCommands expected = { local 114 expectIptablesCommands(expected); 116 expected = { 120 expectIptablesCommands(expected); 124 ExpectedIptablesCommands expected = { local 128 expectIptablesCommands(expected); 130 expected = { 134 expectIptablesCommands(expected); 138 std::string expected = local 160 EXPECT_EQ(expected, makeUidRule 164 std::string expected = local [all...] |
H A D | StrictControllerTest.cpp | 104 std::vector<std::pair<IptablesTarget, std::string>> expected = { local 109 expectIptablesRestoreCommands(expected); 115 const std::string expected = local 123 expectIptablesRestoreCommands({ expected });
|
H A D | IptablesBaseTest.cpp | 91 ExpectedIptablesCommands expected; local 93 expected.push_back({ V4V6, cmd }); 95 expectIptablesCommands(expected); 116 ExpectedIptablesCommands expected; local 118 expected.push_back({ V4V6, cmd }); 120 expectIptablesRestoreCommands(expected);
|
/system/core/libcutils/tests/ |
H A D | trace-dev_test.cpp | 59 std::string expected = android::base::StringPrintf("B|%d|fake_name", getpid()); local 60 ASSERT_STREQ(expected.c_str(), actual.c_str()); 64 std::string expected = android::base::StringPrintf("B|%d|", getpid()); local 65 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 1); 73 expected += name; 74 ASSERT_STREQ(expected.c_str(), actual.c_str()); 83 ASSERT_STREQ(expected.c_str(), actual.c_str()); 87 std::string expected = android::base::StringPrintf("B|%d|", getpid()); local 96 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 1; 97 expected 108 std::string expected = android::base::StringPrintf("S|%d|fake_name|12345", getpid()); local 113 std::string expected = android::base::StringPrintf("S|%d|", getpid()); local 136 std::string expected = android::base::StringPrintf("S|%d|", getpid()); local 157 std::string expected = android::base::StringPrintf("F|%d|fake_name|12345", getpid()); local 162 std::string expected = android::base::StringPrintf("F|%d|", getpid()); local 185 std::string expected = android::base::StringPrintf("F|%d|", getpid()); local 206 std::string expected = android::base::StringPrintf("C|%d|fake_name|12345", getpid()); local 211 std::string expected = android::base::StringPrintf("C|%d|", getpid()); local 234 std::string expected = android::base::StringPrintf("C|%d|", getpid()); local 255 std::string expected = android::base::StringPrintf("C|%d|fake_name|17179869183", getpid()); local 260 std::string expected = android::base::StringPrintf("C|%d|", getpid()); local 283 std::string expected = android::base::StringPrintf("C|%d|", getpid()); local [all...] |
H A D | test_str_parms.cpp | 20 static void test_str_parms_str(const char* str, const char* expected) { argument 28 ASSERT_STREQ(expected, out_str) << str;
|
/system/update_engine/payload_generator/ |
H A D | extent_ranges_unittest.cc | 35 const uint64_t* expected, 40 blocks += expected[i]; 48 EXPECT_EQ(expected[i], it->start_block()) << "line: " << line; 49 EXPECT_EQ(expected[i + 1], it->num_blocks()) << "line: " << line; 143 static const uint64_t expected[] = {}; local 145 ExpectRangeEq(ranges, expected, 0, __LINE__); 149 static const uint64_t expected[] = {}; local 151 ExpectRangeEq(ranges, expected, 0, __LINE__); 160 static const uint64_t expected[] = {0, 2, 3, 1}; local 161 EXPECT_RANGE_EQ(ranges, expected); 34 ExpectRangeEq(const ExtentRanges& ranges, const uint64_t* expected, size_t sz, int line) argument 165 static const uint64_t expected[] = {0, 4}; local 174 static const uint64_t expected[] = {0, 2, 3, 1}; local 182 static const uint64_t expected[] = { local 191 static const uint64_t expected[] = { local 199 static const uint64_t expected[] = { local 207 static const uint64_t expected[] = { local 221 uint64_t expected[] = {3, 2}; local 226 uint64_t expected[] = {0, 1, 3, 2}; local 231 uint64_t expected[] = {0, 1}; local 235 uint64_t expected[] = {3, 2}; local [all...] |
/system/core/adb/ |
H A D | adb_io_test.cpp | 41 const char expected[] = "Foobar"; local 45 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); 49 char buf[sizeof(expected)] = {}; 51 EXPECT_STREQ(expected, buf); 55 const char expected[] = "Foobar"; local 59 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); 63 char buf[sizeof(expected) + 1] = {}; 80 std::string expected(input); 81 expected.pop_back(); 82 EXPECT_STREQ(expected 86 const char expected[] = "Foobar"; local [all...] |
/system/connectivity/shill/wifi/ |
H A D | scan_session_unittest.cc | 144 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600, 147 EXPECT_THAT(result, ContainerEq(expected)); 153 vector<uint16_t> expected{kExpectedFreq5560, kExpectedFreq5620, 156 EXPECT_THAT(result, ContainerEq(expected)); 162 vector<uint16_t> expected{kExpectedFreq2422, kExpectedFreq2427, 166 EXPECT_THAT(result, ContainerEq(expected)); 178 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600}; 180 EXPECT_THAT(result, ContainerEq(expected)); 186 vector<uint16_t> expected{kExpectedFreq5580, kExpectedFreq5560}; 188 EXPECT_THAT(result, ContainerEq(expected)); [all...] |
/system/update_engine/update_manager/ |
H A D | real_time_provider_unittest.cc | 69 const Time expected = Time::FromLocalExploded(exploded); local 72 UmTestUtils::ExpectVariableHasValue(expected, provider_->var_curr_date()); 77 Time::Exploded expected; local 78 now.LocalExplode(&expected); 80 UmTestUtils::ExpectVariableHasValue(expected.hour,
|
H A D | umtest_utils.h | 39 // Calls GetValue on |variable| and expects its result to be |expected|. 41 static void ExpectVariableHasValue(const T& expected, Variable<T>* variable) { argument 46 EXPECT_EQ(expected, *value) << "Variable: " << variable->GetName();
|
/system/connectivity/shill/bin/ |
H A D | test_set_wifi_regulatory | 25 local expected="$2" 27 if [ "${actual}" != "${expected}" ]; then 28 echo "FAIL: expected |${expected}|, got |${actual}|"
|
/system/keymaster/ |
H A D | hkdf_test.cpp | 65 const string expected = hex2str(test.output_hex); local 66 size_t output_len = expected.size(); 73 EXPECT_EQ(0, memcmp(output, expected.data(), output_len));
|
/system/core/libpixelflinger/tests/gglmul/ |
H A D | gglmul_test.cpp | 123 GGLfixed actual, expected; local 132 expected = 134 if(actual == expected) 138 actual, expected); 166 GGLfixed actual, expected; local 175 expected = (((int64_t)test->x * test->y) >> test->shift) + test->a; 177 if(actual == expected) 181 actual, expected); 209 GGLfixed actual, expected; local 218 expected 251 int64_t actual, expected; local [all...] |
/system/core/metricsd/uploader/ |
H A D | metrics_log_base_unittest.cc | 64 // for the expected output. 68 metrics::ChromeUserMetricsExtension expected; local 69 expected.set_client_id(5217101509553811875); // Hashed bogus client ID 70 expected.set_session_id(137); 71 expected.mutable_system_profile()->set_build_timestamp( 73 expected.mutable_system_profile()->set_app_version("bogus version"); 74 expected.mutable_system_profile()->mutable_hardware()->set_hardware_class( 77 EXPECT_EQ(expected.SerializeAsString(), encoded);
|
/system/core/libcutils/ |
H A D | strdup8to16.c | 72 int expected = 0; local 80 * expected, then start counting them because strcpy8to16 83 expected--; 84 if (expected < 0) { 89 expected = UTF8_SEQ_LENGTH(ic) - 1; 92 if (expected == 3) {
|
/system/core/base/ |
H A D | utf8_test.cpp | 173 // The original test always compared expected and converted, but don't do 177 std::wstring expected(convert_cases[i].wide); 178 EXPECT_EQ(expected, converted); 242 // The original test always compared expected and converted, but don't do 246 std::string expected(convert_cases[i].utf8); 247 EXPECT_EQ(expected, converted); 282 std::string expected(convert_cases[i].utf8); 283 EXPECT_EQ(expected, converted); 325 std::string expected; local 326 memcpy(WriteInto(&expected, arraysiz [all...] |
/system/tools/aidl/tests/ |
H A D | aidl_test_client_file_descriptors.cpp | 69 bool DoRead(string name, const ScopedFd& fd, const string& expected) { argument 70 size_t length = expected.size(); 82 if (buf != expected) { 83 cerr << "Expected '" << expected << "' got '" << buf << "'" << endl;
|
/system/extras/verity/ |
H A D | verify_boot_signature.c | 166 BIGNUM expected; local 174 BN_init(&expected); 178 if (!BN_set_word(&expected, FORMAT_VERSION)) { 185 if (BN_cmp(&expected, &value) != 0) { 190 BN_clear(&expected); 196 BN_bin2bn((const unsigned char *) &length, sizeof(length), &expected); 200 if (BN_cmp(&expected, &value) != 0) { 208 BN_free(&expected);
|
/system/update_engine/ |
H A D | chrome_browser_proxy_resolver_unittest.cc | 189 deque<string>& expected = outputs[i]; local 190 EXPECT_EQ(results.size(), expected.size()) << "i = " << i; 191 if (expected.size() != results.size()) 193 for (size_t j = 0; j < expected.size(); j++) { 194 EXPECT_EQ(expected[j], results[j]) << "i = " << i;
|
/system/extras/simpleperf/ |
H A D | sample_tree_test.cpp | 30 static void SampleMatchExpectation(const SampleEntry& sample, const ExpectedSampleInMap& expected, argument 34 ASSERT_EQ(expected.pid, sample.thread->pid); 35 ASSERT_EQ(expected.tid, sample.thread->tid); 36 ASSERT_STREQ(expected.comm, sample.thread_comm); 38 ASSERT_EQ(expected.dso_name, sample.map->dso->Path()); 39 ASSERT_EQ(expected.map_start_addr, sample.map->start_addr); 40 ASSERT_EQ(expected.sample_count, sample.sample_count);
|
/system/extras/perfprofd/tests/ |
H A D | perfprofd_test.cc | 120 // Squeeze out repeated whitespace from expected/actual logs. 271 // match the expected result. By default we use a partial 272 // match, e.g. if we see the expected excerpt anywhere in the 276 const std::string &expected, 280 std::string sqexp = squeezeWhite(expected, "expected"); 288 std::cerr << testpoint << ": expected result not found\n"; 321 const std::string expected = RAW_RESULT( local 329 expected, "MissingGMS"); local 361 const std::string expected local 275 compareLogMessages(const std::string &actual, const std::string &expected, const char *testpoint, bool exactMatch=false) argument 366 expected, "MissingOptInSemaphoreFile"); local 399 const std::string expected = RAW_RESULT( local 404 expected, "MissingPerfExecutable"); local 436 const std::string expected = RAW_RESULT( local 442 expected, "BadPerfRun"); local 471 const std::string expected = RAW_RESULT( local 481 expected, "ConfigFileParsing"); local 609 const std::string expected = RAW_RESULT( local 621 expected, "BasicRunWithLivePerf", true); local 665 const std::string expected = RAW_RESULT( local 685 expected, "BasicRunWithLivePerf", true); local [all...] |
/system/extras/tests/net_test/ |
H A D | multinetwork_test.py | 102 desc, expected = packets.ICMPEcho(version, myaddr, dstaddr) 103 msg = "IPv%d ping: expected %s on %s" % ( 108 self.ExpectPacketOn(netid, msg, expected) 116 desc, expected = packets.SYN(53, version, myaddr, dstaddr, 121 msg = "IPv%s TCP connect: expected %s on %s" % ( 123 self.ExpectPacketOn(netid, msg, expected) 132 desc, expected = packets.UDP(version, myaddr, dstaddr, sport=None) 133 msg = "IPv%s UDP %%s: expected %s on %s" % ( 137 self.ExpectPacketOn(netid, msg % "sendto", expected) 143 self.ExpectPacketOn(netid, msg % "connect/send", expected) [all...] |
H A D | multinetwork_base.py | 504 def assertPacketMatches(self, expected, actual): 505 # The expected packet is just a rough sketch of the packet we expect to 517 expectedip = expected.getlayer("IP") 525 expectedipv6 = expected.getlayer("IPv6") 532 expectedudp = expected.getlayer("UDP") 546 expectedtcp = expected.getlayer("TCP") 559 # Serialize the packet so that expected packet fields that are only set when 561 expected_real = expected.__class__(str(expected)) 568 def PacketMatches(self, expected, actua [all...] |
/system/tools/aidl/ |
H A D | aidl.cpp | 77 string expected; local 87 expected = package; 88 expected += '.'; 91 len = expected.length(); 93 if (expected[i] == '.') { 94 expected[i] = OS_PATH_SEPARATOR; 98 expected.append(name, 0, name.find('.')); 100 expected += ".aidl"; 103 valid = (len >= expected.length()); 106 p = fn.c_str() + (len - expected [all...] |