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

Side by Side Diff: components/nacl/browser/nacl_process_host_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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 <stddef.h>
6
7 #include "build/build_config.h"
5 #include "components/nacl/browser/nacl_process_host.h" 8 #include "components/nacl/browser/nacl_process_host.h"
6 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
7 10
8 #if defined(OS_WIN) 11 #if defined(OS_WIN)
9 TEST(NaClProcessHostTest, AddressSpaceAllocation) { 12 TEST(NaClProcessHostTest, AddressSpaceAllocation) {
10 size_t size = 1 << 20; // 1 MB 13 size_t size = 1 << 20; // 1 MB
11 void* addr = nacl::AllocateAddressSpaceASLR(GetCurrentProcess(), size); 14 void* addr = nacl::AllocateAddressSpaceASLR(GetCurrentProcess(), size);
12 bool success = VirtualFree(addr, 0, MEM_RELEASE); 15 bool success = VirtualFree(addr, 0, MEM_RELEASE);
13 ASSERT_TRUE(success); 16 ASSERT_TRUE(success);
14 } 17 }
15 #endif 18 #endif
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | components/nacl/browser/nacl_validation_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698