Add frequency mock test for Android devices
diff --git a/test/mock/huawei-mate-9.cc b/test/mock/huawei-mate-9.cc
index 2d8afe7..9c0fb28 100644
--- a/test/mock/huawei-mate-9.cc
+++ b/test/mock/huawei-mate-9.cc
@@ -168,6 +168,25 @@
}
}
+TEST(CORES, DISABLED_frequency) {
+ for (uint32_t i = 0; i < cpuinfo_get_cores_count(); i++) {
+ switch (i) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ ASSERT_EQ(UINT64_C(2362000000), cpuinfo_get_core(i)->frequency);
+ break;
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ ASSERT_EQ(UINT64_C(1844000000), cpuinfo_get_core(i)->frequency);
+ break;
+ }
+ }
+}
+
TEST(PACKAGES, count) {
ASSERT_EQ(1, cpuinfo_get_packages_count());
}