Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / base / android / sys_utils_unittest.cc
index 2a5a17d..d1421ec 100644 (file)
@@ -2,10 +2,9 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "base/android/sys_utils.h"
-
 #include <unistd.h>
 
+#include "base/sys_info.h"
 #include "testing/gtest/include/gtest/gtest.h"
 
 namespace base {
@@ -13,10 +12,11 @@ namespace android {
 
 TEST(SysUtils, AmountOfPhysicalMemory) {
   // Check that the RAM size reported by sysconf() matches the one
-  // computed by base::android::SysUtils::AmountOfPhysicalMemory().
+  // computed by base::SysInfo::AmountOfPhysicalMemory().
   size_t sys_ram_size =
       static_cast<size_t>(sysconf(_SC_PHYS_PAGES) * PAGE_SIZE);
-  EXPECT_EQ(sys_ram_size, SysUtils::AmountOfPhysicalMemoryKB() * 1024UL);
+  EXPECT_EQ(sys_ram_size,
+            static_cast<size_t>(SysInfo::AmountOfPhysicalMemory()));
 }
 
 }  // namespace android