Index: sandbox/win/src/policy_target_test.cc |
diff --git a/sandbox/win/src/policy_target_test.cc b/sandbox/win/src/policy_target_test.cc |
index bb1f0b2ba38fd2fb94c780c26715a42c74975e2d..6964831ed809f9180cf31e95ce5cbeac4e5dcbd4 100644 |
--- a/sandbox/win/src/policy_target_test.cc |
+++ b/sandbox/win/src/policy_target_test.cc |
@@ -14,6 +14,10 @@ |
#include "sandbox/win/tests/common/controller.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#if defined(OS_WIN) |
+#include "base/win/win_util.h" |
+#endif |
+ |
namespace sandbox { |
#define BINDNTDLL(name) \ |
@@ -382,8 +386,7 @@ TEST(PolicyTargetTest, ShareHandleTest) { |
base::string16 arguments(L"\""); |
arguments += prog_name; |
arguments += L"\" -child 0 shared_memory_handle "; |
- arguments += base::UintToString16( |
- reinterpret_cast<unsigned int>(shared_handle)); |
+ arguments += base::UintToString16(base::win::HandleToUint32(shared_handle)); |
// Launch the app. |
ResultCode result = SBOX_ALL_OK; |