Added metrics for production readiness.
[ Merge of http://go/wvgerrit/151749 ] Extended CryptoSession for recording the result of OEMCrypto_ProductionReady(). Only OEMCrypto_SUCCESS is considered "production ready". With the exception of OEMCrypto_ERROR_NOT_IMPLEMENTED, any other result is vendor-specific and indicates not being production ready. Bug: 231655151 Test: metrics_collections_unittest Change-Id: Ia0e5603d7ee1290238cce63d0194ae1aced424c1
This commit is contained in:
@@ -445,6 +445,7 @@ TEST_F(CryptoMetricsTest, AllCryptoMetrics) {
|
||||
crypto_metrics.oemcrypto_maximum_usage_table_header_size_.Record(321);
|
||||
crypto_metrics.oemcrypto_watermarking_support_.Record(
|
||||
OEMCrypto_WatermarkingAlwaysOn);
|
||||
crypto_metrics.oemcrypto_production_readiness_.Record(OEMCrypto_SUCCESS);
|
||||
|
||||
WvCdmMetrics::CryptoMetrics actual;
|
||||
crypto_metrics.Serialize(&actual);
|
||||
@@ -538,6 +539,8 @@ TEST_F(CryptoMetricsTest, AllCryptoMetrics) {
|
||||
actual.oemcrypto_maximum_usage_table_header_size().int_value());
|
||||
EXPECT_EQ(static_cast<int>(OEMCrypto_WatermarkingAlwaysOn),
|
||||
actual.oemcrypto_watermarking_support().int_value());
|
||||
EXPECT_EQ(static_cast<int>(OEMCrypto_SUCCESS),
|
||||
actual.oemcrypto_production_readiness().int_value());
|
||||
}
|
||||
} // namespace metrics
|
||||
} // namespace wvcdm
|
||||
|
||||
Reference in New Issue
Block a user