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

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

Issue 12089107: Determine number of available cores on all platforms. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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/cctest.gyp ('k') | no next file » | 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.
Michael Starzinger 2013/02/15 10:36:45 Copyright header should say just "2013", no year-r
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
2 // 2 //
3 // Tests of the TokenLock class from lock.h 3 // Tests general platform code.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "v8.h" 7 #include "v8.h"
8
9 #include "platform.h"
Michael Starzinger 2013/02/15 10:36:45 Can we alpha-sort the includes?
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
Hannes Payer (out of office) 2013/02/15 10:42:18 Done.
8 #include "cctest.h" 10 #include "cctest.h"
9 11
10 using namespace ::v8::internal; 12 using namespace ::v8::internal;
13
14 TEST(NumberOfCores) {
15 CHECK_GT(OS::NumberOfCores(), 0);
16 }
OLDNEW
« no previous file with comments | « test/cctest/cctest.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698