| Index: test/base-unittests/sys-info-unittest.cc
|
| diff --git a/test/base-unittests/sys-info-unittest.cc b/test/base-unittests/sys-info-unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..10bd91bb01571850fb5293b832f70e01ec46b57e
|
| --- /dev/null
|
| +++ b/test/base-unittests/sys-info-unittest.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 the V8 project 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 "src/base/sys-info.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace v8 {
|
| +namespace base {
|
| +
|
| +TEST(SysInfoTest, NumberOfProcessors) {
|
| + EXPECT_LT(0, SysInfo::NumberOfProcessors());
|
| +}
|
| +
|
| +
|
| +TEST(SysInfoTest, AmountOfPhysicalMemory) {
|
| + EXPECT_LT(0, SysInfo::AmountOfPhysicalMemory());
|
| +}
|
| +
|
| +
|
| +TEST(SysInfoTest, AmountOfVirtualMemory) {
|
| + EXPECT_LE(0, SysInfo::AmountOfVirtualMemory());
|
| +}
|
| +
|
| +} // namespace base
|
| +} // namespace v8
|
|
|