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

Unified Diff: client/capture_context_mac_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
« no previous file with comments | « no previous file | client/simple_string_dictionary.h » ('j') | client/simple_string_dictionary.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/capture_context_mac_test.cc
diff --git a/client/capture_context_mac_test.cc b/client/capture_context_mac_test.cc
index 6d5967d5f470d14e9270aeab56e59096b97ac50e..660776afe4c933b20d84dd2c4cc2c82a6dde667b 100644
--- a/client/capture_context_mac_test.cc
+++ b/client/capture_context_mac_test.cc
@@ -19,6 +19,7 @@
#include <algorithm>
+#include "base/basictypes.h"
#include "build/build_config.h"
#include "gtest/gtest.h"
@@ -34,10 +35,10 @@ namespace {
void SanityCheckContext(NativeCPUContext* context) {
#if defined(ARCH_CPU_X86)
ASSERT_EQ(x86_THREAD_STATE32, context->tsh.flavor);
- ASSERT_EQ(static_cast<int>(x86_THREAD_STATE32_COUNT), context->tsh.count);
+ ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE32_COUNT), context->tsh.count);
#elif defined(ARCH_CPU_X86_64)
ASSERT_EQ(x86_THREAD_STATE64, context->tsh.flavor);
- ASSERT_EQ(static_cast<int>(x86_THREAD_STATE64_COUNT), context->tsh.count);
+ ASSERT_EQ(implicit_cast<int>(x86_THREAD_STATE64_COUNT), context->tsh.count);
#endif
#if defined(ARCH_CPU_X86_FAMILY)
« no previous file with comments | « no previous file | client/simple_string_dictionary.h » ('j') | client/simple_string_dictionary.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698