summaryrefslogtreecommitdiffstats
path: root/components/nacl/browser/nacl_process_host_unittest.cc
blob: 0d97ed64fc32f9f29519654ec122aea13ff604c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/nacl/browser/nacl_process_host.h"
#include "testing/gtest/include/gtest/gtest.h"

#if defined(OS_WIN)
TEST(NaClProcessHostTest, AddressSpaceAllocation) {
  size_t size = 1 << 20;  // 1 MB
  void* addr = nacl::AllocateAddressSpaceASLR(GetCurrentProcess(), size);
  bool success = VirtualFree(addr, 0, MEM_RELEASE);
  ASSERT_TRUE(success);
}
#endif