1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "src/base/sys-info.h"
6 #include "testing/gtest/include/gtest/gtest.h"
9 #define DISABLE_ON_NACL(Name) DISABLED_##Name
11 #define DISABLE_ON_NACL(Name) Name
17 TEST(SysInfoTest, NumberOfProcessors) {
18 EXPECT_LT(0, SysInfo::NumberOfProcessors());
22 TEST(SysInfoTest, DISABLE_ON_NACL(AmountOfPhysicalMemory)) {
23 EXPECT_LT(0, SysInfo::AmountOfPhysicalMemory());
27 TEST(SysInfoTest, AmountOfVirtualMemory) {
28 EXPECT_LE(0, SysInfo::AmountOfVirtualMemory());