update_engine: Replace NULL with nullptr

Replaced the usage of NULL with nullptr. This also makes it possible to
use standard gtest macros to compare pointers in Update Manager's unit tests.
So, there is no need in custom UMTEST_... macros which are replaced with the
gtest macros (see change in update_engine/update_manager/umtest_utils.h):

UMTEST_ASSERT_NULL(p)      => ASSERT_EQ(nullptr, p)
UMTEST_ASSERT_NOT_NULL(p)  => ASSERT_NE(nullptr, p)
UMTEST_EXPECT_NULL(p)      => EXPECT_EQ(nullptr, p)
UMTEST_EXPECT_NOT_NULL(p)  => EXPECT_NE(nullptr, p)

BUG=None
TEST=FEATURES=test emerge-link update_engine
     USE="clang asan" FEATURES=test emerge-link update_engine

Change-Id: I77a42a1e9ce992bb2f9f263db5cf75fe6110a4ec
Reviewed-on: https://chromium-review.googlesource.com/215136
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/http_common.cc b/http_common.cc
index a3bd7f8..8cdc6eb 100644
--- a/http_common.cc
+++ b/http_common.cc
@@ -50,7 +50,7 @@
 }
 
 HttpResponseCode StringToHttpResponseCode(const char *s) {
-  return static_cast<HttpResponseCode>(strtoul(s, NULL, 10));
+  return static_cast<HttpResponseCode>(strtoul(s, nullptr, 10));
 }
 
 
@@ -68,7 +68,7 @@
     if ((is_found = (http_content_type_table[i].type == type)))
       break;
 
-  return (is_found ? http_content_type_table[i].str : NULL);
+  return (is_found ? http_content_type_table[i].str : nullptr);
 }
 
 }  // namespace chromeos_update_engine