Index: sandbox/win/src/handle_inheritance_test.cc |
diff --git a/sandbox/win/src/handle_inheritance_test.cc b/sandbox/win/src/handle_inheritance_test.cc |
index 1a411b543b41388c7b5698b968f0583bf72b3322..60dd3ee3a3b466c3d6ee8d03d732a447061b34ec 100644 |
--- a/sandbox/win/src/handle_inheritance_test.cc |
+++ b/sandbox/win/src/handle_inheritance_test.cc |
@@ -10,6 +10,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/win/scoped_handle.h" |
+#include "base/win/win_util.h" |
#include "base/win/windows_version.h" |
#include "sandbox/win/tests/common/controller.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -84,7 +85,7 @@ TEST(HandleInheritanceTests, InheritByValue) { |
std::string command_line = |
"HandleInheritanceTests_ValidInheritedHandle " + |
- base::UintToString(reinterpret_cast<unsigned int>(shared_handle)); |
+ base::UintToString(base::win::HandleToUint32(shared_handle)); |
int result = runner.RunTest(base::UTF8ToUTF16(command_line).c_str()); |
ASSERT_EQ(SBOX_TEST_SUCCEEDED, result); |
} |