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

Unified Diff: util/misc/clock_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/misc/clock_test.cc
diff --git a/util/misc/clock_test.cc b/util/misc/clock_test.cc
index ffc5e4943a260c1f374c615ef2713275d5ea64f7..d06afd6728aa196ca1e3de1ab9e2996aa6e1b6a3 100644
--- a/util/misc/clock_test.cc
+++ b/util/misc/clock_test.cc
@@ -69,13 +69,13 @@ TEST(Clock, SleepNanoseconds) {
const uint64_t kTestData[] = {
0,
1,
- static_cast<uint64_t>(1E3), // 1 microsecond
- static_cast<uint64_t>(1E4), // 10 microseconds
- static_cast<uint64_t>(1E5), // 100 microseconds
- static_cast<uint64_t>(1E6), // 1 millisecond
- static_cast<uint64_t>(1E7), // 10 milliseconds
- static_cast<uint64_t>(2E7), // 20 milliseconds
- static_cast<uint64_t>(5E7), // 50 milliseconds
+ implicit_cast<uint64_t>(1E3), // 1 microsecond
+ implicit_cast<uint64_t>(1E4), // 10 microseconds
+ implicit_cast<uint64_t>(1E5), // 100 microseconds
+ implicit_cast<uint64_t>(1E6), // 1 millisecond
+ implicit_cast<uint64_t>(1E7), // 10 milliseconds
+ implicit_cast<uint64_t>(2E7), // 20 milliseconds
+ implicit_cast<uint64_t>(5E7), // 50 milliseconds
};
for (size_t index = 0; index < arraysize(kTestData); ++index) {

Powered by Google App Engine
This is Rietveld 408576698