Add frequency mock test for Android devices
diff --git a/test/mock/oneplus-5t.cc b/test/mock/oneplus-5t.cc
index 204f5c7..a39e98b 100644
--- a/test/mock/oneplus-5t.cc
+++ b/test/mock/oneplus-5t.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(2457600000), cpuinfo_get_core(i)->frequency);
+ break;
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ ASSERT_EQ(UINT64_C(1900800000), cpuinfo_get_core(i)->frequency);
+ break;
+ }
+ }
+}
+
TEST(PACKAGES, count) {
ASSERT_EQ(1, cpuinfo_get_packages_count());
}