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

Side by Side Diff: base/sys_info_unittest.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 11 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/sys_info_posix.cc ('k') | base/sys_info_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h>
6
5 #include "base/environment.h" 7 #include "base/environment.h"
6 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
7 #include "base/sys_info.h" 9 #include "base/sys_info.h"
8 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
9 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "build/build_config.h"
10 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
12 15
13 typedef PlatformTest SysInfoTest; 16 typedef PlatformTest SysInfoTest;
14 using base::FilePath; 17 using base::FilePath;
15 18
16 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 19 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
17 TEST_F(SysInfoTest, MaxSharedMemorySize) { 20 TEST_F(SysInfoTest, MaxSharedMemorySize) {
18 // We aren't actually testing that it's correct, just that it's sane. 21 // We aren't actually testing that it's correct, just that it's sane.
19 EXPECT_GT(base::SysInfo::MaxSharedMemorySize(), 0u); 22 EXPECT_GT(base::SysInfo::MaxSharedMemorySize(), 0u);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease2, base::Time()); 149 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease2, base::Time());
147 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS()); 150 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS());
148 151
149 const char kLsbRelease3[] = 152 const char kLsbRelease3[] =
150 "CHROMEOS_RELEASE_NAME=Chromium OS\n"; 153 "CHROMEOS_RELEASE_NAME=Chromium OS\n";
151 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease3, base::Time()); 154 base::SysInfo::SetChromeOSVersionInfoForTest(kLsbRelease3, base::Time());
152 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS()); 155 EXPECT_TRUE(base::SysInfo::IsRunningOnChromeOS());
153 } 156 }
154 157
155 #endif // OS_CHROMEOS 158 #endif // OS_CHROMEOS
OLDNEW
« no previous file with comments | « base/sys_info_posix.cc ('k') | base/sys_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698