Linux: Correctly count the number of open file descriptors.
The initial implementation of ProcessMetrics::GetOpenFdCount() counted
"." and ".." as well.
Add a unit test to verify the counting is correct.
BUG=496957
Review URL: https://codereview.chromium.org/1526253003
Cr-Commit-Position: refs/heads/master@{#365504}
diff --git a/base/files/dir_reader_fallback.h b/base/files/dir_reader_fallback.h
index a435f25..d44c227 100644
--- a/base/files/dir_reader_fallback.h
+++ b/base/files/dir_reader_fallback.h
@@ -21,7 +21,7 @@
bool Next() { return false; }
// Return the name of the current directory entry.
- const char* name() { return 0;}
+ const char* name() { return nullptr;}
// Return the file descriptor which is being used.
int fd() const { return -1; }