| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/nacl_host/nacl_process_host.h" | 5 #include "components/nacl/browser/nacl_process_host.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 TEST(NaClProcessHostTest, AddressSpaceAllocation) { | 9 TEST(NaClProcessHostTest, AddressSpaceAllocation) { |
| 10 size_t size = 1 << 20; // 1 MB | 10 size_t size = 1 << 20; // 1 MB |
| 11 void* addr = nacl::AllocateAddressSpaceASLR(GetCurrentProcess(), size); | 11 void* addr = nacl::AllocateAddressSpaceASLR(GetCurrentProcess(), size); |
| 12 bool success = VirtualFree(addr, 0, MEM_RELEASE); | 12 bool success = VirtualFree(addr, 0, MEM_RELEASE); |
| 13 ASSERT_TRUE(success); | 13 ASSERT_TRUE(success); |
| 14 } | 14 } |
| 15 #endif | 15 #endif |
| OLD | NEW |