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

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

Issue 1320783002: Make SharedMemoryHandle a class on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_global
Patch Set: Rebase. Created 5 years, 3 months 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 | « remoting/host/desktop_session_proxy.cc ('k') | sandbox/win/src/policy_target_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95a369a4dc171a642c26bd33f08ea157c3beef3a..1a411b543b41388c7b5698b968f0583bf72b3322 100644
--- a/sandbox/win/src/handle_inheritance_test.cc
+++ b/sandbox/win/src/handle_inheritance_test.cc
@@ -56,7 +56,7 @@ SBOX_TESTS_COMMAND int
HandleInheritanceTests_ValidInheritedHandle(int argc, wchar_t **argv) {
if (argc != 1)
return SBOX_TEST_FAILED_TO_RUN_TEST;
- base::SharedMemoryHandle handle = nullptr;
+ HANDLE handle = nullptr;
base::StringToUint(argv[0], reinterpret_cast<unsigned int *>(&handle));
// This handle we inherited must be both valid and closeable.
@@ -79,8 +79,8 @@ TEST(HandleInheritanceTests, InheritByValue) {
ASSERT_TRUE(test_shared_memory.Map(0));
TestRunner runner;
- void *shared_handle =
- runner.GetPolicy()->AddHandleToShare(test_shared_memory.handle());
+ void* shared_handle = runner.GetPolicy()->AddHandleToShare(
+ test_shared_memory.handle().GetHandle());
std::string command_line =
"HandleInheritanceTests_ValidInheritedHandle " +
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | sandbox/win/src/policy_target_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698