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

Unified Diff: base/command_line_unittest.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « no previous file | base/crypto/encryptor_nss.cc » ('j') | base/file_path.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line_unittest.cc
diff --git a/base/command_line_unittest.cc b/base/command_line_unittest.cc
index 6fd64407a470e1be897dec37d94cdad114d80b91..de8e4147b9055ae49675a6fc17dfb01c31ca05de 100644
--- a/base/command_line_unittest.cc
+++ b/base/command_line_unittest.cc
@@ -109,7 +109,7 @@ TEST(CommandLineTest, EmptyString) {
EXPECT_TRUE(cl.GetProgram().empty());
#elif defined(OS_POSIX)
CommandLine cl(0, NULL);
- EXPECT_TRUE(cl.argv().size() == 0);
+ EXPECT_EQ(0U, cl.argv().size());
Peter Kasting 2011/03/02 00:02:42 Nit: EXPECT_TRUE(cl.argv().empty()); (2 places)
#endif
EXPECT_EQ(0U, cl.args().size());
}
« no previous file with comments | « no previous file | base/crypto/encryptor_nss.cc » ('j') | base/file_path.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698