Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: src/platform/update_engine/test_utils.cc

Issue 1819002: AU: delta compress the kernel partition (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/update_engine/test_utils.h ('k') | src/platform/update_engine/update_metadata.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/update_engine/test_utils.cc
diff --git a/src/platform/update_engine/test_utils.cc b/src/platform/update_engine/test_utils.cc
index 851e45d9693cc729036cf526047d92a105a289bf..a075c2d930d19f7fa71590653d5d7c610b3e107c 100644
--- a/src/platform/update_engine/test_utils.cc
+++ b/src/platform/update_engine/test_utils.cc
@@ -35,15 +35,6 @@ bool WriteFileString(const std::string& path, const std::string& data) {
return utils::WriteFile(path.c_str(), data.data(), data.size());
}
-off_t FileSize(const string& path) {
- struct stat stbuf;
- int rc = stat(path.c_str(), &stbuf);
- CHECK_EQ(rc, 0);
- if (rc < 0)
- return rc;
- return stbuf.st_size;
-}
-
std::string Readlink(const std::string& path) {
vector<char> buf(PATH_MAX + 1);
ssize_t r = readlink(path.c_str(), &buf[0], buf.size());
« no previous file with comments | « src/platform/update_engine/test_utils.h ('k') | src/platform/update_engine/update_metadata.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698