Lines Matching refs:std

40   void Exec(std::vector<const char*> args);
41 void RunTest(int expected_exitcode, std::vector<const char*> extra_args = {});
42 void Verify(const std::string& expected_output, int expected_exitcode,
43 std::vector<const char*> extra_args = {}, bool sanitize = true);
45 std::string raw_output_;
46 std::string sanitized_output_;
60 static std::string GetBionicXmlArg(const char* xml_file) { in GetBionicXmlArg()
66 sanitized_output_ = std::regex_replace(raw_output_, std::regex(".*(BM_\\S+)\\s+.+"), "$1"); in SanitizeOutput()
78 void SystemTests::Exec(std::vector<const char*> args) { in Exec()
104 void SystemTests::Verify(const std::string& expected_output, in Verify()
105 … int expected_exitcode, std::vector<const char*> extra_args, bool sanitize) { in Verify()
116 void SystemTests::RunTest(int expected_exitcode, std::vector<const char*> extra_args) { in RunTest()
117 std::vector<const char*> args; in RunTest()
156 std::string expected = in TEST_F()
176 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F()
180 RunTest(0, std::vector<const char*>{"--bionic_iterations=1"}); in TEST_F()
185 std::regex benchmark_re("BM_\\S+/iterations:1"); in TEST_F()
186 std::smatch sm; in TEST_F()
188 std::string output(raw_output_); in TEST_F()
189 while (std::regex_search(output, sm, benchmark_re)) { in TEST_F()
197 std::string expected = in TEST_F()
201 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F()
206 std::string expected = in TEST_F()
219 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_medium.xml").c_str(), in TEST_F()
224 std::string expected = in TEST_F()
234 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_from_each.xml").c_str(), in TEST_F()
239 std::string expected = in TEST_F()
242 Verify(expected, 0, std::vector<const char*>{"--bionic_extra=BM_string_memcpy 8 8 8", in TEST_F()
248 std::string expected = in TEST_F()
251 Verify(expected, 0, std::vector<const char*>{"--bionic_extra=BM_string_memcpy 8 8 8", in TEST_F()
256 std::string expected = in TEST_F()
279 Verify(expected, 0, std::vector<const char*>{"--bionic_extra=BM_string_memcpy AT_ALIGNED_TWOBUF", in TEST_F()
287 std::string expected = in TEST_F()
398 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_size.xml").c_str()}); in TEST_F()
402 std::string expected = in TEST_F()
864 std::vector<const char*>{GetBionicXmlArg("test_alignment_onebuf.xml").c_str()}); in TEST_F()
868 std::string expected = in TEST_F()
886 std::vector<const char*>{GetBionicXmlArg("test_alignment_onebuf_manual.xml").c_str()}); in TEST_F()
890 std::string expected = in TEST_F()
2852 std::vector<const char*>{GetBionicXmlArg("test_alignment_twobuf.xml").c_str()}); in TEST_F()
2856 std::string expected = in TEST_F()
2909 std::vector<const char*>{GetBionicXmlArg("test_alignment_twobuf_manual.xml").c_str()}); in TEST_F()