summaryrefslogtreecommitdiff
path: root/stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp')
-rw-r--r--stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp b/stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp
index 576fa04..45e7edc 100644
--- a/stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp
+++ b/stats/aidl/vts/functional/VtsHalStatsTargetTest.cpp
@@ -54,7 +54,33 @@ TEST_P(StatsAidlTest, reportVendorAtom) {
values.push_back(tmp);
tmp.set<VendorAtomValue::intValue>(3);
values.push_back(tmp);
- VendorAtom atom = {.reverseDomainName = "", .atomId = 100001, .values = values};
+ tmp.set<VendorAtomValue::boolValue>(true);
+ values.push_back(tmp);
+ tmp.set<VendorAtomValue::boolValue>(false);
+ values.push_back(tmp);
+ std::vector<int> emptyRepeatedIntValue = {};
+ tmp.set<VendorAtomValue::repeatedIntValue>(emptyRepeatedIntValue);
+ values.push_back(tmp);
+ std::vector<int> repeatedIntValue = {3, 1, 2};
+ tmp.set<VendorAtomValue::repeatedIntValue>(repeatedIntValue);
+ values.push_back(tmp);
+ std::vector<int64_t> repeatedLongValue = {500000, 430000, 1000001};
+ tmp.set<VendorAtomValue::repeatedLongValue>(repeatedLongValue);
+ values.push_back(tmp);
+ std::vector<float> repeatedFloatValue = {1.5, 2.3, 7.9};
+ tmp.set<VendorAtomValue::repeatedFloatValue>(repeatedFloatValue);
+ values.push_back(tmp);
+ std::vector<std::optional<std::string>> repeatedStringValue = {"str1", "str2", "str3"};
+ tmp.set<VendorAtomValue::repeatedStringValue>(repeatedStringValue);
+ values.push_back(tmp);
+ std::vector<bool> repeatedBoolValue = {true, false, true};
+ tmp.set<VendorAtomValue::repeatedBoolValue>(repeatedBoolValue);
+ values.push_back(tmp);
+ std::vector<uint8_t> byteArrayValue = {21, 50, 3, 10};
+ tmp.set<VendorAtomValue::byteArrayValue>(byteArrayValue);
+ values.push_back(tmp);
+
+ VendorAtom atom = {.reverseDomainName = "", .atomId = 104999, .values = values};
const ndk::ScopedAStatus ret = client->reportVendorAtom(atom);
ASSERT_TRUE(ret.isOk());