Lines Matching refs:data
48 static void CheckMatchingExpectedData(std::string& data) { in CheckMatchingExpectedData() argument
52 data.erase(std::remove(data.begin(), data.end(), '\r'), data.end()); in CheckMatchingExpectedData()
53 ASSERT_EQ(data, expected_data); in CheckMatchingExpectedData()
57 std::string data; in TEST() local
58 ASSERT_TRUE(RunInjectCmd({}, &data)); in TEST()
60 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
61 CheckMatchingExpectedData(data); in TEST()
66 std::string data; in TEST() local
67 ASSERT_TRUE(RunInjectCmd({"--binary", "etm_test_loop"}, &data)); in TEST()
68 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
71 ASSERT_TRUE(RunInjectCmd({"--binary", "etm_t.*_loop"}, &data)); in TEST()
72 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
75 ASSERT_TRUE(RunInjectCmd({"--binary", "no_etm_test_loop"}, &data)); in TEST()
76 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()
79 ASSERT_TRUE(RunInjectCmd({"--binary", "no_etm_test_.*"}, &data)); in TEST()
80 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()