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

Side by Side Diff: test/cctest/test-platform-win32.cc

Issue 9139051: Cosmetic changes ("set up" is a verb, "setup" is a noun). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-platform-linux.cc ('k') | test/cctest/test-sockets.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // 2 //
3 // Tests of the TokenLock class from lock.h 3 // Tests of the TokenLock class from lock.h
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #include "platform.h" 9 #include "platform.h"
10 #include "cctest.h" 10 #include "cctest.h"
11 11
12 using namespace ::v8::internal; 12 using namespace ::v8::internal;
13 13
14 14
15 TEST(VirtualMemory) { 15 TEST(VirtualMemory) {
16 OS::Setup(); 16 OS::SetUp();
17 VirtualMemory* vm = new VirtualMemory(1 * MB); 17 VirtualMemory* vm = new VirtualMemory(1 * MB);
18 CHECK(vm->IsReserved()); 18 CHECK(vm->IsReserved());
19 void* block_addr = vm->address(); 19 void* block_addr = vm->address();
20 size_t block_size = 4 * KB; 20 size_t block_size = 4 * KB;
21 CHECK(vm->Commit(block_addr, block_size, false)); 21 CHECK(vm->Commit(block_addr, block_size, false));
22 // Check whether we can write to memory. 22 // Check whether we can write to memory.
23 int* addr = static_cast<int*>(block_addr); 23 int* addr = static_cast<int*>(block_addr);
24 addr[KB-1] = 2; 24 addr[KB-1] = 2;
25 CHECK(vm->Uncommit(block_addr, block_size)); 25 CHECK(vm->Uncommit(block_addr, block_size));
26 delete vm; 26 delete vm;
27 } 27 }
OLDNEW
« no previous file with comments | « test/cctest/test-platform-linux.cc ('k') | test/cctest/test-sockets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698