chromeos-dbus-bindings: Fix more sign issues
BUG=None
TEST=Compiles on Android without sign comparison warnings.
Change-Id: I818975146bd028e50ae20948211b959e022fb0bb
Reviewed-on: https://chromium-review.googlesource.com/288926
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
diff --git a/chromeos-dbus-bindings/proxy_generator_mock_unittest.cc b/chromeos-dbus-bindings/proxy_generator_mock_unittest.cc
index f12b8ec..aebc973 100644
--- a/chromeos-dbus-bindings/proxy_generator_mock_unittest.cc
+++ b/chromeos-dbus-bindings/proxy_generator_mock_unittest.cc
@@ -131,8 +131,8 @@
base::FilePath CreateInputFile(const string& contents) {
base::FilePath path;
EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_.path(), &path));
- EXPECT_EQ(contents.size(),
- base::WriteFile(path, contents.c_str(), contents.size()));
+ int written = base::WriteFile(path, contents.c_str(), contents.size());
+ EXPECT_EQ(contents.size(), static_cast<size_t>(written));
return path;
}