update_engine: fixed warnings from cpplint
Fixed all the cpplint warnings in update engine.
BUG=None
TEST=Unit tests still pass.
Change-Id: I285ae858eec8abe0b26ff203b99a42a200ceb71c
Reviewed-on: https://chromium-review.googlesource.com/204027
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/test_utils.h b/test_utils.h
index 120f080..ec191f8 100644
--- a/test_utils.h
+++ b/test_utils.h
@@ -70,7 +70,7 @@
void FillWithData(std::vector<char>* buffer);
-namespace {
+namespace { // NOLINT(build/namespaces) - anon. NS in header file.
// 300 byte pseudo-random string. Not null terminated.
// This does not gzip compress well.
const unsigned char kRandomString[] = {
@@ -114,7 +114,7 @@
0xbe, 0x9f, 0xa3, 0x5d
};
-} // namespace {}
+} // namespace
// Creates an empty ext image.
void CreateEmptyExtImageAtPath(const std::string& path,
@@ -263,7 +263,7 @@
public:
explicit ScopedLoopMounter(const std::string& file_path,
std::string* mnt_path,
- unsigned long flags);
+ unsigned long flags); // NOLINT(runtime/int)
private:
// These objects must be destructed in the following order: