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

Unified Diff: util/posix/process_util_test.cc

Issue 700383007: Use implicit_cast<> instead of static_cast<> whenever possible (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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: util/posix/process_util_test.cc
diff --git a/util/posix/process_util_test.cc b/util/posix/process_util_test.cc
index 47b0dd5fe29d965d65d704b2dc93e2fbd544395a..41d4a1de32ba1f70fd367027f431e4c182b63f04 100644
--- a/util/posix/process_util_test.cc
+++ b/util/posix/process_util_test.cc
@@ -20,6 +20,7 @@
#include <string>
#include <vector>
+#include "base/basictypes.h"
#include "gtest/gtest.h"
namespace crashpad {
@@ -33,7 +34,7 @@ TEST(ProcessUtil, ProcessArgumentsForPID) {
// gtest argv processing scrambles argv, but it leaves argc and argv[0]
// intact, so test those.
- int argc = static_cast<int>(argv.size());
+ int argc = implicit_cast<int>(argv.size());
int expect_argc = *_NSGetArgc();
EXPECT_EQ(expect_argc, argc);

Powered by Google App Engine
This is Rietveld 408576698