diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/util/processinfo_test.cpp | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/util/processinfo_test.cpp')
-rw-r--r-- | src/mongo/util/processinfo_test.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/mongo/util/processinfo_test.cpp b/src/mongo/util/processinfo_test.cpp index cdc34b0ebfe..18c5b934550 100644 --- a/src/mongo/util/processinfo_test.cpp +++ b/src/mongo/util/processinfo_test.cpp @@ -36,37 +36,37 @@ using mongo::ProcessInfo; namespace mongo_test { - TEST(ProcessInfo, SysInfoIsInitialized) { - ProcessInfo processInfo; - if (processInfo.supported()) { - ASSERT_FALSE(processInfo.getOsType().empty()); - } +TEST(ProcessInfo, SysInfoIsInitialized) { + ProcessInfo processInfo; + if (processInfo.supported()) { + ASSERT_FALSE(processInfo.getOsType().empty()); } +} - TEST(ProcessInfo, NonZeroPageSize) { - if (ProcessInfo::blockCheckSupported()) { - ASSERT_GREATER_THAN(ProcessInfo::getPageSize(), 0u); - } +TEST(ProcessInfo, NonZeroPageSize) { + if (ProcessInfo::blockCheckSupported()) { + ASSERT_GREATER_THAN(ProcessInfo::getPageSize(), 0u); } +} - const size_t PAGES = 10; +const size_t PAGES = 10; - TEST(ProcessInfo, BlockInMemoryDoesNotThrowIfSupported) { - if (ProcessInfo::blockCheckSupported()) { - static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; - ProcessInfo::blockInMemory(ptr + ProcessInfo::getPageSize() * 2); - } +TEST(ProcessInfo, BlockInMemoryDoesNotThrowIfSupported) { + if (ProcessInfo::blockCheckSupported()) { + static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; + ProcessInfo::blockInMemory(ptr + ProcessInfo::getPageSize() * 2); } +} - TEST(ProcessInfo, PagesInMemoryIsSensible) { - if (ProcessInfo::blockCheckSupported()) { - static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; - ptr[(ProcessInfo::getPageSize() * 0) + 1] = 'a'; - ptr[(ProcessInfo::getPageSize() * 8) + 1] = 'a'; - std::vector<char> result; - ASSERT_TRUE(ProcessInfo::pagesInMemory(const_cast<char*>(ptr), PAGES, &result)); - ASSERT_TRUE(result[0]); - ASSERT_TRUE(result[8]); - } +TEST(ProcessInfo, PagesInMemoryIsSensible) { + if (ProcessInfo::blockCheckSupported()) { + static char ptr[4096 * PAGES] = "This needs data to not be in .bss"; + ptr[(ProcessInfo::getPageSize() * 0) + 1] = 'a'; + ptr[(ProcessInfo::getPageSize() * 8) + 1] = 'a'; + std::vector<char> result; + ASSERT_TRUE(ProcessInfo::pagesInMemory(const_cast<char*>(ptr), PAGES, &result)); + ASSERT_TRUE(result[0]); + ASSERT_TRUE(result[8]); } } +} |