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

Side by Side Diff: base/android/sys_utils_unittest.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « base/android/sys_utils.cc ('k') | base/android/thread_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <unistd.h>
6
7 #include "base/sys_info.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace base {
11 namespace android {
12
13 TEST(SysUtils, AmountOfPhysicalMemory) {
14 // Check that the RAM size reported by sysconf() matches the one
15 // computed by base::SysInfo::AmountOfPhysicalMemory().
16 size_t sys_ram_size =
17 static_cast<size_t>(sysconf(_SC_PHYS_PAGES) * PAGE_SIZE);
18 EXPECT_EQ(sys_ram_size,
19 static_cast<size_t>(SysInfo::AmountOfPhysicalMemory()));
20 }
21
22 } // namespace android
23 } // namespace base
OLDNEW
« no previous file with comments | « base/android/sys_utils.cc ('k') | base/android/thread_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698