/system/netd/server/ |
H A D | FirewallControllerTest.cpp | 106 ExpectedIptablesCommands expected = { local 110 expectIptablesRestoreCommands(expected); 112 expected = { 116 expectIptablesRestoreCommands(expected); 120 ExpectedIptablesCommands expected = { local 124 expectIptablesRestoreCommands(expected); 126 expected = { 130 expectIptablesRestoreCommands(expected); 134 ExpectedIptablesCommands expected = { local 141 expectIptablesRestoreCommands(expected); 154 std::string expected = local 182 std::string expected = local 198 std::vector<std::string> expected = { local [all...] |
H A D | BandwidthControllerTest.cpp | 94 ExpectedIptablesCommands expected = {{ V4, expectedList }}; local 96 expected.push_back({ V4V6, expectedClean }); 98 expected.push_back({ V4V6, expectedFlush }); 100 expected.push_back({ V4V6, expectedAccounting }); 103 expectIptablesRestoreCommands(expected); 192 std::vector<std::string> expected = { local 197 expectIptablesRestoreCommands(expected); 200 expected = { 205 expectIptablesRestoreCommands(expected); 264 std::string expected local 389 std::vector<std::string> expected = makeInterfaceQuotaCommands(iface, 1, 123456); local 407 std::vector<std::string> expected = { local 427 std::vector<std::string> expected = { local 447 std::vector<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 | 142 ExpectedIptablesCommands expected; local 144 expected.push_back({ V4V6, cmd }); 146 expectIptablesCommands(expected); 168 ExpectedIptablesCommands expected; local 170 expected.insert(expected.end(), snippet.begin(), snippet.end()); 172 expectIptablesCommands(expected); 176 ExpectedIptablesCommands expected; local 178 expected.push_back({ V4V6, cmd }); 180 expectIptablesRestoreCommands(expected); [all...] |
/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 | 47 const char expected[] = "Foobar"; local 51 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); 55 char buf[sizeof(expected)] = {}; 57 EXPECT_STREQ(expected, buf); 61 const char expected[] = "Foobar"; local 65 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); 69 char buf[sizeof(expected) + 1] = {}; 86 std::string expected(input); 87 expected.pop_back(); 88 EXPECT_STREQ(expected 92 const char expected[] = "Foobar"; local [all...] |
/system/core/adb/sysdeps/win32/ |
H A D | errno_test.cpp | 23 void TestAdbStrError(int err, const char* expected) { argument 28 EXPECT_STREQ(expected, result);
|
/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/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/nvram/core/tests/ |
H A D | gtest_stubs.h | 40 #define ASSERT_EQ(expected, actual) ASSERT_MSG(expected == actual) 48 #define EXPECT_EQ(expected, actual) EXPECT_MSG((expected) == (actual)) 49 #define EXPECT_NE(expected, actual) EXPECT_MSG((expected) != (actual))
|
/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/tools/hidl/test/java_test/ |
H A D | hidl_test_java_native.cpp | 354 hidl_vec<bool> someBoolVector, expected; local 356 expected.resize(4); 360 expected[i] = !someBoolVector[i]; 367 EXPECT_EQ(expected, result); 390 hidl_array<int32_t, 32> expected; local 393 param[i] = expected[15 + i] = i; 394 expected[i] = 2 * i; 397 expected[30] = 1; 398 expected[31] = 2; 404 EXPECT_EQ(expected, resul 409 std::string expected = "Hello, world!"; local 418 hidl_vec<int32_t> vec_param, expected; local 457 hidl_array<hidl_string, 2> expected; local [all...] |
/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/connectivity/wifilogd/tests/ |
H A D | byte_buffer_unittest.cpp | 57 const std::string expected{"helloworld"}; 58 EXPECT_EQ(0, std::memcmp(buffer_.data(), expected.data(), expected.size())); 79 const std::string expected{"helloworld"}; 80 EXPECT_EQ(0, std::memcmp(buffer_.data(), expected.data(), expected.size()));
|
H A D | message_buffer_unittest.cpp | 177 const std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; 178 EXPECT_EQ(expected, buffer_.ConsumeNextMessage()); 185 const std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; 186 EXPECT_EQ(expected, buffer_.ConsumeNextMessage()); 210 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; 211 EXPECT_EQ(expected, buffer_.ConsumeNextMessage()); 219 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; 220 EXPECT_EQ(expected, buffer_.ConsumeNextMessage()); 232 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; 233 EXPECT_EQ(expected, buffer [all...] |
/system/tools/aidl/tests/ |
H A D | aidl_test_client_file_descriptors.cpp | 72 bool DoRead(const string& name, const unique_fd& fd, const string& expected) { argument 73 size_t length = expected.size(); 85 if (buf != expected) { 86 cerr << "Expected '" << expected << "' got '" << buf << "'" << endl;
|
/system/extras/simpleperf/ |
H A D | sample_tree_test.cpp | 97 const SampleEntry& expected, 100 ASSERT_EQ(expected.pid, sample.pid); 101 ASSERT_EQ(expected.tid, sample.tid); 102 ASSERT_STREQ(expected.thread_comm, sample.thread_comm); 103 ASSERT_EQ(expected.dso_name, sample.dso_name); 104 ASSERT_EQ(expected.map_start_addr, sample.map_start_addr); 105 ASSERT_EQ(expected.sample_count, sample.sample_count); 96 SampleMatchExpectation(const SampleEntry& sample, const SampleEntry& expected, bool* has_error) argument
|
/system/extras/verity/ |
H A D | verify_boot_signature.c | 167 BIGNUM expected; local 175 BN_init(&expected); 179 if (!BN_set_word(&expected, FORMAT_VERSION)) { 186 if (BN_cmp(&expected, &value) != 0) { 191 BN_clear(&expected); 197 BN_bin2bn((const unsigned char *) &length, sizeof(length), &expected); 201 if (BN_cmp(&expected, &value) != 0) { 209 BN_free(&expected);
|
/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...] |
/system/update_engine/ |
H A D | chrome_browser_proxy_resolver_unittest.cc | 188 deque<string>& expected = outputs[i]; local 189 EXPECT_EQ(results.size(), expected.size()) << "i = " << i; 190 if (expected.size() != results.size()) 192 for (size_t j = 0; j < expected.size(); j++) { 193 EXPECT_EQ(expected[j], results[j]) << "i = " << i;
|
/system/libhwbinder/ |
H A D | Binder.cpp | 125 Extras* expected = nullptr; local 126 if (!mExtras.compare_exchange_strong(expected, e, 130 e = expected; // Filled in by CAS
|