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

Unified Diff: mojo/public/cpp/bindings/tests/string_unittest.cc

Issue 613053002: Mojo: NULL -> nullptr in mojo/public/cpp/bindings and also for the bindings generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: mojo/public/cpp/bindings/tests/string_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/string_unittest.cc b/mojo/public/cpp/bindings/tests/string_unittest.cc
index 9844ee9fca1d09ac2757788b03eb82036c6e0e0f..6f8544363ad49886d4981ec1d1443470816ab562 100644
--- a/mojo/public/cpp/bindings/tests/string_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/string_unittest.cc
@@ -14,12 +14,12 @@ TEST(StringTest, DefaultIsNull) {
}
TEST(StringTest, ConstructedWithNULL) {
- String s(NULL);
+ String s(nullptr);
EXPECT_TRUE(s.is_null());
}
TEST(StringTest, ConstructedWithNullCharPointer) {
- const char* null = NULL;
+ const char* null = nullptr;
String s(null);
EXPECT_TRUE(s.is_null());
}
@@ -27,7 +27,7 @@ TEST(StringTest, ConstructedWithNullCharPointer) {
TEST(StringTest, AssignedNULL) {
String s("");
EXPECT_FALSE(s.is_null());
- s = NULL;
+ s = nullptr;
EXPECT_TRUE(s.is_null());
}
« no previous file with comments | « mojo/public/cpp/bindings/tests/router_unittest.cc ('k') | mojo/public/cpp/bindings/tests/type_conversion_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698