Verify OEMCrypto supports Level 1
Merge from widevine repo of http://go/wvgerrit/14708 This CL adds a test to verify that oemcrypto is a level 1 device. It is part of oemcrypto_test_android.cpp, so it only applies to android devices and to the widevine buildbot which also runs the android tests. bug: 21814204 Change-Id: Icbcdd3496fb8a656891bd7c873c60cba23c9666a
This commit is contained in:
@@ -78,6 +78,15 @@ TEST_F(OEMCryptoAndroidLMPTest, SupportsUsageTable) {
|
||||
ASSERT_TRUE(OEMCrypto_SupportsUsageTable());
|
||||
}
|
||||
|
||||
TEST_F(OEMCryptoAndroidLMPTest, Level1Required) {
|
||||
const char* char_level = OEMCrypto_SecurityLevel();
|
||||
std::string security_level(char_level ? char_level : "");
|
||||
EXPECT_EQ("L1", security_level)
|
||||
<< "The security level is " << security_level << ". but we expect L1.\n"
|
||||
<< "If you are testing a device that should be L3 or L2, please\n"
|
||||
<< "repeat the tests with the flag --gtest_filter=\"*-*Level1Required\"";
|
||||
}
|
||||
|
||||
// These tests are required for M Android devices.
|
||||
class OEMCryptoAndroidMNCTest : public OEMCryptoAndroidLMPTest {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user