Lines Matching refs:expected

59   std::string expected = android::base::StringPrintf("B|%d|fake_name", getpid());
60 ASSERT_STREQ(expected.c_str(), actual.c_str());
64 std::string expected = android::base::StringPrintf("B|%d|", getpid());
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());
96 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 1;
97 expected += android::base::StringPrintf("%.*s", expected_len, name.c_str());
98 ASSERT_STREQ(expected.c_str(), actual.c_str());
108 std::string expected = android::base::StringPrintf("S|%d|fake_name|12345", getpid());
109 ASSERT_STREQ(expected.c_str(), actual.c_str());
113 std::string expected = android::base::StringPrintf("S|%d|", getpid());
114 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 7);
122 expected += name + "|12345";
123 ASSERT_STREQ(expected.c_str(), actual.c_str());
132 ASSERT_STREQ(expected.c_str(), actual.c_str());
136 std::string expected = android::base::StringPrintf("S|%d|", getpid());
145 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 7;
146 expected += android::base::StringPrintf("%.*s|12345", expected_len, name.c_str());
147 ASSERT_STREQ(expected.c_str(), actual.c_str());
157 std::string expected = android::base::StringPrintf("F|%d|fake_name|12345", getpid());
158 ASSERT_STREQ(expected.c_str(), actual.c_str());
162 std::string expected = android::base::StringPrintf("F|%d|", getpid());
163 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 7);
171 expected += name + "|12345";
172 ASSERT_STREQ(expected.c_str(), actual.c_str());
181 ASSERT_STREQ(expected.c_str(), actual.c_str());
185 std::string expected = android::base::StringPrintf("F|%d|", getpid());
194 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 7;
195 expected += android::base::StringPrintf("%.*s|12345", expected_len, name.c_str());
196 ASSERT_STREQ(expected.c_str(), actual.c_str());
206 std::string expected = android::base::StringPrintf("C|%d|fake_name|12345", getpid());
207 ASSERT_STREQ(expected.c_str(), actual.c_str());
211 std::string expected = android::base::StringPrintf("C|%d|", getpid());
212 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 7);
220 expected += name + "|12345";
221 ASSERT_STREQ(expected.c_str(), actual.c_str());
230 ASSERT_STREQ(expected.c_str(), actual.c_str());
234 std::string expected = android::base::StringPrintf("C|%d|", getpid());
243 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 7;
244 expected += android::base::StringPrintf("%.*s|12345", expected_len, name.c_str());
245 ASSERT_STREQ(expected.c_str(), actual.c_str());
255 std::string expected = android::base::StringPrintf("C|%d|fake_name|17179869183", getpid());
256 ASSERT_STREQ(expected.c_str(), actual.c_str());
260 std::string expected = android::base::StringPrintf("C|%d|", getpid());
261 std::string name = MakeName(ATRACE_MESSAGE_LENGTH - expected.length() - 13);
269 expected += name + "|17179869183";
270 ASSERT_STREQ(expected.c_str(), actual.c_str());
279 ASSERT_STREQ(expected.c_str(), actual.c_str());
283 std::string expected = android::base::StringPrintf("C|%d|", getpid());
292 int expected_len = ATRACE_MESSAGE_LENGTH - expected.length() - 13;
293 expected += android::base::StringPrintf("%.*s|17179869183", expected_len, name.c_str());
294 ASSERT_STREQ(expected.c_str(), actual.c_str());