Searched defs:expected (Results 1 - 25 of 47) sorted by relevance

12

/system/core/adb/sysdeps/win32/
H A Derrno_test.cpp23 void TestAdbStrError(int err, const char* expected) { argument
28 EXPECT_STREQ(expected, result);
/system/core/libcutils/tests/
H A Dtest_str_parms.cpp20 static void test_str_parms_str(const char* str, const char* expected) { argument
28 ASSERT_STREQ(expected, out_str) << str;
H A Dtrace-dev_test.cpp59 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...]
/system/core/adb/
H A Dadb_io_test.cpp47 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/base/
H A Dproperties_test.cpp54 static void CheckGetBoolProperty(bool expected, const std::string& value, bool default_value) { argument
56 ASSERT_EQ(expected, android::base::GetBoolProperty("debug.libbase.property_test", default_value));
H A Dlogging_test.cpp208 android::base::LogSeverity severity, const char* expected) {
216 ASSERT_GT(output.length(), strlen(expected));
217 ASSERT_NE(nullptr, strstr(output.c_str(), expected)) << output;
220 std::regex message_regex(make_log_pattern(severity, expected));
546 std::string expected = android::base::StringPrintf("%s unimplemented ", __PRETTY_FUNCTION__); local
551 CheckMessage(cap, android::base::ERROR, expected.c_str());
207 CheckMessage(const CapturedStderr& cap, android::base::LogSeverity severity, const char* expected) argument
H A Dutf8_test.cpp173 // 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/update_engine/update_manager/
H A Dreal_time_provider_unittest.cc69 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 Dumtest_utils.h39 // 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();
H A Dreal_updater_provider_unittest.cc86 // |valid| determines whether the returned time is valid. Returns the expected
409 Time expected = SetupUpdateCompletedTime(true); local
410 UmTestUtils::ExpectVariableHasValue(expected,
/system/keymaster/
H A Dhkdf_test.cpp65 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/netd/server/
H A DStrictControllerTest.cpp104 std::vector<std::pair<IptablesTarget, std::string>> expected = { local
109 expectIptablesRestoreCommands(expected);
115 const std::string expected = local
123 expectIptablesRestoreCommands({ expected });
H A DFirewallControllerTest.cpp106 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 DIptablesBaseTest.cpp142 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/debuggerd/libdebuggerd/test/
H A Dtombstone_test.cpp591 << "Signal " << si.si_signo << " expected to include an address.";
594 << "Signal " << si.si_signo << " is not expected to include an address.";
642 std::string expected = "Build fingerprint: 'unknown'\nRevision: 'unknown'\n"; local
643 expected += android::base::StringPrintf("ABI: '%s'\n", ABI_STRING);
644 ASSERT_STREQ(expected.c_str(), amfd_data_.c_str());
/system/core/libcutils/
H A Dstrdup8to16.c72 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/libziparchive/
H A Dzip_writer_test.cc26 static ::testing::AssertionResult AssertFileEntryContentsEq(const std::string& expected,
51 const char* expected = "hello"; local
68 EXPECT_EQ(strlen(expected), data.compressed_length);
69 ASSERT_EQ(strlen(expected), data.uncompressed_length);
70 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data));
394 static ::testing::AssertionResult AssertFileEntryContentsEq(const std::string& expected, argument
397 if (expected.size() != zip_entry->uncompressed_length) {
399 << zip_entry->uncompressed_length << " does not match expected size " << expected.size();
403 actual.resize(expected
[all...]
/system/media/audio_utils/
H A Dfifo_index.cpp35 int audio_utils_fifo_index::wait(int op, uint32_t expected, const struct timespec *timeout) argument
37 return sys_futex(&mIndex, op, expected, timeout, NULL, 0);
159 int err = mIndex.wait(op, mValue /*expected*/, timeout);
/system/tools/aidl/
H A Dast_cpp_unittest.cpp187 string expected = R"(ClassName::ClassName(a, b, c) local
192 CompareGeneratedCode(c, expected);
/system/update_engine/
H A Dchrome_browser_proxy_resolver_unittest.cc188 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/update_engine/payload_generator/
H A Dextent_ranges_unittest.cc35 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/connectivity/wifilogd/tests/
H A Dos_unittest.cpp72 explicit TimespecMatcher(const timespec& expected) : expected_(expected) {} argument
89 Matcher<const timespec&> EqualsTimespec(const timespec& expected) { argument
90 return MakeMatcher(new TimespecMatcher(expected));
/system/core/libpixelflinger/tests/gglmul/
H A Dgglmul_test.cpp123 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/extras/simpleperf/
H A Dsample_tree_test.cpp97 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/netd/tests/dns_responder/
H A Ddns_responder_client.cpp63 static bool expectNetdResult(int expected, const char* sockname, const char* format, ...) { argument
70 if (expected != result) {
73 return (200 <= expected && expected < 300);

Completed in 2142 milliseconds

12