metrics-ipmi-blobs: Add bootup time to metrics
Change-Id: I1da66deca4a0cc2d75abe7c40c258c34593ea6a0
Signed-off-by: Michael Shen <gpgpgp@google.com>
diff --git a/subprojects/metrics-ipmi-blobs/test/util_test.cpp b/subprojects/metrics-ipmi-blobs/test/util_test.cpp
index 7b38d23..00c5ed8 100644
--- a/subprojects/metrics-ipmi-blobs/test/util_test.cpp
+++ b/subprojects/metrics-ipmi-blobs/test/util_test.cpp
@@ -35,22 +35,22 @@
EXPECT_EQ(id, 10000);
}
-TEST(ReadFileIntoString, goodFile)
+TEST(ReadFileThenGrepIntoString, goodFile)
{
const std::string& fileName = "./test_file";
std::ofstream ofs(fileName, std::ios::trunc);
std::string_view content = "This is\ntest\tcontentt\n\n\n\n.\n\n##$#$";
ofs << content;
ofs.close();
- std::string readContent = metric_blob::readFileIntoString(fileName);
+ std::string readContent = metric_blob::readFileThenGrepIntoString(fileName);
std::filesystem::remove(fileName);
EXPECT_EQ(readContent, content);
}
-TEST(ReadFileIntoString, inexistentFile)
+TEST(ReadFileThenGrepIntoString, inexistentFile)
{
const std::string& fileName = "./inexistent_file";
- std::string readContent = metric_blob::readFileIntoString(fileName);
+ std::string readContent = metric_blob::readFileThenGrepIntoString(fileName);
EXPECT_EQ(readContent, "");
}