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

Unified Diff: chrome/browser/sync/test/integration/sync_datatype_helper.cc

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 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
Index: chrome/browser/sync/test/integration/sync_datatype_helper.cc
diff --git a/chrome/browser/sync/test/integration/sync_datatype_helper.cc b/chrome/browser/sync/test/integration/sync_datatype_helper.cc
index 7921e10c979290e21e6c388b5a1ded37864aacac..b6a22429c18e7281ff4bba0ad7d8b063d054e8c0 100644
--- a/chrome/browser/sync/test/integration/sync_datatype_helper.cc
+++ b/chrome/browser/sync/test/integration/sync_datatype_helper.cc
@@ -9,20 +9,20 @@
namespace {
// The SyncTest instance associated with sync_datatype_helper.
-static SyncTest* test = NULL;
+static SyncTest* test = nullptr;
} // namespace
namespace sync_datatype_helper {
void AssociateWithTest(SyncTest* test) {
- ASSERT_TRUE(test != NULL) << "Cannot associate with null test.";
- ASSERT_TRUE(::test == NULL) << "Already associated with a test.";
+ ASSERT_TRUE(test != nullptr) << "Cannot associate with null test.";
+ ASSERT_TRUE(::test == nullptr) << "Already associated with a test.";
::test = test;
}
SyncTest* test() {
- EXPECT_TRUE(::test != NULL) << "Must call AssociateWithTest first.";
+ EXPECT_TRUE(::test != nullptr) << "Must call AssociateWithTest first.";
return ::test;
}
« no previous file with comments | « chrome/browser/sync/test/integration/sync_auth_test.cc ('k') | chrome/browser/sync/test/integration/sync_extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698