diff options
Diffstat (limited to 'simpleperf/environment_test.cpp')
-rw-r--r-- | simpleperf/environment_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/simpleperf/environment_test.cpp b/simpleperf/environment_test.cpp index a95caca8..511f1844 100644 --- a/simpleperf/environment_test.cpp +++ b/simpleperf/environment_test.cpp @@ -136,3 +136,9 @@ TEST(environment, GetAppType) { ASSERT_EQ(GetAppType("com.android.simpleperf.profileable"), "profileable"); ASSERT_EQ(GetAppType("com.android.simpleperf.app_not_exist"), "not_exist"); } + +TEST(environment, GetMemorySize) { + auto value = GetMemorySize(); + ASSERT_TRUE(value); + ASSERT_GT(value.value(), 0); +} |