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

Unified Diff: content/common/shareable_file_reference_unittest.cc

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors Created 6 years, 2 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 | « content/common/set_process_title_linux.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/shareable_file_reference_unittest.cc
diff --git a/content/common/shareable_file_reference_unittest.cc b/content/common/shareable_file_reference_unittest.cc
index 5e697b9eb24e431024dc57d0e1ff50fc89e290cb..e6c9de8fc4c37ddcd96d1d19ed8a748ccb261e5c 100644
--- a/content/common/shareable_file_reference_unittest.cc
+++ b/content/common/shareable_file_reference_unittest.cc
@@ -44,13 +44,13 @@ TEST(ShareableFileReferenceTest, TestReferences) {
EXPECT_EQ(reference1.get(), reference2.get());
// Drop the first reference, the file and reference should still be there.
- reference1 = NULL;
+ reference1 = nullptr;
EXPECT_TRUE(ShareableFileReference::Get(file).get());
base::RunLoop().RunUntilIdle();
EXPECT_TRUE(base::PathExists(file));
// Drop the second reference, the file and reference should get deleted.
- reference2 = NULL;
+ reference2 = nullptr;
EXPECT_FALSE(ShareableFileReference::Get(file).get());
base::RunLoop().RunUntilIdle();
EXPECT_FALSE(base::PathExists(file));
« no previous file with comments | « content/common/set_process_title_linux.cc ('k') | content/common/url_schemes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698