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

Unified Diff: sandbox/win/src/policy_target_test.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded include Created 5 years 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: 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;
« no previous file with comments | « sandbox/win/src/interception_unittest.cc ('k') | third_party/WebKit/Source/build/scripts/make_css_property_names.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698