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

Unified Diff: mojo/public/cpp/bindings/tests/validation_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/validation_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/validation_unittest.cc b/mojo/public/cpp/bindings/tests/validation_unittest.cc
index da2fb72e9bf58c945c37cf8a016e82b9c7496ac7..bf0894c5279431afde084c555366d5afb6b9295e 100644
--- a/mojo/public/cpp/bindings/tests/validation_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/validation_unittest.cc
@@ -196,7 +196,7 @@ class ValidationTest : public testing::Test {
class ValidationIntegrationTest : public ValidationTest {
public:
- ValidationIntegrationTest() : test_message_receiver_(NULL) {
+ ValidationIntegrationTest() : test_message_receiver_(nullptr) {
}
virtual ~ValidationIntegrationTest() {
@@ -205,14 +205,14 @@ class ValidationIntegrationTest : public ValidationTest {
virtual void SetUp() override {
ScopedMessagePipeHandle tester_endpoint;
ASSERT_EQ(MOJO_RESULT_OK,
- CreateMessagePipe(NULL, &tester_endpoint, &testee_endpoint_));
+ CreateMessagePipe(nullptr, &tester_endpoint, &testee_endpoint_));
test_message_receiver_ =
new TestMessageReceiver(this, tester_endpoint.Pass());
}
virtual void TearDown() override {
delete test_message_receiver_;
- test_message_receiver_ = NULL;
+ test_message_receiver_ = nullptr;
// Make sure that the other end receives the OnConnectionError()
// notification.
@@ -369,7 +369,7 @@ TEST_F(ValidationTest, InputParser) {
"[dist4]a [dist4]a [anchr]a",
"[dist4]a [anchr]a [dist4]a [anchr]a",
"0 [handles]50",
- NULL
+ nullptr
};
for (size_t i = 0; error_inputs[i]; ++i) {

Powered by Google App Engine
This is Rietveld 408576698